(This page was automatically generated by the tools in the opsboy project on 09:46:45 03-Nov-2020 GMT.)

Detailed Test Report for ngx_stream_lua in linux i386 (hv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
f837686b 2020-10-27 03:33:36 GMT 9092 554 115 9565 5760 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

Compilation Errors

Unexpected Failures

File Name Details
002-content.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==19802== Invalid read of size 4
==19802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19802== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19802== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19802== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19802== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19802== by 0x8062D5B: main (nginx.c:385)
==19802== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19802==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==19802==
==19802== Process terminating with default action of signal 11 (SIGSEGV)
==19802== Access not within mapped region at address 0x0
==19802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19802== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19802== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19802== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19802== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19802== by 0x8062D5B: main (nginx.c:385)
==19802== If you believe this happened as a result of a stack
==19802== overflow in your program's main thread (unlikely but
==19802== possible), you can try to increase the size of the
==19802== main thread stack using the --main-stacksize= flag.
==19802== The main thread stack size used in this run was 8388608.

002-content.t TEST 2: basic say - status code ok got: ''
expected: '200'
002-content.t TEST 2: basic say - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==19803== Invalid read of size 4
==19803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19803== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19803== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19803== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19803== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19803== by 0x8062D5B: main (nginx.c:385)
==19803== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19803==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==19803==
==19803== Process terminating with default action of signal 11 (SIGSEGV)
==19803== Access not within mapped region at address 0x0
==19803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19803== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19803== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19803== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19803== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19803== by 0x8062D5B: main (nginx.c:385)
==19803== If you believe this happened as a result of a stack
==19803== overflow in your program's main thread (unlikely but
==19803== possible), you can try to increase the size of the
==19803== main thread stack using the --main-stacksize= flag.
==19803== The main thread stack size used in this run was 8388608.

002-content.t TEST 2: basic say - status code ok got: ''
expected: '200'
002-content.t TEST 2: basic say - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 15: syntax error in inlined Lua code ==19815== Invalid read of size 4
==19815== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19815== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19815== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19815== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19815== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19815== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19815== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19815== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19815== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19815== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19815== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19815== by 0x8062D5B: main (nginx.c:385)
==19815== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19815==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 15: syntax error in inlined Lua code ==19815==
==19815== Process terminating with default action of signal 11 (SIGSEGV)
==19815== Access not within mapped region at address 0x0
==19815== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19815== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19815== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19815== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19815== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19815== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19815== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19815== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19815== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19815== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19815== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19815== by 0x8062D5B: main (nginx.c:385)
==19815== If you believe this happened as a result of a stack
==19815== overflow in your program's main thread (unlikely but
==19815== possible), you can try to increase the size of the
==19815== main thread stack using the --main-stacksize= flag.
==19815== The main thread stack size used in this run was 8388608.

002-content.t TEST 15: syntax error in inlined Lua code - status code ok got: ''
expected: '200'
002-content.t TEST 15: syntax error in inlined Lua code ==19836== Invalid read of size 4
==19836== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19836== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19836== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19836== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19836== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19836== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19836== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19836== by 0x8062D5B: main (nginx.c:385)
==19836== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19836==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 15: syntax error in inlined Lua code ==19836==
==19836== Process terminating with default action of signal 11 (SIGSEGV)
==19836== Access not within mapped region at address 0x0
==19836== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19836== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19836== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19836== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19836== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19836== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19836== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19836== by 0x8062D5B: main (nginx.c:385)
==19836== If you believe this happened as a result of a stack
==19836== overflow in your program's main thread (unlikely but
==19836== possible), you can try to increase the size of the
==19836== main thread stack using the --main-stacksize= flag.
==19836== The main thread stack size used in this run was 8388608.

002-content.t TEST 15: syntax error in inlined Lua code - status code ok got: ''
expected: '200'
002-content.t TEST 3: no ngx.echo ==19848== Invalid read of size 4
==19848== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19848== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19848== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19848== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19848== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19848== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19848== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19848== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19848== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19848== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19848== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19848== by 0x8062D5B: main (nginx.c:385)
==19848== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19848==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 3: no ngx.echo ==19848==
==19848== Process terminating with default action of signal 11 (SIGSEGV)
==19848== Access not within mapped region at address 0x0
==19848== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19848== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19848== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19848== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19848== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19848== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19848== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19848== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19848== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19848== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19848== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19848== by 0x8062D5B: main (nginx.c:385)
==19848== If you believe this happened as a result of a stack
==19848== overflow in your program's main thread (unlikely but
==19848== possible), you can try to increase the size of the
==19848== main thread stack using the --main-stacksize= flag.
==19848== The main thread stack size used in this run was 8388608.

002-content.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
002-content.t TEST 3: no ngx.echo ==19869== Invalid read of size 4
==19869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19869== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19869== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19869== by 0x8062D5B: main (nginx.c:385)
==19869== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19869==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 3: no ngx.echo ==19869==
==19869== Process terminating with default action of signal 11 (SIGSEGV)
==19869== Access not within mapped region at address 0x0
==19869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19869== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19869== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19869== by 0x8062D5B: main (nginx.c:385)
==19869== If you believe this happened as a result of a stack
==19869== overflow in your program's main thread (unlikely but
==19869== possible), you can try to increase the size of the
==19869== main thread stack using the --main-stacksize= flag.
==19869== The main thread stack size used in this run was 8388608.

002-content.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
002-content.t TEST 6: write boolean ==19881== Invalid read of size 4
==19881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19881== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19881== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19881== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19881== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19881== by 0x8062D5B: main (nginx.c:385)
==19881== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19881==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 6: write boolean ==19881==
==19881== Process terminating with default action of signal 11 (SIGSEGV)
==19881== Access not within mapped region at address 0x0
==19881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19881== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19881== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19881== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19881== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19881== by 0x8062D5B: main (nginx.c:385)
==19881== If you believe this happened as a result of a stack
==19881== overflow in your program's main thread (unlikely but
==19881== possible), you can try to increase the size of the
==19881== main thread stack using the --main-stacksize= flag.
==19881== The main thread stack size used in this run was 8388608.

002-content.t TEST 6: write boolean - status code ok got: ''
expected: '200'
002-content.t TEST 6: write boolean - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 6: write boolean ==19902== Invalid read of size 4
==19902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19902== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19902== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19902== by 0x8062D5B: main (nginx.c:385)
==19902== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19902==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 6: write boolean ==19902==
==19902== Process terminating with default action of signal 11 (SIGSEGV)
==19902== Access not within mapped region at address 0x0
==19902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19902== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19902== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19902== by 0x8062D5B: main (nginx.c:385)
==19902== If you believe this happened as a result of a stack
==19902== overflow in your program's main thread (unlikely but
==19902== possible), you can try to increase the size of the
==19902== main thread stack using the --main-stacksize= flag.
==19902== The main thread stack size used in this run was 8388608.

002-content.t TEST 6: write boolean - status code ok got: ''
expected: '200'
002-content.t TEST 6: write boolean - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 10: ngx.eof before ngx.say ==19914== Invalid read of size 4
==19914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19914== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19914== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19914== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19914== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19914== by 0x8062D5B: main (nginx.c:385)
==19914== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19914==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 10: ngx.eof before ngx.say ==19914==
==19914== Process terminating with default action of signal 11 (SIGSEGV)
==19914== Access not within mapped region at address 0x0
==19914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19914== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19914== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19914== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19914== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19914== by 0x8062D5B: main (nginx.c:385)
==19914== If you believe this happened as a result of a stack
==19914== overflow in your program's main thread (unlikely but
==19914== possible), you can try to increase the size of the
==19914== main thread stack using the --main-stacksize= flag.
==19914== The main thread stack size used in this run was 8388608.

002-content.t TEST 10: ngx.eof before ngx.say - status code ok got: ''
expected: '200'
002-content.t TEST 10: ngx.eof before ngx.say ==19935== Invalid read of size 4
==19935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19935== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19935== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19935== by 0x8062D5B: main (nginx.c:385)
==19935== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19935==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 10: ngx.eof before ngx.say ==19935==
==19935== Process terminating with default action of signal 11 (SIGSEGV)
==19935== Access not within mapped region at address 0x0
==19935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19935== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19935== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19935== by 0x8062D5B: main (nginx.c:385)
==19935== If you believe this happened as a result of a stack
==19935== overflow in your program's main thread (unlikely but
==19935== possible), you can try to increase the size of the
==19935== main thread stack using the --main-stacksize= flag.
==19935== The main thread stack size used in this run was 8388608.

002-content.t TEST 10: ngx.eof before ngx.say - status code ok got: ''
expected: '200'
002-content.t TEST 14: .lua file with shebang ==19947== Invalid read of size 4
==19947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19947== by 0x8062D5B: main (nginx.c:385)
==19947== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19947==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 14: .lua file with shebang ==19947==
==19947== Process terminating with default action of signal 11 (SIGSEGV)
==19947== Access not within mapped region at address 0x0
==19947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19947== by 0x8062D5B: main (nginx.c:385)
==19947== If you believe this happened as a result of a stack
==19947== overflow in your program's main thread (unlikely but
==19947== possible), you can try to increase the size of the
==19947== main thread stack using the --main-stacksize= flag.
==19947== The main thread stack size used in this run was 8388608.

002-content.t TEST 14: .lua file with shebang - status code ok got: ''
expected: '200'
002-content.t TEST 14: .lua file with shebang - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "line 3\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 14: .lua file with shebang ==19968== Invalid read of size 4
==19968== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19968== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19968== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19968== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19968== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19968== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19968== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19968== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19968== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19968== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19968== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19968== by 0x8062D5B: main (nginx.c:385)
==19968== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19968==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 14: .lua file with shebang ==19968==
==19968== Process terminating with default action of signal 11 (SIGSEGV)
==19968== Access not within mapped region at address 0x0
==19968== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19968== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19968== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19968== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19968== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19968== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19968== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19968== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19968== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19968== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19968== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19968== by 0x8062D5B: main (nginx.c:385)
==19968== If you believe this happened as a result of a stack
==19968== overflow in your program's main thread (unlikely but
==19968== possible), you can try to increase the size of the
==19968== main thread stack using the --main-stacksize= flag.
==19968== The main thread stack size used in this run was 8388608.

002-content.t TEST 14: .lua file with shebang - status code ok got: ''
expected: '200'
002-content.t TEST 14: .lua file with shebang - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "line 3\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 7: nginx quote sql string 1 ==19981== Invalid read of size 4
==19981== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19981== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19981== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19981== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19981== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19981== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19981== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19981== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19981== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19981== by 0x8062D5B: main (nginx.c:385)
==19981== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19981==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 7: nginx quote sql string 1 ==19981==
==19981== Process terminating with default action of signal 11 (SIGSEGV)
==19981== Access not within mapped region at address 0x0
==19981== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19981== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19981== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19981== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19981== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19981== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19981== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19981== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19981== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19981== by 0x8062D5B: main (nginx.c:385)
==19981== If you believe this happened as a result of a stack
==19981== overflow in your program's main thread (unlikely but
==19981== possible), you can try to increase the size of the
==19981== main thread stack using the --main-stacksize= flag.
==19981== The main thread stack size used in this run was 8388608.

002-content.t TEST 7: nginx quote sql string 1 - status code ok got: ''
expected: '200'
002-content.t TEST 7: nginx quote sql string 1 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 7: nginx quote sql string 1 ==20002== Invalid read of size 4
==20002== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20002== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20002== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20002== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20002== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20002== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20002== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20002== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20002== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20002== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20002== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20002== by 0x8062D5B: main (nginx.c:385)
==20002== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20002==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 7: nginx quote sql string 1 ==20002==
==20002== Process terminating with default action of signal 11 (SIGSEGV)
==20002== Access not within mapped region at address 0x0
==20002== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20002== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20002== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20002== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20002== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20002== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20002== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20002== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20002== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20002== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20002== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20002== by 0x8062D5B: main (nginx.c:385)
==20002== If you believe this happened as a result of a stack
==20002== overflow in your program's main thread (unlikely but
==20002== possible), you can try to increase the size of the
==20002== main thread stack using the --main-stacksize= flag.
==20002== The main thread stack size used in this run was 8388608.

002-content.t TEST 7: nginx quote sql string 1 - status code ok got: ''
expected: '200'
002-content.t TEST 7: nginx quote sql string 1 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 11: ngx.print table arguments (github issue #54) ==20014== Invalid read of size 4
==20014== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20014== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20014== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20014== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20014== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20014== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20014== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20014== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20014== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20014== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20014== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20014== by 0x8062D5B: main (nginx.c:385)
==20014== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20014==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 11: ngx.print table arguments (github issue #54) ==20014==
==20014== Process terminating with default action of signal 11 (SIGSEGV)
==20014== Access not within mapped region at address 0x0
==20014== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20014== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20014== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20014== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20014== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20014== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20014== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20014== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20014== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20014== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20014== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20014== by 0x8062D5B: main (nginx.c:385)
==20014== If you believe this happened as a result of a stack
==20014== overflow in your program's main thread (unlikely but
==20014== possible), you can try to increase the size of the
==20014== main thread stack using the --main-stacksize= flag.
==20014== The main thread stack size used in this run was 8388608.

002-content.t TEST 11: ngx.print table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 11: ngx.print table arguments (github issue \#54) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "10051532"
length: 8
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 11: ngx.print table arguments (github issue #54) ==20035== Invalid read of size 4
==20035== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20035== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20035== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20035== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20035== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20035== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20035== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20035== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20035== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20035== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20035== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20035== by 0x8062D5B: main (nginx.c:385)
==20035== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20035==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 11: ngx.print table arguments (github issue #54) ==20035==
==20035== Process terminating with default action of signal 11 (SIGSEGV)
==20035== Access not within mapped region at address 0x0
==20035== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20035== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20035== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20035== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20035== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20035== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20035== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20035== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20035== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20035== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20035== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20035== by 0x8062D5B: main (nginx.c:385)
==20035== If you believe this happened as a result of a stack
==20035== overflow in your program's main thread (unlikely but
==20035== possible), you can try to increase the size of the
==20035== main thread stack using the --main-stacksize= flag.
==20035== The main thread stack size used in this run was 8388608.

002-content.t TEST 11: ngx.print table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 11: ngx.print table arguments (github issue \#54) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "10051532"
length: 8
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 13: Lua file does not exist ==20047== Invalid read of size 4
==20047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20047== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20047== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20047== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20047== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20047== by 0x8062D5B: main (nginx.c:385)
==20047== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20047==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 13: Lua file does not exist ==20047==
==20047== Process terminating with default action of signal 11 (SIGSEGV)
==20047== Access not within mapped region at address 0x0
==20047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20047== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20047== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20047== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20047== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20047== by 0x8062D5B: main (nginx.c:385)
==20047== If you believe this happened as a result of a stack
==20047== overflow in your program's main thread (unlikely but
==20047== possible), you can try to increase the size of the
==20047== main thread stack using the --main-stacksize= flag.
==20047== The main thread stack size used in this run was 8388608.

002-content.t TEST 13: Lua file does not exist - status code ok got: ''
expected: '200'
002-content.t TEST 13: Lua file does not exist ==20068== Invalid read of size 4
==20068== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20068== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20068== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20068== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20068== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20068== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20068== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20068== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20068== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20068== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20068== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20068== by 0x8062D5B: main (nginx.c:385)
==20068== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20068==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 13: Lua file does not exist ==20068==
==20068== Process terminating with default action of signal 11 (SIGSEGV)
==20068== Access not within mapped region at address 0x0
==20068== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20068== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20068== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20068== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20068== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20068== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20068== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20068== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20068== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20068== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20068== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20068== by 0x8062D5B: main (nginx.c:385)
==20068== If you believe this happened as a result of a stack
==20068== overflow in your program's main thread (unlikely but
==20068== possible), you can try to increase the size of the
==20068== main thread stack using the --main-stacksize= flag.
==20068== The main thread stack size used in this run was 8388608.

002-content.t TEST 13: Lua file does not exist - status code ok got: ''
expected: '200'
002-content.t TEST 1: basic print ==20081== Invalid read of size 4
==20081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20081== by 0x8062D5B: main (nginx.c:385)
==20081== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20081==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 1: basic print ==20081==
==20081== Process terminating with default action of signal 11 (SIGSEGV)
==20081== Access not within mapped region at address 0x0
==20081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20081== by 0x8062D5B: main (nginx.c:385)
==20081== If you believe this happened as a result of a stack
==20081== overflow in your program's main thread (unlikely but
==20081== possible), you can try to increase the size of the
==20081== main thread stack using the --main-stacksize= flag.
==20081== The main thread stack size used in this run was 8388608.

002-content.t TEST 1: basic print - status code ok got: ''
expected: '200'
002-content.t TEST 1: basic print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 1: basic print ==20102== Invalid read of size 4
==20102== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20102== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20102== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20102== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20102== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20102== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20102== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20102== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20102== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20102== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20102== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20102== by 0x8062D5B: main (nginx.c:385)
==20102== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20102==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 1: basic print ==20102==
==20102== Process terminating with default action of signal 11 (SIGSEGV)
==20102== Access not within mapped region at address 0x0
==20102== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20102== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20102== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20102== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20102== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20102== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20102== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20102== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20102== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20102== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20102== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20102== by 0x8062D5B: main (nginx.c:385)
==20102== If you believe this happened as a result of a stack
==20102== overflow in your program's main thread (unlikely but
==20102== possible), you can try to increase the size of the
==20102== main thread stack using the --main-stacksize= flag.
==20102== The main thread stack size used in this run was 8388608.

002-content.t TEST 1: basic print - status code ok got: ''
expected: '200'
002-content.t TEST 1: basic print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 8: nginx quote sql string 2 ==20114== Invalid read of size 4
==20114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20114== by 0x8062D5B: main (nginx.c:385)
==20114== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20114==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 8: nginx quote sql string 2 ==20114==
==20114== Process terminating with default action of signal 11 (SIGSEGV)
==20114== Access not within mapped region at address 0x0
==20114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20114== by 0x8062D5B: main (nginx.c:385)
==20114== If you believe this happened as a result of a stack
==20114== overflow in your program's main thread (unlikely but
==20114== possible), you can try to increase the size of the
==20114== main thread stack using the --main-stacksize= flag.
==20114== The main thread stack size used in this run was 8388608.

002-content.t TEST 8: nginx quote sql string 2 - status code ok got: ''
expected: '200'
002-content.t TEST 8: nginx quote sql string 2 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 8: nginx quote sql string 2 ==20135== Invalid read of size 4
==20135== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20135== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20135== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20135== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20135== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20135== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20135== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20135== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20135== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20135== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20135== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20135== by 0x8062D5B: main (nginx.c:385)
==20135== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20135==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 8: nginx quote sql string 2 ==20135==
==20135== Process terminating with default action of signal 11 (SIGSEGV)
==20135== Access not within mapped region at address 0x0
==20135== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20135== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20135== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20135== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20135== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20135== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20135== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20135== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20135== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20135== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20135== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20135== by 0x8062D5B: main (nginx.c:385)
==20135== If you believe this happened as a result of a stack
==20135== overflow in your program's main thread (unlikely but
==20135== possible), you can try to increase the size of the
==20135== main thread stack using the --main-stacksize= flag.
==20135== The main thread stack size used in this run was 8388608.

002-content.t TEST 8: nginx quote sql string 2 - status code ok got: ''
expected: '200'
002-content.t TEST 8: nginx quote sql string 2 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 4: calc expression ==20147== Invalid read of size 4
==20147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20147== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20147== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20147== by 0x8062D5B: main (nginx.c:385)
==20147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 4: calc expression ==20147==
==20147== Process terminating with default action of signal 11 (SIGSEGV)
==20147== Access not within mapped region at address 0x0
==20147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20147== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20147== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20147== by 0x8062D5B: main (nginx.c:385)
==20147== If you believe this happened as a result of a stack
==20147== overflow in your program's main thread (unlikely but
==20147== possible), you can try to increase the size of the
==20147== main thread stack using the --main-stacksize= flag.
==20147== The main thread stack size used in this run was 8388608.

002-content.t TEST 4: calc expression - status code ok got: ''
expected: '200'
002-content.t TEST 4: calc expression - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "result: -0.4090441561579\x{0a}"
length: 25
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 4: calc expression ==20168== Invalid read of size 4
==20168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20168== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20168== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20168== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20168== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20168== by 0x8062D5B: main (nginx.c:385)
==20168== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20168==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 4: calc expression ==20168==
==20168== Process terminating with default action of signal 11 (SIGSEGV)
==20168== Access not within mapped region at address 0x0
==20168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20168== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20168== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20168== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20168== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20168== by 0x8062D5B: main (nginx.c:385)
==20168== If you believe this happened as a result of a stack
==20168== overflow in your program's main thread (unlikely but
==20168== possible), you can try to increase the size of the
==20168== main thread stack using the --main-stacksize= flag.
==20168== The main thread stack size used in this run was 8388608.

002-content.t TEST 4: calc expression - status code ok got: ''
expected: '200'
002-content.t TEST 4: calc expression - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "result: -0.4090441561579\x{0a}"
length: 25
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 5: nil is "nil" ==20181== Invalid read of size 4
==20181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20181== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20181== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20181== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20181== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20181== by 0x8062D5B: main (nginx.c:385)
==20181== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20181==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 5: nil is "nil" ==20181==
==20181== Process terminating with default action of signal 11 (SIGSEGV)
==20181== Access not within mapped region at address 0x0
==20181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20181== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20181== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20181== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20181== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20181== by 0x8062D5B: main (nginx.c:385)
==20181== If you believe this happened as a result of a stack
==20181== overflow in your program's main thread (unlikely but
==20181== possible), you can try to increase the size of the
==20181== main thread stack using the --main-stacksize= flag.
==20181== The main thread stack size used in this run was 8388608.

002-content.t TEST 5: nil is "nil" - status code ok got: ''
expected: '200'
002-content.t TEST 5: nil is "nil" - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 5: nil is "nil" ==20202== Invalid read of size 4
==20202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20202== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20202== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20202== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20202== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20202== by 0x8062D5B: main (nginx.c:385)
==20202== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20202==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 5: nil is "nil" ==20202==
==20202== Process terminating with default action of signal 11 (SIGSEGV)
==20202== Access not within mapped region at address 0x0
==20202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20202== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20202== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20202== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20202== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20202== by 0x8062D5B: main (nginx.c:385)
==20202== If you believe this happened as a result of a stack
==20202== overflow in your program's main thread (unlikely but
==20202== possible), you can try to increase the size of the
==20202== main thread stack using the --main-stacksize= flag.
==20202== The main thread stack size used in this run was 8388608.

002-content.t TEST 5: nil is "nil" - status code ok got: ''
expected: '200'
002-content.t TEST 5: nil is "nil" - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 12: ngx.say table arguments (github issue #54) ==20214== Invalid read of size 4
==20214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20214== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20214== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20214== by 0x8062D5B: main (nginx.c:385)
==20214== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20214==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 12: ngx.say table arguments (github issue #54) ==20214==
==20214== Process terminating with default action of signal 11 (SIGSEGV)
==20214== Access not within mapped region at address 0x0
==20214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20214== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20214== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20214== by 0x8062D5B: main (nginx.c:385)
==20214== If you believe this happened as a result of a stack
==20214== overflow in your program's main thread (unlikely but
==20214== possible), you can try to increase the size of the
==20214== main thread stack using the --main-stacksize= flag.
==20214== The main thread stack size used in this run was 8388608.

002-content.t TEST 12: ngx.say table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 12: ngx.say table arguments (github issue \#54) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "10051532\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 12: ngx.say table arguments (github issue #54) ==20235== Invalid read of size 4
==20235== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20235== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20235== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20235== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20235== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20235== by 0x8062D5B: main (nginx.c:385)
==20235== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20235==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 12: ngx.say table arguments (github issue #54) ==20235==
==20235== Process terminating with default action of signal 11 (SIGSEGV)
==20235== Access not within mapped region at address 0x0
==20235== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20235== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20235== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20235== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20235== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20235== by 0x8062D5B: main (nginx.c:385)
==20235== If you believe this happened as a result of a stack
==20235== overflow in your program's main thread (unlikely but
==20235== possible), you can try to increase the size of the
==20235== main thread stack using the --main-stacksize= flag.
==20235== The main thread stack size used in this run was 8388608.

002-content.t TEST 12: ngx.say table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 12: ngx.say table arguments (github issue \#54) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "10051532\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 9: multiple eof ==20247== Invalid read of size 4
==20247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20247== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20247== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20247== by 0x8062D5B: main (nginx.c:385)
==20247== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20247==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 9: multiple eof ==20247==
==20247== Process terminating with default action of signal 11 (SIGSEGV)
==20247== Access not within mapped region at address 0x0
==20247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20247== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20247== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20247== by 0x8062D5B: main (nginx.c:385)
==20247== If you believe this happened as a result of a stack
==20247== overflow in your program's main thread (unlikely but
==20247== possible), you can try to increase the size of the
==20247== main thread stack using the --main-stacksize= flag.
==20247== The main thread stack size used in this run was 8388608.

002-content.t TEST 9: multiple eof - status code ok got: ''
expected: '200'
002-content.t TEST 9: multiple eof - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 9: multiple eof ==20268== Invalid read of size 4
==20268== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20268== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20268== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20268== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20268== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20268== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20268== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20268== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20268== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20268== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20268== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20268== by 0x8062D5B: main (nginx.c:385)
==20268== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20268==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
002-content.t TEST 9: multiple eof ==20268==
==20268== Process terminating with default action of signal 11 (SIGSEGV)
==20268== Access not within mapped region at address 0x0
==20268== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20268== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20268== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20268== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20268== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20268== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20268== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20268== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20268== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20268== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20268== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20268== by 0x8062D5B: main (nginx.c:385)
==20268== If you believe this happened as a result of a stack
==20268== overflow in your program's main thread (unlikely but
==20268== possible), you can try to increase the size of the
==20268== main thread stack using the --main-stacksize= flag.
==20268== The main thread stack size used in this run was 8388608.

002-content.t TEST 9: multiple eof - status code ok got: ''
expected: '200'
002-content.t TEST 9: multiple eof - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
003-errors.t TEST 2: syntax error in lua file - Can't connect to 127.0.0.1:1984: Connection refused ==20277== Invalid read of size 4
==20277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20277== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20277== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20277== by 0x8062D5B: main (nginx.c:385)
==20277== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20277==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
003-errors.t TEST 2: syntax error in lua file - Can't connect to 127.0.0.1:1984: Connection refused ==20277==
==20277== Process terminating with default action of signal 11 (SIGSEGV)
==20277== Access not within mapped region at address 0x0
==20277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20277== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20277== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20277== by 0x8062D5B: main (nginx.c:385)
==20277== If you believe this happened as a result of a stack
==20277== overflow in your program's main thread (unlikely but
==20277== possible), you can try to increase the size of the
==20277== main thread stack using the --main-stacksize= flag.
==20277== The main thread stack size used in this run was 8388608.

003-errors.t TEST 2: syntax error in lua file - status code ok got: ''
expected: '200'
003-errors.t TEST 2: syntax error in lua file - Can't connect to 127.0.0.1:1984: Connection refused ==20278== Invalid read of size 4
==20278== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20278== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20278== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20278== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20278== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20278== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20278== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20278== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20278== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20278== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20278== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20278== by 0x8062D5B: main (nginx.c:385)
==20278== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20278==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
003-errors.t TEST 2: syntax error in lua file - Can't connect to 127.0.0.1:1984: Connection refused ==20278==
==20278== Process terminating with default action of signal 11 (SIGSEGV)
==20278== Access not within mapped region at address 0x0
==20278== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20278== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20278== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20278== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20278== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20278== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20278== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20278== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20278== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20278== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20278== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20278== by 0x8062D5B: main (nginx.c:385)
==20278== If you believe this happened as a result of a stack
==20278== overflow in your program's main thread (unlikely but
==20278== possible), you can try to increase the size of the
==20278== main thread stack using the --main-stacksize= flag.
==20278== The main thread stack size used in this run was 8388608.

003-errors.t TEST 2: syntax error in lua file - status code ok got: ''
expected: '200'
003-errors.t TEST 1: syntax error in lua code chunk ==20291== Invalid read of size 4
==20291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20291== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20291== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20291== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20291== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20291== by 0x8062D5B: main (nginx.c:385)
==20291== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20291==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
003-errors.t TEST 1: syntax error in lua code chunk ==20291==
==20291== Process terminating with default action of signal 11 (SIGSEGV)
==20291== Access not within mapped region at address 0x0
==20291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20291== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20291== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20291== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20291== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20291== by 0x8062D5B: main (nginx.c:385)
==20291== If you believe this happened as a result of a stack
==20291== overflow in your program's main thread (unlikely but
==20291== possible), you can try to increase the size of the
==20291== main thread stack using the --main-stacksize= flag.
==20291== The main thread stack size used in this run was 8388608.

003-errors.t TEST 1: syntax error in lua code chunk - status code ok got: ''
expected: '200'
003-errors.t TEST 1: syntax error in lua code chunk ==20312== Invalid read of size 4
==20312== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20312== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20312== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20312== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20312== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20312== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20312== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20312== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20312== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20312== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20312== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20312== by 0x8062D5B: main (nginx.c:385)
==20312== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20312==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
003-errors.t TEST 1: syntax error in lua code chunk ==20312==
==20312== Process terminating with default action of signal 11 (SIGSEGV)
==20312== Access not within mapped region at address 0x0
==20312== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20312== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20312== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20312== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20312== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20312== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20312== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20312== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20312== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20312== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20312== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20312== by 0x8062D5B: main (nginx.c:385)
==20312== If you believe this happened as a result of a stack
==20312== overflow in your program's main thread (unlikely but
==20312== possible), you can try to increase the size of the
==20312== main thread stack using the --main-stacksize= flag.
==20312== The main thread stack size used in this run was 8388608.

003-errors.t TEST 1: syntax error in lua code chunk - status code ok got: ''
expected: '200'
004-require.t TEST 3: expand default path (after) - Can't connect to 127.0.0.1:1984: Connection refused ==20321== Invalid read of size 4
==20321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20321== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20321== by 0x8062D5B: main (nginx.c:385)
==20321== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20321==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 3: expand default path (after) - Can't connect to 127.0.0.1:1984: Connection refused ==20321==
==20321== Process terminating with default action of signal 11 (SIGSEGV)
==20321== Access not within mapped region at address 0x0
==20321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20321== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20321== by 0x8062D5B: main (nginx.c:385)
==20321== If you believe this happened as a result of a stack
==20321== overflow in your program's main thread (unlikely but
==20321== possible), you can try to increase the size of the
==20321== main thread stack using the --main-stacksize= flag.
==20321== The main thread stack size used in this run was 8388608.

004-require.t TEST 3: expand default path (after) - status code ok got: ''
expected: '200'
004-require.t TEST 3: expand default path (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.lua;(.+\.lua)?;*$)'
004-require.t TEST 3: expand default path (after) - Can't connect to 127.0.0.1:1984: Connection refused ==20322== Invalid read of size 4
==20322== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20322== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20322== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20322== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20322== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20322== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20322== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20322== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20322== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20322== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20322== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20322== by 0x8062D5B: main (nginx.c:385)
==20322== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20322==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 3: expand default path (after) - Can't connect to 127.0.0.1:1984: Connection refused ==20322==
==20322== Process terminating with default action of signal 11 (SIGSEGV)
==20322== Access not within mapped region at address 0x0
==20322== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20322== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20322== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20322== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20322== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20322== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20322== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20322== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20322== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20322== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20322== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20322== by 0x8062D5B: main (nginx.c:385)
==20322== If you believe this happened as a result of a stack
==20322== overflow in your program's main thread (unlikely but
==20322== possible), you can try to increase the size of the
==20322== main thread stack using the --main-stacksize= flag.
==20322== The main thread stack size used in this run was 8388608.

004-require.t TEST 3: expand default path (after) - status code ok got: ''
expected: '200'
004-require.t TEST 3: expand default path (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.lua;(.+\.lua)?;*$)'
004-require.t TEST 1: sanity ==20334== Invalid read of size 4
==20334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20334== by 0x8062D5B: main (nginx.c:385)
==20334== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20334==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 1: sanity ==20334==
==20334== Process terminating with default action of signal 11 (SIGSEGV)
==20334== Access not within mapped region at address 0x0
==20334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20334== by 0x8062D5B: main (nginx.c:385)
==20334== If you believe this happened as a result of a stack
==20334== overflow in your program's main thread (unlikely but
==20334== possible), you can try to increase the size of the
==20334== main thread stack using the --main-stacksize= flag.
==20334== The main thread stack size used in this run was 8388608.

004-require.t TEST 1: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-loading
-hello, foo
-found
-hello, foo
-found
-hello, foo
'
004-require.t TEST 1: sanity ==20355== Invalid read of size 4
==20355== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20355== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20355== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20355== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20355== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20355== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20355== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20355== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20355== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20355== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20355== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20355== by 0x8062D5B: main (nginx.c:385)
==20355== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20355==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 1: sanity ==20355==
==20355== Process terminating with default action of signal 11 (SIGSEGV)
==20355== Access not within mapped region at address 0x0
==20355== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20355== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20355== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20355== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20355== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20355== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20355== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20355== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20355== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20355== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20355== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20355== by 0x8062D5B: main (nginx.c:385)
==20355== If you believe this happened as a result of a stack
==20355== overflow in your program's main thread (unlikely but
==20355== possible), you can try to increase the size of the
==20355== main thread stack using the --main-stacksize= flag.
==20355== The main thread stack size used in this run was 8388608.

004-require.t TEST 1: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-loading
-hello, foo
-found
-hello, foo
-found
-hello, foo
'
004-require.t TEST 2: sanity ==20368== Invalid read of size 4
==20368== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20368== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20368== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20368== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20368== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20368== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20368== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20368== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20368== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20368== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20368== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20368== by 0x8062D5B: main (nginx.c:385)
==20368== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20368==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 2: sanity ==20368==
==20368== Process terminating with default action of signal 11 (SIGSEGV)
==20368== Access not within mapped region at address 0x0
==20368== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20368== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20368== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20368== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20368== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20368== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20368== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20368== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20368== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20368== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20368== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20368== by 0x8062D5B: main (nginx.c:385)
==20368== If you believe this happened as a result of a stack
==20368== overflow in your program's main thread (unlikely but
==20368== possible), you can try to increase the size of the
==20368== main thread stack using the --main-stacksize= flag.
==20368== The main thread stack size used in this run was 8388608.

004-require.t TEST 2: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 2: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 2: sanity ==20389== Invalid read of size 4
==20389== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20389== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20389== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20389== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20389== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20389== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20389== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20389== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20389== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20389== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20389== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20389== by 0x8062D5B: main (nginx.c:385)
==20389== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20389==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 2: sanity ==20389==
==20389== Process terminating with default action of signal 11 (SIGSEGV)
==20389== Access not within mapped region at address 0x0
==20389== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20389== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20389== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20389== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20389== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20389== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20389== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20389== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20389== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20389== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20389== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20389== by 0x8062D5B: main (nginx.c:385)
==20389== If you believe this happened as a result of a stack
==20389== overflow in your program's main thread (unlikely but
==20389== possible), you can try to increase the size of the
==20389== main thread stack using the --main-stacksize= flag.
==20389== The main thread stack size used in this run was 8388608.

004-require.t TEST 2: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 2: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 5: expand default path (before) ==20401== Invalid read of size 4
==20401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20401== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20401== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20401== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20401== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20401== by 0x8062D5B: main (nginx.c:385)
==20401== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20401==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 5: expand default path (before) ==20401==
==20401== Process terminating with default action of signal 11 (SIGSEGV)
==20401== Access not within mapped region at address 0x0
==20401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20401== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20401== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20401== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20401== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20401== by 0x8062D5B: main (nginx.c:385)
==20401== If you believe this happened as a result of a stack
==20401== overflow in your program's main thread (unlikely but
==20401== possible), you can try to increase the size of the
==20401== main thread stack using the --main-stacksize= flag.
==20401== The main thread stack size used in this run was 8388608.

004-require.t TEST 5: expand default path (before) - status code ok got: ''
expected: '200'
004-require.t TEST 5: expand default path (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.lua)?;*?[^;]+/servroot(_\d+)?/html/\?\.lua$)'
004-require.t TEST 5: expand default path (before) ==20422== Invalid read of size 4
==20422== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20422== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20422== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20422== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20422== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20422== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20422== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20422== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20422== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20422== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20422== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20422== by 0x8062D5B: main (nginx.c:385)
==20422== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20422==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 5: expand default path (before) ==20422==
==20422== Process terminating with default action of signal 11 (SIGSEGV)
==20422== Access not within mapped region at address 0x0
==20422== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20422== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20422== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20422== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20422== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20422== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20422== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20422== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20422== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20422== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20422== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20422== by 0x8062D5B: main (nginx.c:385)
==20422== If you believe this happened as a result of a stack
==20422== overflow in your program's main thread (unlikely but
==20422== possible), you can try to increase the size of the
==20422== main thread stack using the --main-stacksize= flag.
==20422== The main thread stack size used in this run was 8388608.

004-require.t TEST 5: expand default path (before) - status code ok got: ''
expected: '200'
004-require.t TEST 5: expand default path (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.lua)?;*?[^;]+/servroot(_\d+)?/html/\?\.lua$)'
004-require.t TEST 6: expand default cpath (before) ==20434== Invalid read of size 4
==20434== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20434== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20434== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20434== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20434== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20434== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20434== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20434== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20434== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20434== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20434== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20434== by 0x8062D5B: main (nginx.c:385)
==20434== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20434==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 6: expand default cpath (before) ==20434==
==20434== Process terminating with default action of signal 11 (SIGSEGV)
==20434== Access not within mapped region at address 0x0
==20434== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20434== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20434== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20434== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20434== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20434== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20434== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20434== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20434== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20434== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20434== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20434== by 0x8062D5B: main (nginx.c:385)
==20434== If you believe this happened as a result of a stack
==20434== overflow in your program's main thread (unlikely but
==20434== possible), you can try to increase the size of the
==20434== main thread stack using the --main-stacksize= flag.
==20434== The main thread stack size used in this run was 8388608.

004-require.t TEST 6: expand default cpath (before) - status code ok got: ''
expected: '200'
004-require.t TEST 6: expand default cpath (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.so)?;*?[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 6: expand default cpath (before) ==20455== Invalid read of size 4
==20455== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20455== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20455== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20455== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20455== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20455== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20455== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20455== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20455== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20455== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20455== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20455== by 0x8062D5B: main (nginx.c:385)
==20455== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20455==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 6: expand default cpath (before) ==20455==
==20455== Process terminating with default action of signal 11 (SIGSEGV)
==20455== Access not within mapped region at address 0x0
==20455== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20455== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20455== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20455== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20455== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20455== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20455== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20455== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20455== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20455== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20455== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20455== by 0x8062D5B: main (nginx.c:385)
==20455== If you believe this happened as a result of a stack
==20455== overflow in your program's main thread (unlikely but
==20455== possible), you can try to increase the size of the
==20455== main thread stack using the --main-stacksize= flag.
==20455== The main thread stack size used in this run was 8388608.

004-require.t TEST 6: expand default cpath (before) - status code ok got: ''
expected: '200'
004-require.t TEST 6: expand default cpath (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.so)?;*?[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 7: require "ngx" (content_by_lua_block) ==20467== Invalid read of size 4
==20467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20467== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20467== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20467== by 0x8062D5B: main (nginx.c:385)
==20467== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20467==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 7: require "ngx" (content_by_lua_block) ==20467==
==20467== Process terminating with default action of signal 11 (SIGSEGV)
==20467== Access not within mapped region at address 0x0
==20467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20467== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20467== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20467== by 0x8062D5B: main (nginx.c:385)
==20467== If you believe this happened as a result of a stack
==20467== overflow in your program's main thread (unlikely but
==20467== possible), you can try to increase the size of the
==20467== main thread stack using the --main-stacksize= flag.
==20467== The main thread stack size used in this run was 8388608.

004-require.t TEST 7: require "ngx" (content_by_lua_block) - status code ok got: ''
expected: '200'
004-require.t TEST 7: require "ngx" (content_by_lua_block) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world
'
004-require.t TEST 7: require "ngx" (content_by_lua_block) ==20488== Invalid read of size 4
==20488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20488== by 0x8062D5B: main (nginx.c:385)
==20488== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20488==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 7: require "ngx" (content_by_lua_block) ==20488==
==20488== Process terminating with default action of signal 11 (SIGSEGV)
==20488== Access not within mapped region at address 0x0
==20488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20488== by 0x8062D5B: main (nginx.c:385)
==20488== If you believe this happened as a result of a stack
==20488== overflow in your program's main thread (unlikely but
==20488== possible), you can try to increase the size of the
==20488== main thread stack using the --main-stacksize= flag.
==20488== The main thread stack size used in this run was 8388608.

004-require.t TEST 7: require "ngx" (content_by_lua_block) - status code ok got: ''
expected: '200'
004-require.t TEST 7: require "ngx" (content_by_lua_block) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world
'
004-require.t TEST 4: expand default cpath (after) ==20500== Invalid read of size 4
==20500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20500== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20500== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20500== by 0x8062D5B: main (nginx.c:385)
==20500== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20500==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 4: expand default cpath (after) ==20500==
==20500== Process terminating with default action of signal 11 (SIGSEGV)
==20500== Access not within mapped region at address 0x0
==20500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20500== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20500== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20500== by 0x8062D5B: main (nginx.c:385)
==20500== If you believe this happened as a result of a stack
==20500== overflow in your program's main thread (unlikely but
==20500== possible), you can try to increase the size of the
==20500== main thread stack using the --main-stacksize= flag.
==20500== The main thread stack size used in this run was 8388608.

004-require.t TEST 4: expand default cpath (after) - status code ok got: ''
expected: '200'
004-require.t TEST 4: expand default cpath (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so;(.+\.so)?;*$)'
004-require.t TEST 4: expand default cpath (after) ==20521== Invalid read of size 4
==20521== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20521== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20521== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20521== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20521== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20521== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20521== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20521== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20521== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20521== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20521== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20521== by 0x8062D5B: main (nginx.c:385)
==20521== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20521==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
004-require.t TEST 4: expand default cpath (after) ==20521==
==20521== Process terminating with default action of signal 11 (SIGSEGV)
==20521== Access not within mapped region at address 0x0
==20521== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20521== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20521== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20521== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20521== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20521== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20521== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20521== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20521== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20521== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20521== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20521== by 0x8062D5B: main (nginx.c:385)
==20521== If you believe this happened as a result of a stack
==20521== overflow in your program's main thread (unlikely but
==20521== possible), you can try to increase the size of the
==20521== main thread stack using the --main-stacksize= flag.
==20521== The main thread stack size used in this run was 8388608.

004-require.t TEST 4: expand default cpath (after) - status code ok got: ''
expected: '200'
004-require.t TEST 4: expand default cpath (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so;(.+\.so)?;*$)'
005-exit.t TEST 2: throw error after sending the header and partial body - Can't connect to 127.0.0.1:1984: Connection refused ==20530== Invalid read of size 4
==20530== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20530== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20530== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20530== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20530== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20530== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20530== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20530== by 0x8062D5B: main (nginx.c:385)
==20530== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20530==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 2: throw error after sending the header and partial body - Can't connect to 127.0.0.1:1984: Connection refused ==20530==
==20530== Process terminating with default action of signal 11 (SIGSEGV)
==20530== Access not within mapped region at address 0x0
==20530== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20530== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20530== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20530== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20530== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20530== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20530== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20530== by 0x8062D5B: main (nginx.c:385)
==20530== If you believe this happened as a result of a stack
==20530== overflow in your program's main thread (unlikely but
==20530== possible), you can try to increase the size of the
==20530== main thread stack using the --main-stacksize= flag.
==20530== The main thread stack size used in this run was 8388608.

005-exit.t TEST 2: throw error after sending the header and partial body - status code ok got: ''
expected: '200'
005-exit.t TEST 2: throw error after sending the header and partial body - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hi
'
005-exit.t TEST 2: throw error after sending the header and partial body - Can't connect to 127.0.0.1:1984: Connection refused ==20531== Invalid read of size 4
==20531== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20531== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20531== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20531== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20531== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20531== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20531== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20531== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20531== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20531== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20531== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20531== by 0x8062D5B: main (nginx.c:385)
==20531== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20531==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 2: throw error after sending the header and partial body - Can't connect to 127.0.0.1:1984: Connection refused ==20531==
==20531== Process terminating with default action of signal 11 (SIGSEGV)
==20531== Access not within mapped region at address 0x0
==20531== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20531== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20531== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20531== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20531== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20531== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20531== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20531== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20531== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20531== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20531== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20531== by 0x8062D5B: main (nginx.c:385)
==20531== If you believe this happened as a result of a stack
==20531== overflow in your program's main thread (unlikely but
==20531== possible), you can try to increase the size of the
==20531== main thread stack using the --main-stacksize= flag.
==20531== The main thread stack size used in this run was 8388608.

005-exit.t TEST 2: throw error after sending the header and partial body - status code ok got: ''
expected: '200'
005-exit.t TEST 2: throw error after sending the header and partial body - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hi
'
005-exit.t TEST 3: throw 0 ==20543== Invalid read of size 4
==20543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20543== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20543== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20543== by 0x8062D5B: main (nginx.c:385)
==20543== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20543==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 3: throw 0 ==20543==
==20543== Process terminating with default action of signal 11 (SIGSEGV)
==20543== Access not within mapped region at address 0x0
==20543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20543== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20543== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20543== by 0x8062D5B: main (nginx.c:385)
==20543== If you believe this happened as a result of a stack
==20543== overflow in your program's main thread (unlikely but
==20543== possible), you can try to increase the size of the
==20543== main thread stack using the --main-stacksize= flag.
==20543== The main thread stack size used in this run was 8388608.

005-exit.t TEST 3: throw 0 - status code ok got: ''
expected: '200'
005-exit.t TEST 3: throw 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Hi
'
005-exit.t TEST 3: throw 0 ==20564== Invalid read of size 4
==20564== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20564== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20564== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20564== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20564== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20564== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20564== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20564== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20564== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20564== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20564== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20564== by 0x8062D5B: main (nginx.c:385)
==20564== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20564==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 3: throw 0 ==20564==
==20564== Process terminating with default action of signal 11 (SIGSEGV)
==20564== Access not within mapped region at address 0x0
==20564== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20564== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20564== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20564== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20564== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20564== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20564== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20564== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20564== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20564== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20564== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20564== by 0x8062D5B: main (nginx.c:385)
==20564== If you believe this happened as a result of a stack
==20564== overflow in your program's main thread (unlikely but
==20564== possible), you can try to increase the size of the
==20564== main thread stack using the --main-stacksize= flag.
==20564== The main thread stack size used in this run was 8388608.

005-exit.t TEST 3: throw 0 - status code ok got: ''
expected: '200'
005-exit.t TEST 3: throw 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Hi
'
005-exit.t TEST 7: throw 408 after sending out responses ==20576== Invalid read of size 4
==20576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20576== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20576== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20576== by 0x8062D5B: main (nginx.c:385)
==20576== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20576==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 7: throw 408 after sending out responses ==20576==
==20576== Process terminating with default action of signal 11 (SIGSEGV)
==20576== Access not within mapped region at address 0x0
==20576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20576== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20576== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20576== by 0x8062D5B: main (nginx.c:385)
==20576== If you believe this happened as a result of a stack
==20576== overflow in your program's main thread (unlikely but
==20576== possible), you can try to increase the size of the
==20576== main thread stack using the --main-stacksize= flag.
==20576== The main thread stack size used in this run was 8388608.

005-exit.t TEST 7: throw 408 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 7: throw 408 after sending out responses - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 7: throw 408 after sending out responses ==20597== Invalid read of size 4
==20597== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20597== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20597== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20597== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20597== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20597== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20597== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20597== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20597== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20597== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20597== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20597== by 0x8062D5B: main (nginx.c:385)
==20597== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20597==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 7: throw 408 after sending out responses ==20597==
==20597== Process terminating with default action of signal 11 (SIGSEGV)
==20597== Access not within mapped region at address 0x0
==20597== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20597== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20597== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20597== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20597== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20597== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20597== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20597== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20597== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20597== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20597== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20597== by 0x8062D5B: main (nginx.c:385)
==20597== If you believe this happened as a result of a stack
==20597== overflow in your program's main thread (unlikely but
==20597== possible), you can try to increase the size of the
==20597== main thread stack using the --main-stacksize= flag.
==20597== The main thread stack size used in this run was 8388608.

005-exit.t TEST 7: throw 408 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 7: throw 408 after sending out responses - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 1: throw error ==20609== Invalid read of size 4
==20609== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20609== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20609== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20609== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20609== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20609== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20609== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20609== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20609== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20609== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20609== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20609== by 0x8062D5B: main (nginx.c:385)
==20609== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20609==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 1: throw error ==20609==
==20609== Process terminating with default action of signal 11 (SIGSEGV)
==20609== Access not within mapped region at address 0x0
==20609== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20609== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20609== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20609== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20609== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20609== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20609== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20609== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20609== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20609== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20609== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20609== by 0x8062D5B: main (nginx.c:385)
==20609== If you believe this happened as a result of a stack
==20609== overflow in your program's main thread (unlikely but
==20609== possible), you can try to increase the size of the
==20609== main thread stack using the --main-stacksize= flag.
==20609== The main thread stack size used in this run was 8388608.

005-exit.t TEST 1: throw error - status code ok got: ''
expected: '200'
005-exit.t TEST 1: throw error ==20630== Invalid read of size 4
==20630== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20630== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20630== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20630== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20630== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20630== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20630== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20630== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20630== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20630== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20630== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20630== by 0x8062D5B: main (nginx.c:385)
==20630== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20630==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 1: throw error ==20630==
==20630== Process terminating with default action of signal 11 (SIGSEGV)
==20630== Access not within mapped region at address 0x0
==20630== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20630== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20630== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20630== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20630== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20630== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20630== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20630== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20630== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20630== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20630== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20630== by 0x8062D5B: main (nginx.c:385)
==20630== If you believe this happened as a result of a stack
==20630== overflow in your program's main thread (unlikely but
==20630== possible), you can try to increase the size of the
==20630== main thread stack using the --main-stacksize= flag.
==20630== The main thread stack size used in this run was 8388608.

005-exit.t TEST 1: throw error - status code ok got: ''
expected: '200'
005-exit.t TEST 6: throw 499 after sending out responses ==20642== Invalid read of size 4
==20642== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20642== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20642== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20642== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20642== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20642== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20642== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20642== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20642== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20642== by 0x8062D5B: main (nginx.c:385)
==20642== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20642==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 6: throw 499 after sending out responses ==20642==
==20642== Process terminating with default action of signal 11 (SIGSEGV)
==20642== Access not within mapped region at address 0x0
==20642== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20642== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20642== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20642== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20642== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20642== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20642== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20642== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20642== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20642== by 0x8062D5B: main (nginx.c:385)
==20642== If you believe this happened as a result of a stack
==20642== overflow in your program's main thread (unlikely but
==20642== possible), you can try to increase the size of the
==20642== main thread stack using the --main-stacksize= flag.
==20642== The main thread stack size used in this run was 8388608.

005-exit.t TEST 6: throw 499 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 6: throw 499 after sending out responses - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 6: throw 499 after sending out responses ==20663== Invalid read of size 4
==20663== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20663== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20663== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20663== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20663== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20663== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20663== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20663== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20663== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20663== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20663== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20663== by 0x8062D5B: main (nginx.c:385)
==20663== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20663==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 6: throw 499 after sending out responses ==20663==
==20663== Process terminating with default action of signal 11 (SIGSEGV)
==20663== Access not within mapped region at address 0x0
==20663== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20663== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20663== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20663== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20663== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20663== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20663== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20663== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20663== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20663== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20663== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20663== by 0x8062D5B: main (nginx.c:385)
==20663== If you believe this happened as a result of a stack
==20663== overflow in your program's main thread (unlikely but
==20663== possible), you can try to increase the size of the
==20663== main thread stack using the --main-stacksize= flag.
==20663== The main thread stack size used in this run was 8388608.

005-exit.t TEST 6: throw 499 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 6: throw 499 after sending out responses - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 5: throw 444 after sending out responses ==20675== Invalid read of size 4
==20675== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20675== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20675== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20675== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20675== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20675== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20675== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20675== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20675== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20675== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20675== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20675== by 0x8062D5B: main (nginx.c:385)
==20675== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20675==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 5: throw 444 after sending out responses ==20675==
==20675== Process terminating with default action of signal 11 (SIGSEGV)
==20675== Access not within mapped region at address 0x0
==20675== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20675== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20675== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20675== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20675== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20675== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20675== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20675== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20675== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20675== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20675== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20675== by 0x8062D5B: main (nginx.c:385)
==20675== If you believe this happened as a result of a stack
==20675== overflow in your program's main thread (unlikely but
==20675== possible), you can try to increase the size of the
==20675== main thread stack using the --main-stacksize= flag.
==20675== The main thread stack size used in this run was 8388608.

005-exit.t TEST 5: throw 444 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 5: throw 444 after sending out responses - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 5: throw 444 after sending out responses ==20696== Invalid read of size 4
==20696== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20696== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20696== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20696== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20696== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20696== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20696== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20696== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20696== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20696== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20696== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20696== by 0x8062D5B: main (nginx.c:385)
==20696== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20696==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 5: throw 444 after sending out responses ==20696==
==20696== Process terminating with default action of signal 11 (SIGSEGV)
==20696== Access not within mapped region at address 0x0
==20696== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20696== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20696== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20696== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20696== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20696== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20696== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20696== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20696== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20696== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20696== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20696== by 0x8062D5B: main (nginx.c:385)
==20696== If you believe this happened as a result of a stack
==20696== overflow in your program's main thread (unlikely but
==20696== possible), you can try to increase the size of the
==20696== main thread stack using the --main-stacksize= flag.
==20696== The main thread stack size used in this run was 8388608.

005-exit.t TEST 5: throw 444 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 5: throw 444 after sending out responses - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 4: pcall safe ==20708== Invalid read of size 4
==20708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20708== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20708== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20708== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20708== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20708== by 0x8062D5B: main (nginx.c:385)
==20708== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20708==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 4: pcall safe ==20708==
==20708== Process terminating with default action of signal 11 (SIGSEGV)
==20708== Access not within mapped region at address 0x0
==20708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20708== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20708== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20708== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20708== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20708== by 0x8062D5B: main (nginx.c:385)
==20708== If you believe this happened as a result of a stack
==20708== overflow in your program's main thread (unlikely but
==20708== possible), you can try to increase the size of the
==20708== main thread stack using the --main-stacksize= flag.
==20708== The main thread stack size used in this run was 8388608.

005-exit.t TEST 4: pcall safe - status code ok got: ''
expected: '200'
005-exit.t TEST 4: pcall safe - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
005-exit.t TEST 4: pcall safe ==20729== Invalid read of size 4
==20729== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20729== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20729== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20729== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20729== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20729== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20729== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20729== by 0x8062D5B: main (nginx.c:385)
==20729== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20729==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
005-exit.t TEST 4: pcall safe ==20729==
==20729== Process terminating with default action of signal 11 (SIGSEGV)
==20729== Access not within mapped region at address 0x0
==20729== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20729== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20729== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20729== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20729== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20729== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20729== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20729== by 0x8062D5B: main (nginx.c:385)
==20729== If you believe this happened as a result of a stack
==20729== overflow in your program's main thread (unlikely but
==20729== possible), you can try to increase the size of the
==20729== main thread stack using the --main-stacksize= flag.
==20729== The main thread stack size used in this run was 8388608.

005-exit.t TEST 4: pcall safe - status code ok got: ''
expected: '200'
005-exit.t TEST 4: pcall safe - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
006-escape.t TEST 14: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==20738== Invalid read of size 4
==20738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20738== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20738== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20738== by 0x8062D5B: main (nginx.c:385)
==20738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 14: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==20738==
==20738== Process terminating with default action of signal 11 (SIGSEGV)
==20738== Access not within mapped region at address 0x0
==20738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20738== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20738== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20738== by 0x8062D5B: main (nginx.c:385)
==20738== If you believe this happened as a result of a stack
==20738== overflow in your program's main thread (unlikely but
==20738== possible), you can try to increase the size of the
==20738== main thread stack using the --main-stacksize= flag.
==20738== The main thread stack size used in this run was 8388608.

006-escape.t TEST 14: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 14: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:44:33 [alert] 20737\#0: worker process 20738 exited on signal 11" (req 0) 2020/10/27 03:44:33 [debug] 20737\#0: shmtx forced unlock
2020/10/27 03:44:33 [debug] 20737\#0: wake up, sigio 0
2020/10/27 03:44:33 [debug] 20737\#0: reap children
2020/10/27 03:44:33 [debug] 20737\#0: child: 0 20738 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:44:33 [debug] 20737\#0: channel 3:9
2020/10/27 03:44:33 [notice] 20737\#0: start worker process 20739
'
006-escape.t TEST 14: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==20739== Invalid read of size 4
==20739== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20739== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20739== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20739== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20739== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20739== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20739== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20739== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20739== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20739== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20739== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20739== by 0x8062D5B: main (nginx.c:385)
==20739== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20739==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 14: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==20739==
==20739== Process terminating with default action of signal 11 (SIGSEGV)
==20739== Access not within mapped region at address 0x0
==20739== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20739== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20739== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20739== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20739== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20739== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20739== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20739== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20739== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20739== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20739== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20739== by 0x8062D5B: main (nginx.c:385)
==20739== If you believe this happened as a result of a stack
==20739== overflow in your program's main thread (unlikely but
==20739== possible), you can try to increase the size of the
==20739== main thread stack using the --main-stacksize= flag.
==20739== The main thread stack size used in this run was 8388608.

006-escape.t TEST 14: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 14: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:44:34 [alert] 20737\#0: worker process 20739 exited on signal 11" (req 1) 2020/10/27 03:44:34 [debug] 20737\#0: shmtx forced unlock
2020/10/27 03:44:34 [debug] 20737\#0: wake up, sigio 0
2020/10/27 03:44:34 [debug] 20737\#0: reap children
2020/10/27 03:44:34 [debug] 20737\#0: child: 0 20739 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:44:34 [debug] 20737\#0: channel 3:9
2020/10/27 03:44:34 [notice] 20737\#0: start worker process 20740
'
006-escape.t TEST 13: escape type out of range ==20751== Invalid read of size 4
==20751== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20751== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20751== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20751== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20751== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20751== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20751== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20751== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20751== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20751== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20751== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20751== by 0x8062D5B: main (nginx.c:385)
==20751== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20751==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 13: escape type out of range ==20751==
==20751== Process terminating with default action of signal 11 (SIGSEGV)
==20751== Access not within mapped region at address 0x0
==20751== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20751== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20751== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20751== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20751== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20751== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20751== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20751== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20751== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20751== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20751== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20751== by 0x8062D5B: main (nginx.c:385)
==20751== If you believe this happened as a result of a stack
==20751== overflow in your program's main thread (unlikely but
==20751== possible), you can try to increase the size of the
==20751== main thread stack using the --main-stacksize= flag.
==20751== The main thread stack size used in this run was 8388608.

006-escape.t TEST 13: escape type out of range - status code ok got: ''
expected: '200'
006-escape.t TEST 13: escape type out of range - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:44:37 [alert] 20737\#0: worker process 20751 exited on signal 11" (req 0) 2020/10/27 03:44:37 [debug] 20737\#0: shmtx forced unlock
2020/10/27 03:44:37 [debug] 20737\#0: wake up, sigio 0
2020/10/27 03:44:37 [debug] 20737\#0: reap children
2020/10/27 03:44:37 [debug] 20737\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:44:37 [debug] 20737\#0: child: 1 20751 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:44:37 [debug] 20737\#0: channel 3:4
2020/10/27 03:44:37 [notice] 20737\#0: start worker process 20772
'
006-escape.t TEST 13: escape type out of range ==20772== Invalid read of size 4
==20772== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20772== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20772== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20772== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20772== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20772== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20772== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20772== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20772== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20772== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20772== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20772== by 0x8062D5B: main (nginx.c:385)
==20772== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20772==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 13: escape type out of range ==20772==
==20772== Process terminating with default action of signal 11 (SIGSEGV)
==20772== Access not within mapped region at address 0x0
==20772== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20772== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20772== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20772== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20772== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20772== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20772== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20772== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20772== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20772== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20772== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20772== by 0x8062D5B: main (nginx.c:385)
==20772== If you believe this happened as a result of a stack
==20772== overflow in your program's main thread (unlikely but
==20772== possible), you can try to increase the size of the
==20772== main thread stack using the --main-stacksize= flag.
==20772== The main thread stack size used in this run was 8388608.

006-escape.t TEST 13: escape type out of range - status code ok got: ''
expected: '200'
006-escape.t TEST 13: escape type out of range - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:44:37 [alert] 20737\#0: worker process 20772 exited on signal 11" (req 1) 2020/10/27 03:44:37 [debug] 20737\#0: shmtx forced unlock
2020/10/27 03:44:37 [debug] 20737\#0: wake up, sigio 0
2020/10/27 03:44:37 [debug] 20737\#0: reap children
2020/10/27 03:44:37 [debug] 20737\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:44:37 [debug] 20737\#0: child: 1 20772 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:44:37 [debug] 20737\#0: channel 3:4
2020/10/27 03:44:37 [notice] 20737\#0: start worker process 20773
'
006-escape.t TEST 4: escape uri in content_by_lua ==20784== Invalid read of size 4
==20784== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20784== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20784== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20784== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20784== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20784== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20784== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20784== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20784== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20784== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20784== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20784== by 0x8062D5B: main (nginx.c:385)
==20784== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20784==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 4: escape uri in content_by_lua ==20784==
==20784== Process terminating with default action of signal 11 (SIGSEGV)
==20784== Access not within mapped region at address 0x0
==20784== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20784== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20784== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20784== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20784== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20784== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20784== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20784== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20784== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20784== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20784== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20784== by 0x8062D5B: main (nginx.c:385)
==20784== If you believe this happened as a result of a stack
==20784== overflow in your program's main thread (unlikely but
==20784== possible), you can try to increase the size of the
==20784== main thread stack using the --main-stacksize= flag.
==20784== The main thread stack size used in this run was 8388608.

006-escape.t TEST 4: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 4: escape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '%22a%2Fb%3D%7B%7D%3A%3C%3E%3B%26%5B%5D%5C%5E
'
006-escape.t TEST 4: escape uri in content_by_lua ==20805== Invalid read of size 4
==20805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20805== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20805== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20805== by 0x8062D5B: main (nginx.c:385)
==20805== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20805==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 4: escape uri in content_by_lua ==20805==
==20805== Process terminating with default action of signal 11 (SIGSEGV)
==20805== Access not within mapped region at address 0x0
==20805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20805== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20805== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20805== by 0x8062D5B: main (nginx.c:385)
==20805== If you believe this happened as a result of a stack
==20805== overflow in your program's main thread (unlikely but
==20805== possible), you can try to increase the size of the
==20805== main thread stack using the --main-stacksize= flag.
==20805== The main thread stack size used in this run was 8388608.

006-escape.t TEST 4: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 4: escape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '%22a%2Fb%3D%7B%7D%3A%3C%3E%3B%26%5B%5D%5C%5E
'
006-escape.t TEST 8: escape numbers ==20817== Invalid read of size 4
==20817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20817== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20817== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20817== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20817== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20817== by 0x8062D5B: main (nginx.c:385)
==20817== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20817==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 8: escape numbers ==20817==
==20817== Process terminating with default action of signal 11 (SIGSEGV)
==20817== Access not within mapped region at address 0x0
==20817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20817== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20817== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20817== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20817== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20817== by 0x8062D5B: main (nginx.c:385)
==20817== If you believe this happened as a result of a stack
==20817== overflow in your program's main thread (unlikely but
==20817== possible), you can try to increase the size of the
==20817== main thread stack using the --main-stacksize= flag.
==20817== The main thread stack size used in this run was 8388608.

006-escape.t TEST 8: escape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 8: escape numbers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
006-escape.t TEST 8: escape numbers ==20838== Invalid read of size 4
==20838== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20838== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20838== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20838== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20838== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20838== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20838== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20838== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20838== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20838== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20838== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20838== by 0x8062D5B: main (nginx.c:385)
==20838== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20838==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 8: escape numbers ==20838==
==20838== Process terminating with default action of signal 11 (SIGSEGV)
==20838== Access not within mapped region at address 0x0
==20838== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20838== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20838== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20838== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20838== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20838== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20838== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20838== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20838== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20838== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20838== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20838== by 0x8062D5B: main (nginx.c:385)
==20838== If you believe this happened as a result of a stack
==20838== overflow in your program's main thread (unlikely but
==20838== possible), you can try to increase the size of the
==20838== main thread stack using the --main-stacksize= flag.
==20838== The main thread stack size used in this run was 8388608.

006-escape.t TEST 8: escape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 8: escape numbers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '32
'
006-escape.t TEST 11: escape type ==20850== Invalid read of size 4
==20850== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20850== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20850== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20850== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20850== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20850== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20850== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20850== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20850== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20850== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20850== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20850== by 0x8062D5B: main (nginx.c:385)
==20850== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20850==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 11: escape type ==20850==
==20850== Process terminating with default action of signal 11 (SIGSEGV)
==20850== Access not within mapped region at address 0x0
==20850== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20850== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20850== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20850== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20850== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20850== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20850== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20850== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20850== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20850== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20850== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20850== by 0x8062D5B: main (nginx.c:385)
==20850== If you believe this happened as a result of a stack
==20850== overflow in your program's main thread (unlikely but
==20850== possible), you can try to increase the size of the
==20850== main thread stack using the --main-stacksize= flag.
==20850== The main thread stack size used in this run was 8388608.

006-escape.t TEST 11: escape type - status code ok got: ''
expected: '200'
006-escape.t TEST 11: escape type - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-https://www.google.com/%3Ft=abc@%20:
-https://www.google.com/%3Ft=abc@%20:
-https%3A%2F%2Fwww.google.com%2F%3Ft%3Dabc%40%20%3A
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
'
006-escape.t TEST 11: escape type ==20871== Invalid read of size 4
==20871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20871== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20871== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20871== by 0x8062D5B: main (nginx.c:385)
==20871== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20871==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 11: escape type ==20871==
==20871== Process terminating with default action of signal 11 (SIGSEGV)
==20871== Access not within mapped region at address 0x0
==20871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20871== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20871== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20871== by 0x8062D5B: main (nginx.c:385)
==20871== If you believe this happened as a result of a stack
==20871== overflow in your program's main thread (unlikely but
==20871== possible), you can try to increase the size of the
==20871== main thread stack using the --main-stacksize= flag.
==20871== The main thread stack size used in this run was 8388608.

006-escape.t TEST 11: escape type - status code ok got: ''
expected: '200'
006-escape.t TEST 11: escape type - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-https://www.google.com/%3Ft=abc@%20:
-https://www.google.com/%3Ft=abc@%20:
-https%3A%2F%2Fwww.google.com%2F%3Ft%3Dabc%40%20%3A
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
'
006-escape.t TEST 9: unescape nil ==20883== Invalid read of size 4
==20883== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20883== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20883== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20883== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20883== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20883== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20883== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20883== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20883== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20883== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20883== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20883== by 0x8062D5B: main (nginx.c:385)
==20883== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20883==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 9: unescape nil ==20883==
==20883== Process terminating with default action of signal 11 (SIGSEGV)
==20883== Access not within mapped region at address 0x0
==20883== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20883== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20883== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20883== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20883== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20883== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20883== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20883== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20883== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20883== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20883== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20883== by 0x8062D5B: main (nginx.c:385)
==20883== If you believe this happened as a result of a stack
==20883== overflow in your program's main thread (unlikely but
==20883== possible), you can try to increase the size of the
==20883== main thread stack using the --main-stacksize= flag.
==20883== The main thread stack size used in this run was 8388608.

006-escape.t TEST 9: unescape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 9: unescape nil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '[]
'
006-escape.t TEST 9: unescape nil ==20904== Invalid read of size 4
==20904== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20904== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20904== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20904== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20904== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20904== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20904== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20904== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20904== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20904== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20904== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20904== by 0x8062D5B: main (nginx.c:385)
==20904== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20904==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 9: unescape nil ==20904==
==20904== Process terminating with default action of signal 11 (SIGSEGV)
==20904== Access not within mapped region at address 0x0
==20904== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20904== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20904== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20904== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20904== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20904== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20904== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20904== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20904== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20904== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20904== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20904== by 0x8062D5B: main (nginx.c:385)
==20904== If you believe this happened as a result of a stack
==20904== overflow in your program's main thread (unlikely but
==20904== possible), you can try to increase the size of the
==20904== main thread stack using the --main-stacksize= flag.
==20904== The main thread stack size used in this run was 8388608.

006-escape.t TEST 9: unescape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 9: unescape nil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '[]
'
006-escape.t TEST 6: escape an empty string that cannot be escaped ==20916== Invalid read of size 4
==20916== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20916== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20916== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20916== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20916== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20916== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20916== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20916== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20916== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20916== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20916== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20916== by 0x8062D5B: main (nginx.c:385)
==20916== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20916==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 6: escape an empty string that cannot be escaped ==20916==
==20916== Process terminating with default action of signal 11 (SIGSEGV)
==20916== Access not within mapped region at address 0x0
==20916== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20916== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20916== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20916== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20916== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20916== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20916== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20916== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20916== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20916== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20916== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20916== by 0x8062D5B: main (nginx.c:385)
==20916== If you believe this happened as a result of a stack
==20916== overflow in your program's main thread (unlikely but
==20916== possible), you can try to increase the size of the
==20916== main thread stack using the --main-stacksize= flag.
==20916== The main thread stack size used in this run was 8388608.

006-escape.t TEST 6: escape an empty string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 6: escape an empty string that cannot be escaped - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '
'
006-escape.t TEST 6: escape an empty string that cannot be escaped ==20937== Invalid read of size 4
==20937== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20937== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20937== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20937== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20937== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20937== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20937== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20937== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20937== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20937== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20937== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20937== by 0x8062D5B: main (nginx.c:385)
==20937== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20937==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 6: escape an empty string that cannot be escaped ==20937==
==20937== Process terminating with default action of signal 11 (SIGSEGV)
==20937== Access not within mapped region at address 0x0
==20937== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20937== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20937== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20937== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20937== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20937== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20937== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20937== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20937== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20937== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20937== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20937== by 0x8062D5B: main (nginx.c:385)
==20937== If you believe this happened as a result of a stack
==20937== overflow in your program's main thread (unlikely but
==20937== possible), you can try to increase the size of the
==20937== main thread stack using the --main-stacksize= flag.
==20937== The main thread stack size used in this run was 8388608.

006-escape.t TEST 6: escape an empty string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 6: escape an empty string that cannot be escaped - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '
'
006-escape.t TEST 2: unescape uri in content_by_lua ==20949== Invalid read of size 4
==20949== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20949== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20949== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20949== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20949== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20949== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20949== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20949== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20949== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20949== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20949== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20949== by 0x8062D5B: main (nginx.c:385)
==20949== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20949==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 2: unescape uri in content_by_lua ==20949==
==20949== Process terminating with default action of signal 11 (SIGSEGV)
==20949== Access not within mapped region at address 0x0
==20949== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20949== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20949== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20949== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20949== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20949== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20949== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20949== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20949== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20949== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20949== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20949== by 0x8062D5B: main (nginx.c:385)
==20949== If you believe this happened as a result of a stack
==20949== overflow in your program's main thread (unlikely but
==20949== possible), you can try to increase the size of the
==20949== main thread stack using the --main-stacksize= flag.
==20949== The main thread stack size used in this run was 8388608.

006-escape.t TEST 2: unescape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 2: unescape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a ä½ 
'
006-escape.t TEST 2: unescape uri in content_by_lua ==20970== Invalid read of size 4
==20970== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20970== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20970== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20970== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20970== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20970== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20970== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20970== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20970== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20970== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20970== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20970== by 0x8062D5B: main (nginx.c:385)
==20970== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20970==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 2: unescape uri in content_by_lua ==20970==
==20970== Process terminating with default action of signal 11 (SIGSEGV)
==20970== Access not within mapped region at address 0x0
==20970== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20970== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20970== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20970== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20970== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20970== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20970== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20970== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20970== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20970== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20970== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20970== by 0x8062D5B: main (nginx.c:385)
==20970== If you believe this happened as a result of a stack
==20970== overflow in your program's main thread (unlikely but
==20970== possible), you can try to increase the size of the
==20970== main thread stack using the --main-stacksize= flag.
==20970== The main thread stack size used in this run was 8388608.

006-escape.t TEST 2: unescape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 2: unescape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a ä½ 
'
006-escape.t TEST 3: escape uri in content_by_lua ==20982== Invalid read of size 4
==20982== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20982== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20982== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20982== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20982== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20982== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20982== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20982== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20982== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20982== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20982== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20982== by 0x8062D5B: main (nginx.c:385)
==20982== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20982==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 3: escape uri in content_by_lua ==20982==
==20982== Process terminating with default action of signal 11 (SIGSEGV)
==20982== Access not within mapped region at address 0x0
==20982== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20982== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20982== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20982== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20982== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20982== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20982== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20982== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20982== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20982== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20982== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20982== by 0x8062D5B: main (nginx.c:385)
==20982== If you believe this happened as a result of a stack
==20982== overflow in your program's main thread (unlikely but
==20982== possible), you can try to increase the size of the
==20982== main thread stack using the --main-stacksize= flag.
==20982== The main thread stack size used in this run was 8388608.

006-escape.t TEST 3: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 3: escape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a%2Bb
'
006-escape.t TEST 3: escape uri in content_by_lua ==21003== Invalid read of size 4
==21003== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21003== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21003== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21003== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21003== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21003== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21003== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21003== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21003== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21003== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21003== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21003== by 0x8062D5B: main (nginx.c:385)
==21003== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21003==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 3: escape uri in content_by_lua ==21003==
==21003== Process terminating with default action of signal 11 (SIGSEGV)
==21003== Access not within mapped region at address 0x0
==21003== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21003== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21003== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21003== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21003== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21003== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21003== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21003== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21003== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21003== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21003== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21003== by 0x8062D5B: main (nginx.c:385)
==21003== If you believe this happened as a result of a stack
==21003== overflow in your program's main thread (unlikely but
==21003== possible), you can try to increase the size of the
==21003== main thread stack using the --main-stacksize= flag.
==21003== The main thread stack size used in this run was 8388608.

006-escape.t TEST 3: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 3: escape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a%2Bb
'
006-escape.t TEST 12: escape type error ==21015== Invalid read of size 4
==21015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21015== by 0x8062D5B: main (nginx.c:385)
==21015== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21015==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 12: escape type error ==21015==
==21015== Process terminating with default action of signal 11 (SIGSEGV)
==21015== Access not within mapped region at address 0x0
==21015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21015== by 0x8062D5B: main (nginx.c:385)
==21015== If you believe this happened as a result of a stack
==21015== overflow in your program's main thread (unlikely but
==21015== possible), you can try to increase the size of the
==21015== main thread stack using the --main-stacksize= flag.
==21015== The main thread stack size used in this run was 8388608.

006-escape.t TEST 12: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 12: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:45:05 [alert] 20737\#0: worker process 21015 exited on signal 11" (req 0) 2020/10/27 03:45:05 [debug] 20737\#0: shmtx forced unlock
2020/10/27 03:45:05 [debug] 20737\#0: wake up, sigio 0
2020/10/27 03:45:05 [debug] 20737\#0: reap children
2020/10/27 03:45:05 [debug] 20737\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:45:05 [debug] 20737\#0: child: 1 21015 e:0 t:1 d:0 r:1 j:0
'
006-escape.t TEST 12: escape type error ==21036== Invalid read of size 4
==21036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21036== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21036== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21036== by 0x8062D5B: main (nginx.c:385)
==21036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 12: escape type error ==21036==
==21036== Process terminating with default action of signal 11 (SIGSEGV)
==21036== Access not within mapped region at address 0x0
==21036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21036== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21036== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21036== by 0x8062D5B: main (nginx.c:385)
==21036== If you believe this happened as a result of a stack
==21036== overflow in your program's main thread (unlikely but
==21036== possible), you can try to increase the size of the
==21036== main thread stack using the --main-stacksize= flag.
==21036== The main thread stack size used in this run was 8388608.

006-escape.t TEST 12: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 12: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:45:06 [alert] 20737\#0: worker process 21036 exited on signal 11" (req 1) 2020/10/27 03:45:06 [debug] 20737\#0: shmtx forced unlock
2020/10/27 03:45:06 [debug] 20737\#0: wake up, sigio 0
2020/10/27 03:45:06 [debug] 20737\#0: reap children
2020/10/27 03:45:06 [debug] 20737\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:45:06 [debug] 20737\#0: child: 1 21036 e:0 t:1 d:0 r:1 j:0
'
006-escape.t TEST 1: escape uri in content_by_lua ==21048== Invalid read of size 4
==21048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21048== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21048== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21048== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21048== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21048== by 0x8062D5B: main (nginx.c:385)
==21048== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21048==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 1: escape uri in content_by_lua ==21048==
==21048== Process terminating with default action of signal 11 (SIGSEGV)
==21048== Access not within mapped region at address 0x0
==21048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21048== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21048== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21048== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21048== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21048== by 0x8062D5B: main (nginx.c:385)
==21048== If you believe this happened as a result of a stack
==21048== overflow in your program's main thread (unlikely but
==21048== possible), you can try to increase the size of the
==21048== main thread stack using the --main-stacksize= flag.
==21048== The main thread stack size used in this run was 8388608.

006-escape.t TEST 1: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 1: escape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a%20%E4%BD%A0
'
006-escape.t TEST 1: escape uri in content_by_lua ==21069== Invalid read of size 4
==21069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21069== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21069== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21069== by 0x8062D5B: main (nginx.c:385)
==21069== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21069==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 1: escape uri in content_by_lua ==21069==
==21069== Process terminating with default action of signal 11 (SIGSEGV)
==21069== Access not within mapped region at address 0x0
==21069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21069== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21069== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21069== by 0x8062D5B: main (nginx.c:385)
==21069== If you believe this happened as a result of a stack
==21069== overflow in your program's main thread (unlikely but
==21069== possible), you can try to increase the size of the
==21069== main thread stack using the --main-stacksize= flag.
==21069== The main thread stack size used in this run was 8388608.

006-escape.t TEST 1: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 1: escape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a%20%E4%BD%A0
'
006-escape.t TEST 7: escape nil ==21081== Invalid read of size 4
==21081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21081== by 0x8062D5B: main (nginx.c:385)
==21081== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21081==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 7: escape nil ==21081==
==21081== Process terminating with default action of signal 11 (SIGSEGV)
==21081== Access not within mapped region at address 0x0
==21081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21081== by 0x8062D5B: main (nginx.c:385)
==21081== If you believe this happened as a result of a stack
==21081== overflow in your program's main thread (unlikely but
==21081== possible), you can try to increase the size of the
==21081== main thread stack using the --main-stacksize= flag.
==21081== The main thread stack size used in this run was 8388608.

006-escape.t TEST 7: escape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 7: escape nil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '[]
'
006-escape.t TEST 7: escape nil ==21102== Invalid read of size 4
==21102== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21102== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21102== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21102== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21102== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21102== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21102== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21102== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21102== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21102== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21102== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21102== by 0x8062D5B: main (nginx.c:385)
==21102== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21102==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 7: escape nil ==21102==
==21102== Process terminating with default action of signal 11 (SIGSEGV)
==21102== Access not within mapped region at address 0x0
==21102== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21102== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21102== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21102== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21102== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21102== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21102== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21102== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21102== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21102== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21102== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21102== by 0x8062D5B: main (nginx.c:385)
==21102== If you believe this happened as a result of a stack
==21102== overflow in your program's main thread (unlikely but
==21102== possible), you can try to increase the size of the
==21102== main thread stack using the --main-stacksize= flag.
==21102== The main thread stack size used in this run was 8388608.

006-escape.t TEST 7: escape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 7: escape nil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '[]
'
006-escape.t TEST 5: escape a string that cannot be escaped ==21114== Invalid read of size 4
==21114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21114== by 0x8062D5B: main (nginx.c:385)
==21114== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21114==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 5: escape a string that cannot be escaped ==21114==
==21114== Process terminating with default action of signal 11 (SIGSEGV)
==21114== Access not within mapped region at address 0x0
==21114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21114== by 0x8062D5B: main (nginx.c:385)
==21114== If you believe this happened as a result of a stack
==21114== overflow in your program's main thread (unlikely but
==21114== possible), you can try to increase the size of the
==21114== main thread stack using the --main-stacksize= flag.
==21114== The main thread stack size used in this run was 8388608.

006-escape.t TEST 5: escape a string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 5: escape a string that cannot be escaped - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abc
'
006-escape.t TEST 5: escape a string that cannot be escaped ==21135== Invalid read of size 4
==21135== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21135== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21135== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21135== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21135== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21135== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21135== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21135== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21135== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21135== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21135== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21135== by 0x8062D5B: main (nginx.c:385)
==21135== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21135==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 5: escape a string that cannot be escaped ==21135==
==21135== Process terminating with default action of signal 11 (SIGSEGV)
==21135== Access not within mapped region at address 0x0
==21135== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21135== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21135== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21135== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21135== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21135== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21135== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21135== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21135== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21135== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21135== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21135== by 0x8062D5B: main (nginx.c:385)
==21135== If you believe this happened as a result of a stack
==21135== overflow in your program's main thread (unlikely but
==21135== possible), you can try to increase the size of the
==21135== main thread stack using the --main-stacksize= flag.
==21135== The main thread stack size used in this run was 8388608.

006-escape.t TEST 5: escape a string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 5: escape a string that cannot be escaped - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abc
'
006-escape.t TEST 10: unescape numbers ==21147== Invalid read of size 4
==21147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21147== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21147== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21147== by 0x8062D5B: main (nginx.c:385)
==21147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 10: unescape numbers ==21147==
==21147== Process terminating with default action of signal 11 (SIGSEGV)
==21147== Access not within mapped region at address 0x0
==21147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21147== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21147== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21147== by 0x8062D5B: main (nginx.c:385)
==21147== If you believe this happened as a result of a stack
==21147== overflow in your program's main thread (unlikely but
==21147== possible), you can try to increase the size of the
==21147== main thread stack using the --main-stacksize= flag.
==21147== The main thread stack size used in this run was 8388608.

006-escape.t TEST 10: unescape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 10: unescape numbers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
006-escape.t TEST 10: unescape numbers ==21168== Invalid read of size 4
==21168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21168== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21168== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21168== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21168== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21168== by 0x8062D5B: main (nginx.c:385)
==21168== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21168==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
006-escape.t TEST 10: unescape numbers ==21168==
==21168== Process terminating with default action of signal 11 (SIGSEGV)
==21168== Access not within mapped region at address 0x0
==21168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21168== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21168== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21168== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21168== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21168== by 0x8062D5B: main (nginx.c:385)
==21168== If you believe this happened as a result of a stack
==21168== overflow in your program's main thread (unlikely but
==21168== possible), you can try to increase the size of the
==21168== main thread stack using the --main-stacksize= flag.
==21168== The main thread stack size used in this run was 8388608.

006-escape.t TEST 10: unescape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 10: unescape numbers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '32
'
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused ==21283== Invalid read of size 4
==21283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21283== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21283== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21283== by 0x8062D5B: main (nginx.c:385)
==21283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused ==21283==
==21283== Process terminating with default action of signal 11 (SIGSEGV)
==21283== Access not within mapped region at address 0x0
==21283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21283== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21283== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21283== by 0x8062D5B: main (nginx.c:385)
==21283== If you believe this happened as a result of a stack
==21283== overflow in your program's main thread (unlikely but
==21283== possible), you can try to increase the size of the
==21283== main thread stack using the --main-stacksize= flag.
==21283== The main thread stack size used in this run was 8388608.

009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - status code ok got: ''
expected: '200'
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused ==21284== Invalid read of size 4
==21284== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21284== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21284== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21284== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21284== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21284== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21284== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21284== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21284== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21284== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21284== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21284== by 0x8062D5B: main (nginx.c:385)
==21284== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21284==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused ==21284==
==21284== Process terminating with default action of signal 11 (SIGSEGV)
==21284== Access not within mapped region at address 0x0
==21284== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21284== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21284== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21284== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21284== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21284== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21284== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21284== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21284== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21284== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21284== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21284== by 0x8062D5B: main (nginx.c:385)
==21284== If you believe this happened as a result of a stack
==21284== overflow in your program's main thread (unlikely but
==21284== possible), you can try to increase the size of the
==21284== main thread stack using the --main-stacksize= flag.
==21284== The main thread stack size used in this run was 8388608.

009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - status code ok got: ''
expected: '200'
009-log.t TEST 16: ngx.log in Lua files ==21296== Invalid read of size 4
==21296== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21296== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21296== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21296== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21296== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21296== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21296== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21296== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21296== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21296== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21296== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21296== by 0x8062D5B: main (nginx.c:385)
==21296== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21296==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 16: ngx.log in Lua files ==21296==
==21296== Process terminating with default action of signal 11 (SIGSEGV)
==21296== Access not within mapped region at address 0x0
==21296== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21296== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21296== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21296== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21296== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21296== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21296== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21296== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21296== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21296== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21296== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21296== by 0x8062D5B: main (nginx.c:385)
==21296== If you believe this happened as a result of a stack
==21296== overflow in your program's main thread (unlikely but
==21296== possible), you can try to increase the size of the
==21296== main thread stack using the --main-stacksize= flag.
==21296== The main thread stack size used in this run was 8388608.

009-log.t TEST 16: ngx.log in Lua files - status code ok got: ''
expected: '200'
009-log.t TEST 16: ngx.log in Lua files - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 16: ngx.log in Lua files ==21317== Invalid read of size 4
==21317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21317== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21317== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21317== by 0x8062D5B: main (nginx.c:385)
==21317== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21317==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 16: ngx.log in Lua files ==21317==
==21317== Process terminating with default action of signal 11 (SIGSEGV)
==21317== Access not within mapped region at address 0x0
==21317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21317== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21317== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21317== by 0x8062D5B: main (nginx.c:385)
==21317== If you believe this happened as a result of a stack
==21317== overflow in your program's main thread (unlikely but
==21317== possible), you can try to increase the size of the
==21317== main thread stack using the --main-stacksize= flag.
==21317== The main thread stack size used in this run was 8388608.

009-log.t TEST 16: ngx.log in Lua files - status code ok got: ''
expected: '200'
009-log.t TEST 16: ngx.log in Lua files - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua ==21330== Invalid read of size 4
==21330== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21330== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21330== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21330== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21330== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21330== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21330== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21330== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21330== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21330== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21330== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21330== by 0x8062D5B: main (nginx.c:385)
==21330== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21330==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua ==21330==
==21330== Process terminating with default action of signal 11 (SIGSEGV)
==21330== Access not within mapped region at address 0x0
==21330== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21330== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21330== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21330== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21330== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21330== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21330== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21330== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21330== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21330== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21330== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21330== by 0x8062D5B: main (nginx.c:385)
==21330== If you believe this happened as a result of a stack
==21330== overflow in your program's main thread (unlikely but
==21330== possible), you can try to increase the size of the
==21330== main thread stack using the --main-stacksize= flag.
==21330== The main thread stack size used in this run was 8388608.

009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua ==21351== Invalid read of size 4
==21351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21351== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21351== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21351== by 0x8062D5B: main (nginx.c:385)
==21351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua ==21351==
==21351== Process terminating with default action of signal 11 (SIGSEGV)
==21351== Access not within mapped region at address 0x0
==21351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21351== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21351== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21351== by 0x8062D5B: main (nginx.c:385)
==21351== If you believe this happened as a result of a stack
==21351== overflow in your program's main thread (unlikely but
==21351== possible), you can try to increase the size of the
==21351== main thread stack using the --main-stacksize= flag.
==21351== The main thread stack size used in this run was 8388608.

009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 9: test log-level DEBUG ==21363== Invalid read of size 4
==21363== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21363== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21363== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21363== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21363== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21363== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21363== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21363== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21363== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21363== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21363== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21363== by 0x8062D5B: main (nginx.c:385)
==21363== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21363==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 9: test log-level DEBUG ==21363==
==21363== Process terminating with default action of signal 11 (SIGSEGV)
==21363== Access not within mapped region at address 0x0
==21363== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21363== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21363== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21363== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21363== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21363== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21363== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21363== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21363== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21363== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21363== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21363== by 0x8062D5B: main (nginx.c:385)
==21363== If you believe this happened as a result of a stack
==21363== overflow in your program's main thread (unlikely but
==21363== possible), you can try to increase the size of the
==21363== main thread stack using the --main-stacksize= flag.
==21363== The main thread stack size used in this run was 8388608.

009-log.t TEST 9: test log-level DEBUG - status code ok got: ''
expected: '200'
009-log.t TEST 9: test log-level DEBUG - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 9: test log-level DEBUG ==21384== Invalid read of size 4
==21384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21384== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21384== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21384== by 0x8062D5B: main (nginx.c:385)
==21384== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21384==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 9: test log-level DEBUG ==21384==
==21384== Process terminating with default action of signal 11 (SIGSEGV)
==21384== Access not within mapped region at address 0x0
==21384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21384== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21384== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21384== by 0x8062D5B: main (nginx.c:385)
==21384== If you believe this happened as a result of a stack
==21384== overflow in your program's main thread (unlikely but
==21384== possible), you can try to increase the size of the
==21384== main thread stack using the --main-stacksize= flag.
==21384== The main thread stack size used in this run was 8388608.

009-log.t TEST 9: test log-level DEBUG - status code ok got: ''
expected: '200'
009-log.t TEST 9: test log-level DEBUG - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 7: test log-level NOTICE ==21396== Invalid read of size 4
==21396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21396== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21396== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21396== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21396== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21396== by 0x8062D5B: main (nginx.c:385)
==21396== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21396==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 7: test log-level NOTICE ==21396==
==21396== Process terminating with default action of signal 11 (SIGSEGV)
==21396== Access not within mapped region at address 0x0
==21396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21396== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21396== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21396== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21396== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21396== by 0x8062D5B: main (nginx.c:385)
==21396== If you believe this happened as a result of a stack
==21396== overflow in your program's main thread (unlikely but
==21396== possible), you can try to increase the size of the
==21396== main thread stack using the --main-stacksize= flag.
==21396== The main thread stack size used in this run was 8388608.

009-log.t TEST 7: test log-level NOTICE - status code ok got: ''
expected: '200'
009-log.t TEST 7: test log-level NOTICE - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 7: test log-level NOTICE ==21417== Invalid read of size 4
==21417== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21417== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21417== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21417== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21417== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21417== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21417== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21417== by 0x8062D5B: main (nginx.c:385)
==21417== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21417==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 7: test log-level NOTICE ==21417==
==21417== Process terminating with default action of signal 11 (SIGSEGV)
==21417== Access not within mapped region at address 0x0
==21417== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21417== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21417== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21417== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21417== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21417== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21417== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21417== by 0x8062D5B: main (nginx.c:385)
==21417== If you believe this happened as a result of a stack
==21417== overflow in your program's main thread (unlikely but
==21417== possible), you can try to increase the size of the
==21417== main thread stack using the --main-stacksize= flag.
==21417== The main thread stack size used in this run was 8388608.

009-log.t TEST 7: test log-level NOTICE - status code ok got: ''
expected: '200'
009-log.t TEST 7: test log-level NOTICE - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 19: \0 in the log message ==21429== Invalid read of size 4
==21429== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21429== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21429== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21429== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21429== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21429== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21429== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21429== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21429== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21429== by 0x8062D5B: main (nginx.c:385)
==21429== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21429==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 19: \0 in the log message ==21429==
==21429== Process terminating with default action of signal 11 (SIGSEGV)
==21429== Access not within mapped region at address 0x0
==21429== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21429== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21429== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21429== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21429== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21429== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21429== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21429== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21429== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21429== by 0x8062D5B: main (nginx.c:385)
==21429== If you believe this happened as a result of a stack
==21429== overflow in your program's main thread (unlikely but
==21429== possible), you can try to increase the size of the
==21429== main thread stack using the --main-stacksize= flag.
==21429== The main thread stack size used in this run was 8388608.

009-log.t TEST 19: \0 in the log message - status code ok got: ''
expected: '200'
009-log.t TEST 19: \0 in the log message - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 19: \0 in the log message ==21450== Invalid read of size 4
==21450== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21450== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21450== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21450== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21450== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21450== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21450== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21450== by 0x8062D5B: main (nginx.c:385)
==21450== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21450==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 19: \0 in the log message ==21450==
==21450== Process terminating with default action of signal 11 (SIGSEGV)
==21450== Access not within mapped region at address 0x0
==21450== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21450== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21450== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21450== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21450== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21450== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21450== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21450== by 0x8062D5B: main (nginx.c:385)
==21450== If you believe this happened as a result of a stack
==21450== overflow in your program's main thread (unlikely but
==21450== possible), you can try to increase the size of the
==21450== main thread stack using the --main-stacksize= flag.
==21450== The main thread stack size used in this run was 8388608.

009-log.t TEST 19: \0 in the log message - status code ok got: ''
expected: '200'
009-log.t TEST 19: \0 in the log message - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 12: test booleans and nil ==21462== Invalid read of size 4
==21462== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21462== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21462== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21462== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21462== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21462== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21462== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21462== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21462== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21462== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21462== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21462== by 0x8062D5B: main (nginx.c:385)
==21462== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21462==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 12: test booleans and nil ==21462==
==21462== Process terminating with default action of signal 11 (SIGSEGV)
==21462== Access not within mapped region at address 0x0
==21462== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21462== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21462== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21462== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21462== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21462== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21462== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21462== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21462== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21462== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21462== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21462== by 0x8062D5B: main (nginx.c:385)
==21462== If you believe this happened as a result of a stack
==21462== overflow in your program's main thread (unlikely but
==21462== possible), you can try to increase the size of the
==21462== main thread stack using the --main-stacksize= flag.
==21462== The main thread stack size used in this run was 8388608.

009-log.t TEST 12: test booleans and nil - status code ok got: ''
expected: '200'
009-log.t TEST 12: test booleans and nil - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 12: test booleans and nil ==21483== Invalid read of size 4
==21483== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21483== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21483== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21483== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21483== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21483== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21483== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21483== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21483== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21483== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21483== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21483== by 0x8062D5B: main (nginx.c:385)
==21483== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21483==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 12: test booleans and nil ==21483==
==21483== Process terminating with default action of signal 11 (SIGSEGV)
==21483== Access not within mapped region at address 0x0
==21483== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21483== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21483== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21483== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21483== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21483== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21483== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21483== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21483== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21483== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21483== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21483== by 0x8062D5B: main (nginx.c:385)
==21483== If you believe this happened as a result of a stack
==21483== overflow in your program's main thread (unlikely but
==21483== possible), you can try to increase the size of the
==21483== main thread stack using the --main-stacksize= flag.
==21483== The main thread stack size used in this run was 8388608.

009-log.t TEST 12: test booleans and nil - status code ok got: ''
expected: '200'
009-log.t TEST 12: test booleans and nil - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 11: print(nil) ==21495== Invalid read of size 4
==21495== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21495== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21495== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21495== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21495== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21495== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21495== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21495== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21495== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21495== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21495== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21495== by 0x8062D5B: main (nginx.c:385)
==21495== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21495==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 11: print(nil) ==21495==
==21495== Process terminating with default action of signal 11 (SIGSEGV)
==21495== Access not within mapped region at address 0x0
==21495== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21495== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21495== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21495== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21495== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21495== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21495== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21495== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21495== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21495== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21495== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21495== by 0x8062D5B: main (nginx.c:385)
==21495== If you believe this happened as a result of a stack
==21495== overflow in your program's main thread (unlikely but
==21495== possible), you can try to increase the size of the
==21495== main thread stack using the --main-stacksize= flag.
==21495== The main thread stack size used in this run was 8388608.

009-log.t TEST 11: print(nil) - status code ok got: ''
expected: '200'
009-log.t TEST 11: print(nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 11: print(nil) ==21516== Invalid read of size 4
==21516== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21516== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21516== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21516== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21516== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21516== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21516== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21516== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21516== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21516== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21516== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21516== by 0x8062D5B: main (nginx.c:385)
==21516== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21516==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 11: print(nil) ==21516==
==21516== Process terminating with default action of signal 11 (SIGSEGV)
==21516== Access not within mapped region at address 0x0
==21516== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21516== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21516== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21516== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21516== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21516== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21516== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21516== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21516== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21516== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21516== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21516== by 0x8062D5B: main (nginx.c:385)
==21516== If you believe this happened as a result of a stack
==21516== overflow in your program's main thread (unlikely but
==21516== possible), you can try to increase the size of the
==21516== main thread stack using the --main-stacksize= flag.
==21516== The main thread stack size used in this run was 8388608.

009-log.t TEST 11: print(nil) - status code ok got: ''
expected: '200'
009-log.t TEST 11: print(nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 10: regression test print() ==21528== Invalid read of size 4
==21528== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21528== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21528== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21528== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21528== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21528== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21528== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21528== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21528== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21528== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21528== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21528== by 0x8062D5B: main (nginx.c:385)
==21528== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21528==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 10: regression test print() ==21528==
==21528== Process terminating with default action of signal 11 (SIGSEGV)
==21528== Access not within mapped region at address 0x0
==21528== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21528== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21528== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21528== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21528== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21528== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21528== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21528== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21528== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21528== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21528== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21528== by 0x8062D5B: main (nginx.c:385)
==21528== If you believe this happened as a result of a stack
==21528== overflow in your program's main thread (unlikely but
==21528== possible), you can try to increase the size of the
==21528== main thread stack using the --main-stacksize= flag.
==21528== The main thread stack size used in this run was 8388608.

009-log.t TEST 10: regression test print() - status code ok got: ''
expected: '200'
009-log.t TEST 10: regression test print() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 10: regression test print() ==21549== Invalid read of size 4
==21549== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21549== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21549== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21549== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21549== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21549== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21549== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21549== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21549== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21549== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21549== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21549== by 0x8062D5B: main (nginx.c:385)
==21549== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21549==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 10: regression test print() ==21549==
==21549== Process terminating with default action of signal 11 (SIGSEGV)
==21549== Access not within mapped region at address 0x0
==21549== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21549== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21549== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21549== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21549== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21549== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21549== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21549== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21549== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21549== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21549== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21549== by 0x8062D5B: main (nginx.c:385)
==21549== If you believe this happened as a result of a stack
==21549== overflow in your program's main thread (unlikely but
==21549== possible), you can try to increase the size of the
==21549== main thread stack using the --main-stacksize= flag.
==21549== The main thread stack size used in this run was 8388608.

009-log.t TEST 10: regression test print() - status code ok got: ''
expected: '200'
009-log.t TEST 10: regression test print() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 18: ngx.log with bad levels (9) ==21561== Invalid read of size 4
==21561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21561== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21561== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21561== by 0x8062D5B: main (nginx.c:385)
==21561== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21561==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 18: ngx.log with bad levels (9) ==21561==
==21561== Process terminating with default action of signal 11 (SIGSEGV)
==21561== Access not within mapped region at address 0x0
==21561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21561== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21561== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21561== by 0x8062D5B: main (nginx.c:385)
==21561== If you believe this happened as a result of a stack
==21561== overflow in your program's main thread (unlikely but
==21561== possible), you can try to increase the size of the
==21561== main thread stack using the --main-stacksize= flag.
==21561== The main thread stack size used in this run was 8388608.

009-log.t TEST 18: ngx.log with bad levels (9) - status code ok got: ''
expected: '200'
009-log.t TEST 18: ngx.log with bad levels (9) ==21582== Invalid read of size 4
==21582== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21582== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21582== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21582== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21582== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21582== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21582== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21582== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21582== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21582== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21582== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21582== by 0x8062D5B: main (nginx.c:385)
==21582== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21582==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 18: ngx.log with bad levels (9) ==21582==
==21582== Process terminating with default action of signal 11 (SIGSEGV)
==21582== Access not within mapped region at address 0x0
==21582== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21582== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21582== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21582== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21582== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21582== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21582== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21582== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21582== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21582== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21582== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21582== by 0x8062D5B: main (nginx.c:385)
==21582== If you believe this happened as a result of a stack
==21582== overflow in your program's main thread (unlikely but
==21582== possible), you can try to increase the size of the
==21582== main thread stack using the --main-stacksize= flag.
==21582== The main thread stack size used in this run was 8388608.

009-log.t TEST 18: ngx.log with bad levels (9) - status code ok got: ''
expected: '200'
009-log.t TEST 2: test log-level EMERG ==21594== Invalid read of size 4
==21594== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21594== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21594== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21594== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21594== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21594== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21594== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21594== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21594== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21594== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21594== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21594== by 0x8062D5B: main (nginx.c:385)
==21594== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21594==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 2: test log-level EMERG ==21594==
==21594== Process terminating with default action of signal 11 (SIGSEGV)
==21594== Access not within mapped region at address 0x0
==21594== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21594== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21594== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21594== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21594== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21594== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21594== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21594== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21594== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21594== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21594== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21594== by 0x8062D5B: main (nginx.c:385)
==21594== If you believe this happened as a result of a stack
==21594== overflow in your program's main thread (unlikely but
==21594== possible), you can try to increase the size of the
==21594== main thread stack using the --main-stacksize= flag.
==21594== The main thread stack size used in this run was 8388608.

009-log.t TEST 2: test log-level EMERG - status code ok got: ''
expected: '200'
009-log.t TEST 2: test log-level EMERG - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 2: test log-level EMERG ==21615== Invalid read of size 4
==21615== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21615== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21615== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21615== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21615== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21615== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21615== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21615== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21615== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21615== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21615== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21615== by 0x8062D5B: main (nginx.c:385)
==21615== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21615==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 2: test log-level EMERG ==21615==
==21615== Process terminating with default action of signal 11 (SIGSEGV)
==21615== Access not within mapped region at address 0x0
==21615== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21615== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21615== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21615== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21615== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21615== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21615== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21615== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21615== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21615== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21615== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21615== by 0x8062D5B: main (nginx.c:385)
==21615== If you believe this happened as a result of a stack
==21615== overflow in your program's main thread (unlikely but
==21615== possible), you can try to increase the size of the
==21615== main thread stack using the --main-stacksize= flag.
==21615== The main thread stack size used in this run was 8388608.

009-log.t TEST 2: test log-level EMERG - status code ok got: ''
expected: '200'
009-log.t TEST 2: test log-level EMERG - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 8: test log-level INFO ==21627== Invalid read of size 4
==21627== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21627== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21627== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21627== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21627== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21627== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21627== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21627== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21627== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21627== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21627== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21627== by 0x8062D5B: main (nginx.c:385)
==21627== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21627==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 8: test log-level INFO ==21627==
==21627== Process terminating with default action of signal 11 (SIGSEGV)
==21627== Access not within mapped region at address 0x0
==21627== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21627== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21627== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21627== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21627== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21627== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21627== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21627== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21627== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21627== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21627== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21627== by 0x8062D5B: main (nginx.c:385)
==21627== If you believe this happened as a result of a stack
==21627== overflow in your program's main thread (unlikely but
==21627== possible), you can try to increase the size of the
==21627== main thread stack using the --main-stacksize= flag.
==21627== The main thread stack size used in this run was 8388608.

009-log.t TEST 8: test log-level INFO - status code ok got: ''
expected: '200'
009-log.t TEST 8: test log-level INFO - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 8: test log-level INFO ==21648== Invalid read of size 4
==21648== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21648== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21648== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21648== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21648== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21648== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21648== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21648== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21648== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21648== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21648== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21648== by 0x8062D5B: main (nginx.c:385)
==21648== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21648==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 8: test log-level INFO ==21648==
==21648== Process terminating with default action of signal 11 (SIGSEGV)
==21648== Access not within mapped region at address 0x0
==21648== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21648== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21648== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21648== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21648== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21648== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21648== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21648== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21648== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21648== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21648== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21648== by 0x8062D5B: main (nginx.c:385)
==21648== If you believe this happened as a result of a stack
==21648== overflow in your program's main thread (unlikely but
==21648== possible), you can try to increase the size of the
==21648== main thread stack using the --main-stacksize= flag.
==21648== The main thread stack size used in this run was 8388608.

009-log.t TEST 8: test log-level INFO - status code ok got: ''
expected: '200'
009-log.t TEST 8: test log-level INFO - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 3: test log-level ALERT ==21660== Invalid read of size 4
==21660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21660== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21660== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21660== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21660== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21660== by 0x8062D5B: main (nginx.c:385)
==21660== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21660==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 3: test log-level ALERT ==21660==
==21660== Process terminating with default action of signal 11 (SIGSEGV)
==21660== Access not within mapped region at address 0x0
==21660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21660== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21660== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21660== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21660== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21660== by 0x8062D5B: main (nginx.c:385)
==21660== If you believe this happened as a result of a stack
==21660== overflow in your program's main thread (unlikely but
==21660== possible), you can try to increase the size of the
==21660== main thread stack using the --main-stacksize= flag.
==21660== The main thread stack size used in this run was 8388608.

009-log.t TEST 3: test log-level ALERT - status code ok got: ''
expected: '200'
009-log.t TEST 3: test log-level ALERT - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 3: test log-level ALERT ==21681== Invalid read of size 4
==21681== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21681== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21681== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21681== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21681== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21681== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21681== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21681== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21681== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21681== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21681== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21681== by 0x8062D5B: main (nginx.c:385)
==21681== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21681==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 3: test log-level ALERT ==21681==
==21681== Process terminating with default action of signal 11 (SIGSEGV)
==21681== Access not within mapped region at address 0x0
==21681== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21681== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21681== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21681== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21681== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21681== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21681== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21681== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21681== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21681== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21681== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21681== by 0x8062D5B: main (nginx.c:385)
==21681== If you believe this happened as a result of a stack
==21681== overflow in your program's main thread (unlikely but
==21681== possible), you can try to increase the size of the
==21681== main thread stack using the --main-stacksize= flag.
==21681== The main thread stack size used in this run was 8388608.

009-log.t TEST 3: test log-level ALERT - status code ok got: ''
expected: '200'
009-log.t TEST 3: test log-level ALERT - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua ==21693== Invalid read of size 4
==21693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21693== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21693== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21693== by 0x8062D5B: main (nginx.c:385)
==21693== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21693==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua ==21693==
==21693== Process terminating with default action of signal 11 (SIGSEGV)
==21693== Access not within mapped region at address 0x0
==21693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21693== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21693== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21693== by 0x8062D5B: main (nginx.c:385)
==21693== If you believe this happened as a result of a stack
==21693== overflow in your program's main thread (unlikely but
==21693== possible), you can try to increase the size of the
==21693== main thread stack using the --main-stacksize= flag.
==21693== The main thread stack size used in this run was 8388608.

009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua ==21714== Invalid read of size 4
==21714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21714== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21714== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21714== by 0x8062D5B: main (nginx.c:385)
==21714== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua ==21714==
==21714== Process terminating with default action of signal 11 (SIGSEGV)
==21714== Access not within mapped region at address 0x0
==21714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21714== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21714== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21714== by 0x8062D5B: main (nginx.c:385)
==21714== If you believe this happened as a result of a stack
==21714== overflow in your program's main thread (unlikely but
==21714== possible), you can try to increase the size of the
==21714== main thread stack using the --main-stacksize= flag.
==21714== The main thread stack size used in this run was 8388608.

009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 4: test log-level CRIT ==21726== Invalid read of size 4
==21726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21726== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21726== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21726== by 0x8062D5B: main (nginx.c:385)
==21726== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21726==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 4: test log-level CRIT ==21726==
==21726== Process terminating with default action of signal 11 (SIGSEGV)
==21726== Access not within mapped region at address 0x0
==21726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21726== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21726== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21726== by 0x8062D5B: main (nginx.c:385)
==21726== If you believe this happened as a result of a stack
==21726== overflow in your program's main thread (unlikely but
==21726== possible), you can try to increase the size of the
==21726== main thread stack using the --main-stacksize= flag.
==21726== The main thread stack size used in this run was 8388608.

009-log.t TEST 4: test log-level CRIT - status code ok got: ''
expected: '200'
009-log.t TEST 4: test log-level CRIT - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 4: test log-level CRIT ==21747== Invalid read of size 4
==21747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21747== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21747== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21747== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21747== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21747== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21747== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21747== by 0x8062D5B: main (nginx.c:385)
==21747== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21747==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 4: test log-level CRIT ==21747==
==21747== Process terminating with default action of signal 11 (SIGSEGV)
==21747== Access not within mapped region at address 0x0
==21747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21747== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21747== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21747== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21747== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21747== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21747== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21747== by 0x8062D5B: main (nginx.c:385)
==21747== If you believe this happened as a result of a stack
==21747== overflow in your program's main thread (unlikely but
==21747== possible), you can try to increase the size of the
==21747== main thread stack using the --main-stacksize= flag.
==21747== The main thread stack size used in this run was 8388608.

009-log.t TEST 4: test log-level CRIT - status code ok got: ''
expected: '200'
009-log.t TEST 4: test log-level CRIT - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 13: ngx.log() big data ==21759== Invalid read of size 4
==21759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21759== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21759== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21759== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21759== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21759== by 0x8062D5B: main (nginx.c:385)
==21759== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21759==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 13: ngx.log() big data ==21759==
==21759== Process terminating with default action of signal 11 (SIGSEGV)
==21759== Access not within mapped region at address 0x0
==21759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21759== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21759== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21759== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21759== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21759== by 0x8062D5B: main (nginx.c:385)
==21759== If you believe this happened as a result of a stack
==21759== overflow in your program's main thread (unlikely but
==21759== possible), you can try to increase the size of the
==21759== main thread stack using the --main-stacksize= flag.
==21759== The main thread stack size used in this run was 8388608.

009-log.t TEST 13: ngx.log() big data - status code ok got: ''
expected: '200'
009-log.t TEST 13: ngx.log() big data ==21780== Invalid read of size 4
==21780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21780== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21780== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21780== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21780== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21780== by 0x8062D5B: main (nginx.c:385)
==21780== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21780==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 13: ngx.log() big data ==21780==
==21780== Process terminating with default action of signal 11 (SIGSEGV)
==21780== Access not within mapped region at address 0x0
==21780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21780== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21780== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21780== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21780== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21780== by 0x8062D5B: main (nginx.c:385)
==21780== If you believe this happened as a result of a stack
==21780== overflow in your program's main thread (unlikely but
==21780== possible), you can try to increase the size of the
==21780== main thread stack using the --main-stacksize= flag.
==21780== The main thread stack size used in this run was 8388608.

009-log.t TEST 13: ngx.log() big data - status code ok got: ''
expected: '200'
009-log.t TEST 1: test log-level STDERR ==21792== Invalid read of size 4
==21792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21792== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21792== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21792== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21792== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21792== by 0x8062D5B: main (nginx.c:385)
==21792== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21792==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 1: test log-level STDERR ==21792==
==21792== Process terminating with default action of signal 11 (SIGSEGV)
==21792== Access not within mapped region at address 0x0
==21792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21792== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21792== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21792== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21792== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21792== by 0x8062D5B: main (nginx.c:385)
==21792== If you believe this happened as a result of a stack
==21792== overflow in your program's main thread (unlikely but
==21792== possible), you can try to increase the size of the
==21792== main thread stack using the --main-stacksize= flag.
==21792== The main thread stack size used in this run was 8388608.

009-log.t TEST 1: test log-level STDERR - status code ok got: ''
expected: '200'
009-log.t TEST 1: test log-level STDERR - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 1: test log-level STDERR ==21813== Invalid read of size 4
==21813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21813== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21813== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21813== by 0x8062D5B: main (nginx.c:385)
==21813== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21813==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 1: test log-level STDERR ==21813==
==21813== Process terminating with default action of signal 11 (SIGSEGV)
==21813== Access not within mapped region at address 0x0
==21813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21813== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21813== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21813== by 0x8062D5B: main (nginx.c:385)
==21813== If you believe this happened as a result of a stack
==21813== overflow in your program's main thread (unlikely but
==21813== possible), you can try to increase the size of the
==21813== main thread stack using the --main-stacksize= flag.
==21813== The main thread stack size used in this run was 8388608.

009-log.t TEST 1: test log-level STDERR - status code ok got: ''
expected: '200'
009-log.t TEST 1: test log-level STDERR - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 6: test log-level WARN ==21825== Invalid read of size 4
==21825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21825== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21825== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21825== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21825== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21825== by 0x8062D5B: main (nginx.c:385)
==21825== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21825==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 6: test log-level WARN ==21825==
==21825== Process terminating with default action of signal 11 (SIGSEGV)
==21825== Access not within mapped region at address 0x0
==21825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21825== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21825== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21825== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21825== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21825== by 0x8062D5B: main (nginx.c:385)
==21825== If you believe this happened as a result of a stack
==21825== overflow in your program's main thread (unlikely but
==21825== possible), you can try to increase the size of the
==21825== main thread stack using the --main-stacksize= flag.
==21825== The main thread stack size used in this run was 8388608.

009-log.t TEST 6: test log-level WARN - status code ok got: ''
expected: '200'
009-log.t TEST 6: test log-level WARN - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 6: test log-level WARN ==21846== Invalid read of size 4
==21846== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21846== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21846== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21846== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21846== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21846== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21846== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21846== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21846== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21846== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21846== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21846== by 0x8062D5B: main (nginx.c:385)
==21846== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21846==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 6: test log-level WARN ==21846==
==21846== Process terminating with default action of signal 11 (SIGSEGV)
==21846== Access not within mapped region at address 0x0
==21846== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21846== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21846== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21846== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21846== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21846== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21846== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21846== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21846== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21846== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21846== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21846== by 0x8062D5B: main (nginx.c:385)
==21846== If you believe this happened as a result of a stack
==21846== overflow in your program's main thread (unlikely but
==21846== possible), you can try to increase the size of the
==21846== main thread stack using the --main-stacksize= flag.
==21846== The main thread stack size used in this run was 8388608.

009-log.t TEST 6: test log-level WARN - status code ok got: ''
expected: '200'
009-log.t TEST 6: test log-level WARN - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 5: test log-level ERR ==21858== Invalid read of size 4
==21858== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21858== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21858== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21858== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21858== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21858== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21858== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21858== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21858== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21858== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21858== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21858== by 0x8062D5B: main (nginx.c:385)
==21858== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21858==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 5: test log-level ERR ==21858==
==21858== Process terminating with default action of signal 11 (SIGSEGV)
==21858== Access not within mapped region at address 0x0
==21858== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21858== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21858== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21858== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21858== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21858== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21858== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21858== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21858== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21858== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21858== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21858== by 0x8062D5B: main (nginx.c:385)
==21858== If you believe this happened as a result of a stack
==21858== overflow in your program's main thread (unlikely but
==21858== possible), you can try to increase the size of the
==21858== main thread stack using the --main-stacksize= flag.
==21858== The main thread stack size used in this run was 8388608.

009-log.t TEST 5: test log-level ERR - status code ok got: ''
expected: '200'
009-log.t TEST 5: test log-level ERR - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 5: test log-level ERR ==21879== Invalid read of size 4
==21879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21879== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21879== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21879== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21879== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21879== by 0x8062D5B: main (nginx.c:385)
==21879== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21879==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
009-log.t TEST 5: test log-level ERR ==21879==
==21879== Process terminating with default action of signal 11 (SIGSEGV)
==21879== Access not within mapped region at address 0x0
==21879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21879== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21879== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21879== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21879== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21879== by 0x8062D5B: main (nginx.c:385)
==21879== If you believe this happened as a result of a stack
==21879== overflow in your program's main thread (unlikely but
==21879== possible), you can try to increase the size of the
==21879== main thread stack using the --main-stacksize= flag.
==21879== The main thread stack size used in this run was 8388608.

009-log.t TEST 5: test log-level ERR - status code ok got: ''
expected: '200'
009-log.t TEST 5: test log-level ERR - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22542== Invalid read of size 4
==22542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22542== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22542== by 0x8062D5B: main (nginx.c:385)
==22542== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22542==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22542==
==22542== Process terminating with default action of signal 11 (SIGSEGV)
==22542== Access not within mapped region at address 0x0
==22542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22542== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22542== by 0x8062D5B: main (nginx.c:385)
==22542== If you believe this happened as a result of a stack
==22542== overflow in your program's main thread (unlikely but
==22542== possible), you can try to increase the size of the
==22542== main thread stack using the --main-stacksize= flag.
==22542== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22543== Invalid read of size 4
==22543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22543== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22543== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22543== by 0x8062D5B: main (nginx.c:385)
==22543== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22543==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22543==
==22543== Process terminating with default action of signal 11 (SIGSEGV)
==22543== Access not within mapped region at address 0x0
==22543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22543== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22543== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22543== by 0x8062D5B: main (nginx.c:385)
==22543== If you believe this happened as a result of a stack
==22543== overflow in your program's main thread (unlikely but
==22543== possible), you can try to increase the size of the
==22543== main thread stack using the --main-stacksize= flag.
==22543== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22544== Invalid read of size 4
==22544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22544== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22544== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22544== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22544== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22544== by 0x8062D5B: main (nginx.c:385)
==22544== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22544==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22544==
==22544== Process terminating with default action of signal 11 (SIGSEGV)
==22544== Access not within mapped region at address 0x0
==22544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22544== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22544== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22544== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22544== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22544== by 0x8062D5B: main (nginx.c:385)
==22544== If you believe this happened as a result of a stack
==22544== overflow in your program's main thread (unlikely but
==22544== possible), you can try to increase the size of the
==22544== main thread stack using the --main-stacksize= flag.
==22544== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive ==22557== Invalid read of size 4
==22557== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22557== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22557== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22557== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22557== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22557== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22557== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22557== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22557== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22557== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22557== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22557== by 0x8062D5B: main (nginx.c:385)
==22557== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22557==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 4: lua_code_cache off + setkeepalive ==22557==
==22557== Process terminating with default action of signal 11 (SIGSEGV)
==22557== Access not within mapped region at address 0x0
==22557== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22557== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22557== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22557== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22557== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22557== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22557== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22557== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22557== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22557== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22557== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22557== by 0x8062D5B: main (nginx.c:385)
==22557== If you believe this happened as a result of a stack
==22557== overflow in your program's main thread (unlikely but
==22557== possible), you can try to increase the size of the
==22557== main thread stack using the --main-stacksize= flag.
==22557== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 4: lua_code_cache off + setkeepalive - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:47:54 [error] 22557\#0: *37 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 03:47:54 [debug] 22557\#0: *37 stream lua tcp socket handle connect error
2020/10/27 03:47:54 [debug] 22557\#0: *37 stream lua finalize socket
2020/10/27 03:47:54 [debug] 22557\#0: *37 lua stream cleanup free: 05144048
2020/10/27 03:47:54 [debug] 22557\#0: *37 lua close socket connection
2020/10/27 03:47:54 [debug] 22557\#0: *37 reusable connection: 0
2020/10/27 03:47:54 [debug] 22557\#0: *37 stream lua tcp socket waking up the current request
2020/10/27 03:47:54 [debug] 22557\#0: *37 lua ngx_stream_lua_content_wev_handler
2020/10/27 03:47:54 [debug] 22557\#0: *37 stream lua tcp operation done, resuming lua thread
2020/10/27 03:47:54 [debug] 22557\#0: *37 stream lua tcp socket calling prepare retvals handler 081677D0, u:05143CB0
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive ==22578== Invalid read of size 4
==22578== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22578== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22578== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22578== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22578== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22578== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22578== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22578== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22578== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22578== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22578== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22578== by 0x8062D5B: main (nginx.c:385)
==22578== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22578==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 4: lua_code_cache off + setkeepalive ==22578==
==22578== Process terminating with default action of signal 11 (SIGSEGV)
==22578== Access not within mapped region at address 0x0
==22578== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22578== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22578== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22578== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22578== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22578== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22578== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22578== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22578== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22578== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22578== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22578== by 0x8062D5B: main (nginx.c:385)
==22578== If you believe this happened as a result of a stack
==22578== overflow in your program's main thread (unlikely but
==22578== possible), you can try to increase the size of the
==22578== main thread stack using the --main-stacksize= flag.
==22578== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 4: lua_code_cache off + setkeepalive - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:47:55 [error] 22578\#0: *41 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 03:47:55 [debug] 22578\#0: *41 stream lua tcp socket handle connect error
2020/10/27 03:47:55 [debug] 22578\#0: *41 stream lua finalize socket
2020/10/27 03:47:55 [debug] 22578\#0: *41 lua stream cleanup free: 0511CF30
2020/10/27 03:47:55 [debug] 22578\#0: *41 lua close socket connection
2020/10/27 03:47:55 [debug] 22578\#0: *41 reusable connection: 0
2020/10/27 03:47:55 [debug] 22578\#0: *41 stream lua tcp socket waking up the current request
2020/10/27 03:47:55 [debug] 22578\#0: *41 lua ngx_stream_lua_content_wev_handler
2020/10/27 03:47:55 [debug] 22578\#0: *41 stream lua tcp operation done, resuming lua thread
2020/10/27 03:47:55 [debug] 22578\#0: *41 stream lua tcp socket calling prepare retvals handler 081677D0, u:0511CB98
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive ==22579== Invalid read of size 4
==22579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22579== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22579== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22579== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22579== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22579== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22579== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22579== by 0x8062D5B: main (nginx.c:385)
==22579== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22579==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 4: lua_code_cache off + setkeepalive ==22579==
==22579== Process terminating with default action of signal 11 (SIGSEGV)
==22579== Access not within mapped region at address 0x0
==22579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22579== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22579== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22579== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22579== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22579== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22579== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22579== by 0x8062D5B: main (nginx.c:385)
==22579== If you believe this happened as a result of a stack
==22579== overflow in your program's main thread (unlikely but
==22579== possible), you can try to increase the size of the
==22579== main thread stack using the --main-stacksize= flag.
==22579== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 4: lua_code_cache off + setkeepalive - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:47:56 [error] 22579\#0: *45 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 2) 2020/10/27 03:47:56 [debug] 22579\#0: *45 stream lua tcp socket handle connect error
2020/10/27 03:47:56 [debug] 22579\#0: *45 stream lua finalize socket
2020/10/27 03:47:56 [debug] 22579\#0: *45 lua stream cleanup free: 0511D618
2020/10/27 03:47:56 [debug] 22579\#0: *45 lua close socket connection
2020/10/27 03:47:56 [debug] 22579\#0: *45 reusable connection: 0
2020/10/27 03:47:56 [debug] 22579\#0: *45 stream lua tcp socket waking up the current request
2020/10/27 03:47:56 [debug] 22579\#0: *45 lua ngx_stream_lua_content_wev_handler
2020/10/27 03:47:56 [debug] 22579\#0: *45 stream lua tcp operation done, resuming lua thread
2020/10/27 03:47:56 [debug] 22579\#0: *45 stream lua tcp socket calling prepare retvals handler 081677D0, u:0511D280
'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) ==22592== Invalid read of size 4
==22592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22592== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22592== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22592== by 0x8062D5B: main (nginx.c:385)
==22592== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22592==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) ==22592==
==22592== Process terminating with default action of signal 11 (SIGSEGV)
==22592== Access not within mapped region at address 0x0
==22592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22592== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22592== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22592== by 0x8062D5B: main (nginx.c:385)
==22592== If you believe this happened as a result of a stack
==22592== overflow in your program's main thread (unlikely but
==22592== possible), you can try to increase the size of the
==22592== main thread stack using the --main-stacksize= flag.
==22592== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) ==22613== Invalid read of size 4
==22613== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22613== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22613== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22613== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22613== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22613== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22613== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22613== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22613== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22613== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22613== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22613== by 0x8062D5B: main (nginx.c:385)
==22613== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22613==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) ==22613==
==22613== Process terminating with default action of signal 11 (SIGSEGV)
==22613== Access not within mapped region at address 0x0
==22613== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22613== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22613== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22613== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22613== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22613== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22613== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22613== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22613== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22613== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22613== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22613== by 0x8062D5B: main (nginx.c:385)
==22613== If you believe this happened as a result of a stack
==22613== overflow in your program's main thread (unlikely but
==22613== possible), you can try to increase the size of the
==22613== main thread stack using the --main-stacksize= flag.
==22613== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) ==22614== Invalid read of size 4
==22614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22614== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22614== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22614== by 0x8062D5B: main (nginx.c:385)
==22614== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22614==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) ==22614==
==22614== Process terminating with default action of signal 11 (SIGSEGV)
==22614== Access not within mapped region at address 0x0
==22614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22614== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22614== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22614== by 0x8062D5B: main (nginx.c:385)
==22614== If you believe this happened as a result of a stack
==22614== overflow in your program's main thread (unlikely but
==22614== possible), you can try to increase the size of the
==22614== main thread stack using the --main-stacksize= flag.
==22614== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'ok
'
014-bugs.t TEST 2: print lua empty strings ==22627== Invalid read of size 4
==22627== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22627== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22627== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22627== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22627== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22627== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22627== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22627== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22627== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22627== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22627== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22627== by 0x8062D5B: main (nginx.c:385)
==22627== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22627==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 2: print lua empty strings ==22627==
==22627== Process terminating with default action of signal 11 (SIGSEGV)
==22627== Access not within mapped region at address 0x0
==22627== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22627== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22627== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22627== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22627== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22627== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22627== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22627== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22627== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22627== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22627== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22627== by 0x8062D5B: main (nginx.c:385)
==22627== If you believe this happened as a result of a stack
==22627== overflow in your program's main thread (unlikely but
==22627== possible), you can try to increase the size of the
==22627== main thread stack using the --main-stacksize= flag.
==22627== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 2: print lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Hi'
014-bugs.t TEST 2: print lua empty strings ==22648== Invalid read of size 4
==22648== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22648== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22648== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22648== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22648== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22648== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22648== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22648== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22648== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22648== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22648== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22648== by 0x8062D5B: main (nginx.c:385)
==22648== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22648==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 2: print lua empty strings ==22648==
==22648== Process terminating with default action of signal 11 (SIGSEGV)
==22648== Access not within mapped region at address 0x0
==22648== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22648== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22648== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22648== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22648== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22648== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22648== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22648== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22648== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22648== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22648== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22648== by 0x8062D5B: main (nginx.c:385)
==22648== If you believe this happened as a result of a stack
==22648== overflow in your program's main thread (unlikely but
==22648== possible), you can try to increase the size of the
==22648== main thread stack using the --main-stacksize= flag.
==22648== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 2: print lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Hi'
014-bugs.t TEST 2: print lua empty strings ==22649== Invalid read of size 4
==22649== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22649== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22649== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22649== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22649== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22649== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22649== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22649== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22649== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22649== by 0x8062D5B: main (nginx.c:385)
==22649== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22649==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 2: print lua empty strings ==22649==
==22649== Process terminating with default action of signal 11 (SIGSEGV)
==22649== Access not within mapped region at address 0x0
==22649== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22649== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22649== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22649== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22649== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22649== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22649== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22649== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22649== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22649== by 0x8062D5B: main (nginx.c:385)
==22649== If you believe this happened as a result of a stack
==22649== overflow in your program's main thread (unlikely but
==22649== possible), you can try to increase the size of the
==22649== main thread stack using the --main-stacksize= flag.
==22649== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 2: print lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'Hi'
014-bugs.t TEST 3: say lua empty strings ==22661== Invalid read of size 4
==22661== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22661== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22661== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22661== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22661== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22661== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22661== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22661== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22661== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22661== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22661== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22661== by 0x8062D5B: main (nginx.c:385)
==22661== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22661==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 3: say lua empty strings ==22661==
==22661== Process terminating with default action of signal 11 (SIGSEGV)
==22661== Access not within mapped region at address 0x0
==22661== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22661== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22661== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22661== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22661== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22661== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22661== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22661== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22661== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22661== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22661== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22661== by 0x8062D5B: main (nginx.c:385)
==22661== If you believe this happened as a result of a stack
==22661== overflow in your program's main thread (unlikely but
==22661== possible), you can try to increase the size of the
==22661== main thread stack using the --main-stacksize= flag.
==22661== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 3: say lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: say lua empty strings - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-
-Hi'
014-bugs.t TEST 3: say lua empty strings ==22682== Invalid read of size 4
==22682== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22682== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22682== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22682== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22682== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22682== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22682== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22682== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22682== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22682== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22682== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22682== by 0x8062D5B: main (nginx.c:385)
==22682== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22682==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 3: say lua empty strings ==22682==
==22682== Process terminating with default action of signal 11 (SIGSEGV)
==22682== Access not within mapped region at address 0x0
==22682== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22682== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22682== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22682== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22682== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22682== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22682== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22682== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22682== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22682== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22682== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22682== by 0x8062D5B: main (nginx.c:385)
==22682== If you believe this happened as a result of a stack
==22682== overflow in your program's main thread (unlikely but
==22682== possible), you can try to increase the size of the
==22682== main thread stack using the --main-stacksize= flag.
==22682== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 3: say lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: say lua empty strings - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-
-Hi'
014-bugs.t TEST 3: say lua empty strings ==22683== Invalid read of size 4
==22683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22683== by 0x8062D5B: main (nginx.c:385)
==22683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
014-bugs.t TEST 3: say lua empty strings ==22683==
==22683== Process terminating with default action of signal 11 (SIGSEGV)
==22683== Access not within mapped region at address 0x0
==22683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22683== by 0x8062D5B: main (nginx.c:385)
==22683== If you believe this happened as a result of a stack
==22683== overflow in your program's main thread (unlikely but
==22683== possible), you can try to increase the size of the
==22683== main thread stack using the --main-stacksize= flag.
==22683== The main thread stack size used in this run was 8388608.

014-bugs.t TEST 3: say lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: say lua empty strings - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-
-Hi'
019-const.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22692== Invalid read of size 4
==22692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22692== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22692== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22692== by 0x8062D5B: main (nginx.c:385)
==22692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
019-const.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22692==
==22692== Process terminating with default action of signal 11 (SIGSEGV)
==22692== Access not within mapped region at address 0x0
==22692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22692== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22692== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22692== by 0x8062D5B: main (nginx.c:385)
==22692== If you believe this happened as a result of a stack
==22692== overflow in your program's main thread (unlikely but
==22692== possible), you can try to increase the size of the
==22692== main thread stack using the --main-stacksize= flag.
==22692== The main thread stack size used in this run was 8388608.

019-const.t TEST 1: sanity - status code ok got: ''
expected: '200'
019-const.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "0\x{0a}-2\x{0a}-4\x{0a}-1\x{0a}-5\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
019-const.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22693== Invalid read of size 4
==22693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22693== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22693== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22693== by 0x8062D5B: main (nginx.c:385)
==22693== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22693==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
019-const.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22693==
==22693== Process terminating with default action of signal 11 (SIGSEGV)
==22693== Access not within mapped region at address 0x0
==22693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22693== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22693== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22693== by 0x8062D5B: main (nginx.c:385)
==22693== If you believe this happened as a result of a stack
==22693== overflow in your program's main thread (unlikely but
==22693== possible), you can try to increase the size of the
==22693== main thread stack using the --main-stacksize= flag.
==22693== The main thread stack size used in this run was 8388608.

019-const.t TEST 1: sanity - status code ok got: ''
expected: '200'
019-const.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "0\x{0a}-2\x{0a}-4\x{0a}-1\x{0a}-5\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
023-preread/client-abort.t TEST 10: cosocket + stop ==22992== Invalid read of size 4
==22992== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22992== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22992== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22992== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22992== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22992== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22992== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22992== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22992== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22992== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22992== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22992== by 0x8062D5B: main (nginx.c:385)
==22992== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22992==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/client-abort.t TEST 10: cosocket + stop ==22992==
==22992== Process terminating with default action of signal 11 (SIGSEGV)
==22992== Access not within mapped region at address 0x0
==22992== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22992== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22992== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22992== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22992== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22992== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22992== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22992== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22992== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22992== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22992== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22992== by 0x8062D5B: main (nginx.c:385)
==22992== If you believe this happened as a result of a stack
==22992== overflow in your program's main thread (unlikely but
==22992== possible), you can try to increase the size of the
==22992== main thread stack using the --main-stacksize= flag.
==22992== The main thread stack size used in this run was 8388608.

023-preread/client-abort.t TEST 10: cosocket + stop - status code ok got: ''
expected: '200'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 0)
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:49:01 [error] 22992\#0: *313 connect() failed (111: Connection refused) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 03:49:01 [debug] 22992\#0: *313 stream lua tcp socket handle connect error
2020/10/27 03:49:01 [debug] 22992\#0: *313 stream lua finalize socket
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua stream cleanup free: 051520B0
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua close socket connection
2020/10/27 03:49:01 [debug] 22992\#0: *313 reusable connection: 0
2020/10/27 03:49:01 [debug] 22992\#0: *313 stream lua tcp socket waking up the current request
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua session run phases: "057EC5D8"
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua preread handler
2020/10/27 03:49:01 [debug] 22992\#0: *313 stream lua tcp operation done, resuming lua thread
'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:49:01 [error] 22992\#0: *313 stream [lua] preread_by_lua(nginx.conf:51):10: failed to connect: connection refused while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 03:49:01 [debug] 22992\#0: *313 lua resume returned 0
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua light thread ended normally
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua deleting light thread
2020/10/27 03:49:01 [debug] 22992\#0: *313 stream lua run thread returned 0
2020/10/27 03:49:01 [debug] 22992\#0: *313 tcp_nodelay
2020/10/27 03:49:01 [debug] 22992\#0: *313 stream lua content handler
2020/10/27 03:49:01 [debug] 22992\#0: *313 looking up Lua code cache with key '=content_by_lua(nginx.conf:53)nhli_e70c4df10ef0983b9c8c31bd06b2a2c3'
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua reset ctx
2020/10/27 03:49:01 [debug] 22992\#0: *313 lua creating new thread
'
023-preread/client-abort.t TEST 10: cosocket + stop ==23013== Invalid read of size 4
==23013== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23013== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23013== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23013== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23013== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23013== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23013== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23013== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23013== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23013== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23013== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23013== by 0x8062D5B: main (nginx.c:385)
==23013== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23013==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/client-abort.t TEST 10: cosocket + stop ==23013==
==23013== Process terminating with default action of signal 11 (SIGSEGV)
==23013== Access not within mapped region at address 0x0
==23013== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23013== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23013== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23013== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23013== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23013== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23013== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23013== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23013== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23013== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23013== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23013== by 0x8062D5B: main (nginx.c:385)
==23013== If you believe this happened as a result of a stack
==23013== overflow in your program's main thread (unlikely but
==23013== possible), you can try to increase the size of the
==23013== main thread stack using the --main-stacksize= flag.
==23013== The main thread stack size used in this run was 8388608.

023-preread/client-abort.t TEST 10: cosocket + stop - status code ok got: ''
expected: '200'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 1)
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:49:03 [error] 23013\#0: *317 connect() failed (111: Connection refused) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 03:49:03 [debug] 23013\#0: *317 stream lua tcp socket handle connect error
2020/10/27 03:49:03 [debug] 23013\#0: *317 stream lua finalize socket
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua stream cleanup free: 050B8970
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua close socket connection
2020/10/27 03:49:03 [debug] 23013\#0: *317 reusable connection: 0
2020/10/27 03:49:03 [debug] 23013\#0: *317 stream lua tcp socket waking up the current request
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua session run phases: "056F1470"
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua preread handler
2020/10/27 03:49:03 [debug] 23013\#0: *317 stream lua tcp operation done, resuming lua thread
'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 03:49:03 [error] 23013\#0: *317 stream [lua] preread_by_lua(nginx.conf:51):10: failed to connect: connection refused while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 03:49:03 [debug] 23013\#0: *317 lua resume returned 0
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua light thread ended normally
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua deleting light thread
2020/10/27 03:49:03 [debug] 23013\#0: *317 stream lua run thread returned 0
2020/10/27 03:49:03 [debug] 23013\#0: *317 tcp_nodelay
2020/10/27 03:49:03 [debug] 23013\#0: *317 stream lua content handler
2020/10/27 03:49:03 [debug] 23013\#0: *317 looking up Lua code cache with key '=content_by_lua(nginx.conf:53)nhli_e70c4df10ef0983b9c8c31bd06b2a2c3'
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua reset ctx
2020/10/27 03:49:03 [debug] 23013\#0: *317 lua creating new thread
'
023-preread/exit.t TEST 1: throw 500 - Can't connect to 127.0.0.1:1984: Connection refused ==23084== Invalid read of size 4
==23084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23084== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23084== by 0x8062D5B: main (nginx.c:385)
==23084== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23084==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/exit.t TEST 1: throw 500 - Can't connect to 127.0.0.1:1984: Connection refused ==23084==
==23084== Process terminating with default action of signal 11 (SIGSEGV)
==23084== Access not within mapped region at address 0x0
==23084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23084== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23084== by 0x8062D5B: main (nginx.c:385)
==23084== If you believe this happened as a result of a stack
==23084== overflow in your program's main thread (unlikely but
==23084== possible), you can try to increase the size of the
==23084== main thread stack using the --main-stacksize= flag.
==23084== The main thread stack size used in this run was 8388608.

023-preread/exit.t TEST 1: throw 500 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 1: throw 500 - Can't connect to 127.0.0.1:1984: Connection refused ==23085== Invalid read of size 4
==23085== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23085== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23085== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23085== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23085== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23085== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23085== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23085== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23085== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23085== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23085== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23085== by 0x8062D5B: main (nginx.c:385)
==23085== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23085==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/exit.t TEST 1: throw 500 - Can't connect to 127.0.0.1:1984: Connection refused ==23085==
==23085== Process terminating with default action of signal 11 (SIGSEGV)
==23085== Access not within mapped region at address 0x0
==23085== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23085== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23085== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23085== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23085== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23085== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23085== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23085== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23085== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23085== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23085== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23085== by 0x8062D5B: main (nginx.c:385)
==23085== If you believe this happened as a result of a stack
==23085== overflow in your program's main thread (unlikely but
==23085== possible), you can try to increase the size of the
==23085== main thread stack using the --main-stacksize= flag.
==23085== The main thread stack size used in this run was 8388608.

023-preread/exit.t TEST 1: throw 500 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 2: throw 0 ==23097== Invalid read of size 4
==23097== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23097== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23097== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23097== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23097== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23097== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23097== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23097== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23097== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23097== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23097== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23097== by 0x8062D5B: main (nginx.c:385)
==23097== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23097==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/exit.t TEST 2: throw 0 ==23097==
==23097== Process terminating with default action of signal 11 (SIGSEGV)
==23097== Access not within mapped region at address 0x0
==23097== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23097== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23097== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23097== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23097== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23097== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23097== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23097== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23097== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23097== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23097== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23097== by 0x8062D5B: main (nginx.c:385)
==23097== If you believe this happened as a result of a stack
==23097== overflow in your program's main thread (unlikely but
==23097== possible), you can try to increase the size of the
==23097== main thread stack using the --main-stacksize= flag.
==23097== The main thread stack size used in this run was 8388608.

023-preread/exit.t TEST 2: throw 0 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 2: throw 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Hi
'
023-preread/exit.t TEST 2: throw 0 ==23118== Invalid read of size 4
==23118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23118== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23118== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23118== by 0x8062D5B: main (nginx.c:385)
==23118== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23118==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/exit.t TEST 2: throw 0 ==23118==
==23118== Process terminating with default action of signal 11 (SIGSEGV)
==23118== Access not within mapped region at address 0x0
==23118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23118== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23118== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23118== by 0x8062D5B: main (nginx.c:385)
==23118== If you believe this happened as a result of a stack
==23118== overflow in your program's main thread (unlikely but
==23118== possible), you can try to increase the size of the
==23118== main thread stack using the --main-stacksize= flag.
==23118== The main thread stack size used in this run was 8388608.

023-preread/exit.t TEST 2: throw 0 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 2: throw 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Hi
'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - Can't connect to 127.0.0.1:1984: Connection refused ==23127== Invalid read of size 4
==23127== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23127== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23127== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23127== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23127== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23127== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23127== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23127== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23127== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23127== by 0x8062D5B: main (nginx.c:385)
==23127== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23127==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - Can't connect to 127.0.0.1:1984: Connection refused ==23127==
==23127== Process terminating with default action of signal 11 (SIGSEGV)
==23127== Access not within mapped region at address 0x0
==23127== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23127== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23127== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23127== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23127== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23127== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23127== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23127== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23127== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23127== by 0x8062D5B: main (nginx.c:385)
==23127== If you believe this happened as a result of a stack
==23127== overflow in your program's main thread (unlikely but
==23127== possible), you can try to increase the size of the
==23127== main thread stack using the --main-stacksize= flag.
==23127== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received: hello
'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - pattern "finalize stream session: 200" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - Can't connect to 127.0.0.1:1984: Connection refused ==23128== Invalid read of size 4
==23128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23128== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23128== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23128== by 0x8062D5B: main (nginx.c:385)
==23128== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23128==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - Can't connect to 127.0.0.1:1984: Connection refused ==23128==
==23128== Process terminating with default action of signal 11 (SIGSEGV)
==23128== Access not within mapped region at address 0x0
==23128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23128== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23128== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23128== by 0x8062D5B: main (nginx.c:385)
==23128== If you believe this happened as a result of a stack
==23128== overflow in your program's main thread (unlikely but
==23128== possible), you can try to increase the size of the
==23128== main thread stack using the --main-stacksize= flag.
==23128== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received: hello
'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - pattern "finalize stream session: 200" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 10: peek busy reading ==23140== Invalid read of size 4
==23140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23140== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23140== by 0x8062D5B: main (nginx.c:385)
==23140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 10: peek busy reading ==23140==
==23140== Process terminating with default action of signal 11 (SIGSEGV)
==23140== Access not within mapped region at address 0x0
==23140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23140== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23140== by 0x8062D5B: main (nginx.c:385)
==23140== If you believe this happened as a result of a stack
==23140== overflow in your program's main thread (unlikely but
==23140== possible), you can try to increase the size of the
==23140== main thread stack using the --main-stacksize= flag.
==23140== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 10: peek busy reading - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 10: peek busy reading - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-got the request socket
-failed to receive: socket busy reading
-done'
023-preread/req-socket.t TEST 10: peek busy reading ==23161== Invalid read of size 4
==23161== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23161== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23161== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23161== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23161== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23161== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23161== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23161== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23161== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23161== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23161== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23161== by 0x8062D5B: main (nginx.c:385)
==23161== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23161==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 10: peek busy reading ==23161==
==23161== Process terminating with default action of signal 11 (SIGSEGV)
==23161== Access not within mapped region at address 0x0
==23161== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23161== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23161== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23161== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23161== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23161== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23161== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23161== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23161== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23161== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23161== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23161== by 0x8062D5B: main (nginx.c:385)
==23161== If you believe this happened as a result of a stack
==23161== overflow in your program's main thread (unlikely but
==23161== possible), you can try to increase the size of the
==23161== main thread stack using the --main-stacksize= flag.
==23161== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 10: peek busy reading - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 10: peek busy reading - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-got the request socket
-failed to receive: socket busy reading
-done'
023-preread/req-socket.t TEST 1: sanity ==23173== Invalid read of size 4
==23173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23173== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23173== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23173== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23173== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23173== by 0x8062D5B: main (nginx.c:385)
==23173== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23173==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 1: sanity ==23173==
==23173== Process terminating with default action of signal 11 (SIGSEGV)
==23173== Access not within mapped region at address 0x0
==23173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23173== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23173== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23173== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23173== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23173== by 0x8062D5B: main (nginx.c:385)
==23173== If you believe this happened as a result of a stack
==23173== overflow in your program's main thread (unlikely but
==23173== possible), you can try to increase the size of the
==23173== main thread stack using the --main-stacksize= flag.
==23173== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 1: sanity ==23194== Invalid read of size 4
==23194== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23194== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23194== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23194== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23194== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23194== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23194== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23194== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23194== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23194== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23194== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23194== by 0x8062D5B: main (nginx.c:385)
==23194== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23194==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 1: sanity ==23194==
==23194== Process terminating with default action of signal 11 (SIGSEGV)
==23194== Access not within mapped region at address 0x0
==23194== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23194== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23194== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23194== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23194== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23194== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23194== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23194== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23194== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23194== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23194== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23194== by 0x8062D5B: main (nginx.c:385)
==23194== If you believe this happened as a result of a stack
==23194== overflow in your program's main thread (unlikely but
==23194== possible), you can try to increase the size of the
==23194== main thread stack using the --main-stacksize= flag.
==23194== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body ==23206== Invalid read of size 4
==23206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23206== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23206== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23206== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23206== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23206== by 0x8062D5B: main (nginx.c:385)
==23206== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23206==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body ==23206==
==23206== Process terminating with default action of signal 11 (SIGSEGV)
==23206== Access not within mapped region at address 0x0
==23206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23206== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23206== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23206== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23206== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23206== by 0x8062D5B: main (nginx.c:385)
==23206== If you believe this happened as a result of a stack
==23206== overflow in your program's main thread (unlikely but
==23206== possible), you can try to increase the size of the
==23206== main thread stack using the --main-stacksize= flag.
==23206== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body ==23227== Invalid read of size 4
==23227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23227== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23227== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23227== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23227== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23227== by 0x8062D5B: main (nginx.c:385)
==23227== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23227==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body ==23227==
==23227== Process terminating with default action of signal 11 (SIGSEGV)
==23227== Access not within mapped region at address 0x0
==23227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23227== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23227== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23227== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23227== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23227== by 0x8062D5B: main (nginx.c:385)
==23227== If you believe this happened as a result of a stack
==23227== overflow in your program's main thread (unlikely but
==23227== possible), you can try to increase the size of the
==23227== main thread stack using the --main-stacksize= flag.
==23227== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
023-preread/req-socket.t TEST 6: peeking preread buffer ==23240== Invalid read of size 4
==23240== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23240== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23240== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23240== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23240== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23240== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23240== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23240== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23240== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23240== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23240== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23240== by 0x8062D5B: main (nginx.c:385)
==23240== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23240==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 6: peeking preread buffer ==23240==
==23240== Process terminating with default action of signal 11 (SIGSEGV)
==23240== Access not within mapped region at address 0x0
==23240== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23240== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23240== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23240== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23240== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23240== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23240== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23240== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23240== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23240== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23240== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23240== by 0x8062D5B: main (nginx.c:385)
==23240== If you believe this happened as a result of a stack
==23240== overflow in your program's main thread (unlikely but
==23240== possible), you can try to increase the size of the
==23240== main thread stack using the --main-stacksize= flag.
==23240== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 6: peeking preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 6: peeking preread buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: hello
-received: hello worl
-got the request socket
-done
'
023-preread/req-socket.t TEST 6: peeking preread buffer - pattern "upstream received: hello world" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 6: peeking preread buffer ==23261== Invalid read of size 4
==23261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23261== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23261== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23261== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23261== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23261== by 0x8062D5B: main (nginx.c:385)
==23261== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23261==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 6: peeking preread buffer ==23261==
==23261== Process terminating with default action of signal 11 (SIGSEGV)
==23261== Access not within mapped region at address 0x0
==23261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23261== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23261== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23261== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23261== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23261== by 0x8062D5B: main (nginx.c:385)
==23261== If you believe this happened as a result of a stack
==23261== overflow in your program's main thread (unlikely but
==23261== possible), you can try to increase the size of the
==23261== main thread stack using the --main-stacksize= flag.
==23261== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 6: peeking preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 6: peeking preread buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: hello
-received: hello worl
-got the request socket
-done
'
023-preread/req-socket.t TEST 6: peeking preread buffer - pattern "upstream received: hello world" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 5: small preread buffer ==23273== Invalid read of size 4
==23273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23273== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23273== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23273== by 0x8062D5B: main (nginx.c:385)
==23273== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23273==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 5: small preread buffer ==23273==
==23273== Process terminating with default action of signal 11 (SIGSEGV)
==23273== Access not within mapped region at address 0x0
==23273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23273== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23273== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23273== by 0x8062D5B: main (nginx.c:385)
==23273== If you believe this happened as a result of a stack
==23273== overflow in your program's main thread (unlikely but
==23273== possible), you can try to increase the size of the
==23273== main thread stack using the --main-stacksize= flag.
==23273== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 5: small preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 5: small preread buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 5: small preread buffer ==23294== Invalid read of size 4
==23294== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23294== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23294== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23294== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23294== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23294== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23294== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23294== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23294== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23294== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23294== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23294== by 0x8062D5B: main (nginx.c:385)
==23294== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23294==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 5: small preread buffer ==23294==
==23294== Process terminating with default action of signal 11 (SIGSEGV)
==23294== Access not within mapped region at address 0x0
==23294== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23294== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23294== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23294== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23294== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23294== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23294== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23294== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23294== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23294== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23294== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23294== by 0x8062D5B: main (nginx.c:385)
==23294== If you believe this happened as a result of a stack
==23294== overflow in your program's main thread (unlikely but
==23294== possible), you can try to increase the size of the
==23294== main thread stack using the --main-stacksize= flag.
==23294== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 5: small preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 5: small preread buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 9: peek in wrong phase ==23306== Invalid read of size 4
==23306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23306== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23306== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23306== by 0x8062D5B: main (nginx.c:385)
==23306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 9: peek in wrong phase ==23306==
==23306== Process terminating with default action of signal 11 (SIGSEGV)
==23306== Access not within mapped region at address 0x0
==23306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23306== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23306== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23306== by 0x8062D5B: main (nginx.c:385)
==23306== If you believe this happened as a result of a stack
==23306== overflow in your program's main thread (unlikely but
==23306== possible), you can try to increase the size of the
==23306== main thread stack using the --main-stacksize= flag.
==23306== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 9: peek in wrong phase - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 9: peek in wrong phase ==23327== Invalid read of size 4
==23327== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23327== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23327== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23327== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23327== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23327== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23327== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23327== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23327== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23327== by 0x8062D5B: main (nginx.c:385)
==23327== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23327==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 9: peek in wrong phase ==23327==
==23327== Process terminating with default action of signal 11 (SIGSEGV)
==23327== Access not within mapped region at address 0x0
==23327== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23327== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23327== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23327== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23327== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23327== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23327== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23327== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23327== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23327== by 0x8062D5B: main (nginx.c:385)
==23327== If you believe this happened as a result of a stack
==23327== overflow in your program's main thread (unlikely but
==23327== possible), you can try to increase the size of the
==23327== main thread stack using the --main-stacksize= flag.
==23327== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 9: peek in wrong phase - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 4: read from preread buffer ==23339== Invalid read of size 4
==23339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23339== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23339== by 0x8062D5B: main (nginx.c:385)
==23339== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23339==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 4: read from preread buffer ==23339==
==23339== Process terminating with default action of signal 11 (SIGSEGV)
==23339== Access not within mapped region at address 0x0
==23339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23339== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23339== by 0x8062D5B: main (nginx.c:385)
==23339== If you believe this happened as a result of a stack
==23339== overflow in your program's main thread (unlikely but
==23339== possible), you can try to increase the size of the
==23339== main thread stack using the --main-stacksize= flag.
==23339== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 4: read from preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 4: read from preread buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 4: read from preread buffer ==23360== Invalid read of size 4
==23360== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23360== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23360== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23360== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23360== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23360== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23360== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23360== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23360== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23360== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23360== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23360== by 0x8062D5B: main (nginx.c:385)
==23360== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23360==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 4: read from preread buffer ==23360==
==23360== Process terminating with default action of signal 11 (SIGSEGV)
==23360== Access not within mapped region at address 0x0
==23360== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23360== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23360== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23360== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23360== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23360== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23360== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23360== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23360== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23360== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23360== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23360== by 0x8062D5B: main (nginx.c:385)
==23360== If you believe this happened as a result of a stack
==23360== overflow in your program's main thread (unlikely but
==23360== possible), you can try to increase the size of the
==23360== main thread stack using the --main-stacksize= flag.
==23360== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 4: read from preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 4: read from preread buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary ==23372== Invalid read of size 4
==23372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23372== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23372== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23372== by 0x8062D5B: main (nginx.c:385)
==23372== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23372==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary ==23372==
==23372== Process terminating with default action of signal 11 (SIGSEGV)
==23372== Access not within mapped region at address 0x0
==23372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23372== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23372== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23372== by 0x8062D5B: main (nginx.c:385)
==23372== If you believe this happened as a result of a stack
==23372== overflow in your program's main thread (unlikely but
==23372== possible), you can try to increase the size of the
==23372== main thread stack using the --main-stacksize= flag.
==23372== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:49:53 [alert] 23126\#0: worker process 23372 exited on signal 11" (req 0) 2020/10/27 03:49:53 [debug] 23126\#0: shmtx forced unlock
2020/10/27 03:49:53 [debug] 23126\#0: wake up, sigio 0
2020/10/27 03:49:53 [debug] 23126\#0: reap children
2020/10/27 03:49:53 [debug] 23126\#0: child: 0 23372 e:0 t:1 d:0 r:1 j:0
'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary ==23393== Invalid read of size 4
==23393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23393== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23393== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23393== by 0x8062D5B: main (nginx.c:385)
==23393== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23393==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary ==23393==
==23393== Process terminating with default action of signal 11 (SIGSEGV)
==23393== Access not within mapped region at address 0x0
==23393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23393== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23393== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23393== by 0x8062D5B: main (nginx.c:385)
==23393== If you believe this happened as a result of a stack
==23393== overflow in your program's main thread (unlikely but
==23393== possible), you can try to increase the size of the
==23393== main thread stack using the --main-stacksize= flag.
==23393== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:49:53 [alert] 23126\#0: worker process 23393 exited on signal 11" (req 1) 2020/10/27 03:49:53 [debug] 23126\#0: shmtx forced unlock
2020/10/27 03:49:53 [debug] 23126\#0: wake up, sigio 0
2020/10/27 03:49:53 [debug] 23126\#0: reap children
2020/10/27 03:49:53 [debug] 23126\#0: child: 0 23393 e:0 t:1 d:0 r:1 j:0
'
023-preread/req-socket.t TEST 11: peek before and after receive ==23406== Invalid read of size 4
==23406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23406== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23406== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23406== by 0x8062D5B: main (nginx.c:385)
==23406== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23406==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 11: peek before and after receive ==23406==
==23406== Process terminating with default action of signal 11 (SIGSEGV)
==23406== Access not within mapped region at address 0x0
==23406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23406== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23406== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23406== by 0x8062D5B: main (nginx.c:385)
==23406== If you believe this happened as a result of a stack
==23406== overflow in your program's main thread (unlikely but
==23406== possible), you can try to increase the size of the
==23406== main thread stack using the --main-stacksize= flag.
==23406== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 11: peek before and after receive - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 11: peek before and after receive - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-got the request socket
-received: hello
-received: hello world
'
023-preread/req-socket.t TEST 11: peek before and after receive - pattern "attempt to peek on a consumed socket" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 11: peek before and after receive ==23427== Invalid read of size 4
==23427== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23427== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23427== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23427== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23427== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23427== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23427== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23427== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23427== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23427== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23427== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23427== by 0x8062D5B: main (nginx.c:385)
==23427== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23427==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 11: peek before and after receive ==23427==
==23427== Process terminating with default action of signal 11 (SIGSEGV)
==23427== Access not within mapped region at address 0x0
==23427== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23427== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23427== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23427== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23427== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23427== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23427== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23427== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23427== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23427== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23427== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23427== by 0x8062D5B: main (nginx.c:385)
==23427== If you believe this happened as a result of a stack
==23427== overflow in your program's main thread (unlikely but
==23427== possible), you can try to increase the size of the
==23427== main thread stack using the --main-stacksize= flag.
==23427== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 11: peek before and after receive - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 11: peek before and after receive - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-got the request socket
-received: hello
-received: hello world
'
023-preread/req-socket.t TEST 11: peek before and after receive - pattern "attempt to peek on a consumed socket" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small ==23439== Invalid read of size 4
==23439== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23439== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23439== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23439== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23439== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23439== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23439== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23439== by 0x8062D5B: main (nginx.c:385)
==23439== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23439==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small ==23439==
==23439== Process terminating with default action of signal 11 (SIGSEGV)
==23439== Access not within mapped region at address 0x0
==23439== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23439== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23439== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23439== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23439== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23439== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23439== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23439== by 0x8062D5B: main (nginx.c:385)
==23439== If you believe this happened as a result of a stack
==23439== overflow in your program's main thread (unlikely but
==23439== possible), you can try to increase the size of the
==23439== main thread stack using the --main-stacksize= flag.
==23439== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small ==23460== Invalid read of size 4
==23460== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23460== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23460== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23460== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23460== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23460== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23460== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23460== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23460== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23460== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23460== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23460== by 0x8062D5B: main (nginx.c:385)
==23460== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23460==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small ==23460==
==23460== Process terminating with default action of signal 11 (SIGSEGV)
==23460== Access not within mapped region at address 0x0
==23460== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23460== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23460== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23460== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23460== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23460== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23460== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23460== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23460== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23460== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23460== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23460== by 0x8062D5B: main (nginx.c:385)
==23460== If you believe this happened as a result of a stack
==23460== overflow in your program's main thread (unlikely but
==23460== possible), you can try to increase the size of the
==23460== main thread stack using the --main-stacksize= flag.
==23460== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 12: peek works with other preread handlers ==23472== Invalid read of size 4
==23472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23472== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23472== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23472== by 0x8062D5B: main (nginx.c:385)
==23472== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23472==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 12: peek works with other preread handlers ==23472==
==23472== Process terminating with default action of signal 11 (SIGSEGV)
==23472== Access not within mapped region at address 0x0
==23472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23472== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23472== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23472== by 0x8062D5B: main (nginx.c:385)
==23472== If you believe this happened as a result of a stack
==23472== overflow in your program's main thread (unlikely but
==23472== possible), you can try to increase the size of the
==23472== main thread stack using the --main-stacksize= flag.
==23472== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 12: peek works with other preread handlers - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done'
023-preread/req-socket.t TEST 12: peek works with other preread handlers ==23493== Invalid read of size 4
==23493== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23493== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23493== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23493== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23493== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23493== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23493== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23493== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23493== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23493== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23493== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23493== by 0x8062D5B: main (nginx.c:385)
==23493== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23493==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/req-socket.t TEST 12: peek works with other preread handlers ==23493==
==23493== Process terminating with default action of signal 11 (SIGSEGV)
==23493== Access not within mapped region at address 0x0
==23493== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23493== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23493== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23493== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23493== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23493== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23493== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23493== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23493== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23493== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23493== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23493== by 0x8062D5B: main (nginx.c:385)
==23493== If you believe this happened as a result of a stack
==23493== overflow in your program's main thread (unlikely but
==23493== possible), you can try to increase the size of the
==23493== main thread stack using the --main-stacksize= flag.
==23493== The main thread stack size used in this run was 8388608.

023-preread/req-socket.t TEST 12: peek works with other preread handlers - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done'
023-preread/sanity.t TEST 4: variable - Can't connect to 127.0.0.1:1984: Connection refused ==23502== Invalid read of size 4
==23502== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23502== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23502== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23502== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23502== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23502== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23502== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23502== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23502== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23502== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23502== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23502== by 0x8062D5B: main (nginx.c:385)
==23502== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23502==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 4: variable - Can't connect to 127.0.0.1:1984: Connection refused ==23502==
==23502== Process terminating with default action of signal 11 (SIGSEGV)
==23502== Access not within mapped region at address 0x0
==23502== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23502== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23502== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23502== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23502== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23502== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23502== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23502== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23502== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23502== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23502== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23502== by 0x8062D5B: main (nginx.c:385)
==23502== If you believe this happened as a result of a stack
==23502== overflow in your program's main thread (unlikely but
==23502== possible), you can try to increase the size of the
==23502== main thread stack using the --main-stacksize= flag.
==23502== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 4: variable - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 4: variable - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 4: variable - Can't connect to 127.0.0.1:1984: Connection refused ==23503== Invalid read of size 4
==23503== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23503== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23503== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23503== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23503== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23503== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23503== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23503== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23503== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23503== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23503== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23503== by 0x8062D5B: main (nginx.c:385)
==23503== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23503==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 4: variable - Can't connect to 127.0.0.1:1984: Connection refused ==23503==
==23503== Process terminating with default action of signal 11 (SIGSEGV)
==23503== Access not within mapped region at address 0x0
==23503== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23503== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23503== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23503== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23503== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23503== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23503== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23503== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23503== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23503== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23503== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23503== by 0x8062D5B: main (nginx.c:385)
==23503== If you believe this happened as a result of a stack
==23503== overflow in your program's main thread (unlikely but
==23503== possible), you can try to increase the size of the
==23503== main thread stack using the --main-stacksize= flag.
==23503== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 4: variable - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 4: variable - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 3: no ngx.echo ==23515== Invalid read of size 4
==23515== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23515== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23515== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23515== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23515== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23515== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23515== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23515== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23515== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23515== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23515== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23515== by 0x8062D5B: main (nginx.c:385)
==23515== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23515==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 3: no ngx.echo ==23515==
==23515== Process terminating with default action of signal 11 (SIGSEGV)
==23515== Access not within mapped region at address 0x0
==23515== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23515== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23515== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23515== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23515== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23515== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23515== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23515== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23515== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23515== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23515== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23515== by 0x8062D5B: main (nginx.c:385)
==23515== If you believe this happened as a result of a stack
==23515== overflow in your program's main thread (unlikely but
==23515== possible), you can try to increase the size of the
==23515== main thread stack using the --main-stacksize= flag.
==23515== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 3: no ngx.echo ==23536== Invalid read of size 4
==23536== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23536== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23536== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23536== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23536== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23536== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23536== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23536== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23536== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23536== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23536== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23536== by 0x8062D5B: main (nginx.c:385)
==23536== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23536==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 3: no ngx.echo ==23536==
==23536== Process terminating with default action of signal 11 (SIGSEGV)
==23536== Access not within mapped region at address 0x0
==23536== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23536== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23536== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23536== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23536== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23536== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23536== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23536== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23536== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23536== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23536== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23536== by 0x8062D5B: main (nginx.c:385)
==23536== If you believe this happened as a result of a stack
==23536== overflow in your program's main thread (unlikely but
==23536== possible), you can try to increase the size of the
==23536== main thread stack using the --main-stacksize= flag.
==23536== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 6: nil is "nil" ==23548== Invalid read of size 4
==23548== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23548== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23548== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23548== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23548== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23548== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23548== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23548== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23548== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23548== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23548== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23548== by 0x8062D5B: main (nginx.c:385)
==23548== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23548==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 6: nil is "nil" ==23548==
==23548== Process terminating with default action of signal 11 (SIGSEGV)
==23548== Access not within mapped region at address 0x0
==23548== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23548== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23548== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23548== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23548== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23548== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23548== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23548== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23548== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23548== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23548== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23548== by 0x8062D5B: main (nginx.c:385)
==23548== If you believe this happened as a result of a stack
==23548== overflow in your program's main thread (unlikely but
==23548== possible), you can try to increase the size of the
==23548== main thread stack using the --main-stacksize= flag.
==23548== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 6: nil is "nil" - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 6: nil is "nil" - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 6: nil is "nil" ==23569== Invalid read of size 4
==23569== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23569== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23569== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23569== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23569== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23569== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23569== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23569== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23569== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23569== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23569== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23569== by 0x8062D5B: main (nginx.c:385)
==23569== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23569==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 6: nil is "nil" ==23569==
==23569== Process terminating with default action of signal 11 (SIGSEGV)
==23569== Access not within mapped region at address 0x0
==23569== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23569== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23569== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23569== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23569== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23569== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23569== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23569== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23569== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23569== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23569== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23569== by 0x8062D5B: main (nginx.c:385)
==23569== If you believe this happened as a result of a stack
==23569== overflow in your program's main thread (unlikely but
==23569== possible), you can try to increase the size of the
==23569== main thread stack using the --main-stacksize= flag.
==23569== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 6: nil is "nil" - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 6: nil is "nil" - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 7: write boolean ==23581== Invalid read of size 4
==23581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23581== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23581== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23581== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23581== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23581== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23581== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23581== by 0x8062D5B: main (nginx.c:385)
==23581== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23581==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 7: write boolean ==23581==
==23581== Process terminating with default action of signal 11 (SIGSEGV)
==23581== Access not within mapped region at address 0x0
==23581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23581== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23581== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23581== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23581== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23581== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23581== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23581== by 0x8062D5B: main (nginx.c:385)
==23581== If you believe this happened as a result of a stack
==23581== overflow in your program's main thread (unlikely but
==23581== possible), you can try to increase the size of the
==23581== main thread stack using the --main-stacksize= flag.
==23581== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 7: write boolean - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 7: write boolean - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 7: write boolean ==23602== Invalid read of size 4
==23602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23602== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23602== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23602== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23602== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23602== by 0x8062D5B: main (nginx.c:385)
==23602== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23602==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 7: write boolean ==23602==
==23602== Process terminating with default action of signal 11 (SIGSEGV)
==23602== Access not within mapped region at address 0x0
==23602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23602== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23602== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23602== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23602== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23602== by 0x8062D5B: main (nginx.c:385)
==23602== If you believe this happened as a result of a stack
==23602== overflow in your program's main thread (unlikely but
==23602== possible), you can try to increase the size of the
==23602== main thread stack using the --main-stacksize= flag.
==23602== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 7: write boolean - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 7: write boolean - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 12: nginx vars in script path ==23614== Invalid read of size 4
==23614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23614== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23614== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23614== by 0x8062D5B: main (nginx.c:385)
==23614== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23614==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 12: nginx vars in script path ==23614==
==23614== Process terminating with default action of signal 11 (SIGSEGV)
==23614== Access not within mapped region at address 0x0
==23614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23614== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23614== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23614== by 0x8062D5B: main (nginx.c:385)
==23614== If you believe this happened as a result of a stack
==23614== overflow in your program's main thread (unlikely but
==23614== possible), you can try to increase the size of the
==23614== main thread stack using the --main-stacksize= flag.
==23614== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 12: nginx vars in script path - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 12: nginx vars in script path - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 12: nginx vars in script path ==23635== Invalid read of size 4
==23635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23635== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23635== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23635== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23635== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23635== by 0x8062D5B: main (nginx.c:385)
==23635== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23635==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 12: nginx vars in script path ==23635==
==23635== Process terminating with default action of signal 11 (SIGSEGV)
==23635== Access not within mapped region at address 0x0
==23635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23635== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23635== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23635== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23635== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23635== by 0x8062D5B: main (nginx.c:385)
==23635== If you believe this happened as a result of a stack
==23635== overflow in your program's main thread (unlikely but
==23635== possible), you can try to increase the size of the
==23635== main thread stack using the --main-stacksize= flag.
==23635== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 12: nginx vars in script path - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 12: nginx vars in script path - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 13: phase postponing works ==23648== Invalid read of size 4
==23648== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23648== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23648== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23648== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23648== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23648== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23648== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23648== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23648== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23648== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23648== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23648== by 0x8062D5B: main (nginx.c:385)
==23648== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23648==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 13: phase postponing works ==23648==
==23648== Process terminating with default action of signal 11 (SIGSEGV)
==23648== Access not within mapped region at address 0x0
==23648== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23648== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23648== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23648== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23648== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23648== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23648== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23648== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23648== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23648== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23648== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23648== by 0x8062D5B: main (nginx.c:385)
==23648== If you believe this happened as a result of a stack
==23648== overflow in your program's main thread (unlikely but
==23648== possible), you can try to increase the size of the
==23648== main thread stack using the --main-stacksize= flag.
==23648== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 13: phase postponing works - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 13: phase postponing works - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 13: phase postponing works ==23669== Invalid read of size 4
==23669== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23669== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23669== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23669== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23669== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23669== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23669== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23669== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23669== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23669== by 0x8062D5B: main (nginx.c:385)
==23669== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23669==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 13: phase postponing works ==23669==
==23669== Process terminating with default action of signal 11 (SIGSEGV)
==23669== Access not within mapped region at address 0x0
==23669== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23669== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23669== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23669== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23669== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23669== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23669== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23669== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23669== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23669== by 0x8062D5B: main (nginx.c:385)
==23669== If you believe this happened as a result of a stack
==23669== overflow in your program's main thread (unlikely but
==23669== possible), you can try to increase the size of the
==23669== main thread stack using the --main-stacksize= flag.
==23669== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 13: phase postponing works - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 13: phase postponing works - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 1: basic print ==23681== Invalid read of size 4
==23681== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23681== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23681== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23681== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23681== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23681== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23681== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23681== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23681== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23681== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23681== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23681== by 0x8062D5B: main (nginx.c:385)
==23681== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23681==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 1: basic print ==23681==
==23681== Process terminating with default action of signal 11 (SIGSEGV)
==23681== Access not within mapped region at address 0x0
==23681== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23681== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23681== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23681== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23681== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23681== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23681== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23681== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23681== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23681== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23681== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23681== by 0x8062D5B: main (nginx.c:385)
==23681== If you believe this happened as a result of a stack
==23681== overflow in your program's main thread (unlikely but
==23681== possible), you can try to increase the size of the
==23681== main thread stack using the --main-stacksize= flag.
==23681== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 1: basic print - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 1: basic print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 1: basic print ==23702== Invalid read of size 4
==23702== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23702== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23702== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23702== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23702== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23702== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23702== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23702== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23702== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23702== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23702== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23702== by 0x8062D5B: main (nginx.c:385)
==23702== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23702==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 1: basic print ==23702==
==23702== Process terminating with default action of signal 11 (SIGSEGV)
==23702== Access not within mapped region at address 0x0
==23702== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23702== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23702== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23702== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23702== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23702== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23702== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23702== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23702== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23702== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23702== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23702== by 0x8062D5B: main (nginx.c:385)
==23702== If you believe this happened as a result of a stack
==23702== overflow in your program's main thread (unlikely but
==23702== possible), you can try to increase the size of the
==23702== main thread stack using the --main-stacksize= flag.
==23702== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 1: basic print - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 1: basic print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 5: variable (file) ==23714== Invalid read of size 4
==23714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23714== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23714== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23714== by 0x8062D5B: main (nginx.c:385)
==23714== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 5: variable (file) ==23714==
==23714== Process terminating with default action of signal 11 (SIGSEGV)
==23714== Access not within mapped region at address 0x0
==23714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23714== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23714== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23714== by 0x8062D5B: main (nginx.c:385)
==23714== If you believe this happened as a result of a stack
==23714== overflow in your program's main thread (unlikely but
==23714== possible), you can try to increase the size of the
==23714== main thread stack using the --main-stacksize= flag.
==23714== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 5: variable (file) - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 5: variable (file) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 5: variable (file) ==23735== Invalid read of size 4
==23735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23735== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23735== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23735== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23735== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23735== by 0x8062D5B: main (nginx.c:385)
==23735== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23735==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 5: variable (file) ==23735==
==23735== Process terminating with default action of signal 11 (SIGSEGV)
==23735== Access not within mapped region at address 0x0
==23735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23735== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23735== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23735== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23735== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23735== by 0x8062D5B: main (nginx.c:385)
==23735== If you believe this happened as a result of a stack
==23735== overflow in your program's main thread (unlikely but
==23735== possible), you can try to increase the size of the
==23735== main thread stack using the --main-stacksize= flag.
==23735== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 5: variable (file) - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 5: variable (file) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 2: basic say ==23748== Invalid read of size 4
==23748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23748== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23748== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23748== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23748== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23748== by 0x8062D5B: main (nginx.c:385)
==23748== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23748==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 2: basic say ==23748==
==23748== Process terminating with default action of signal 11 (SIGSEGV)
==23748== Access not within mapped region at address 0x0
==23748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23748== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23748== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23748== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23748== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23748== by 0x8062D5B: main (nginx.c:385)
==23748== If you believe this happened as a result of a stack
==23748== overflow in your program's main thread (unlikely but
==23748== possible), you can try to increase the size of the
==23748== main thread stack using the --main-stacksize= flag.
==23748== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 2: basic say - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 2: basic say - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 2: basic say ==23769== Invalid read of size 4
==23769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23769== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23769== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23769== by 0x8062D5B: main (nginx.c:385)
==23769== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23769==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 2: basic say ==23769==
==23769== Process terminating with default action of signal 11 (SIGSEGV)
==23769== Access not within mapped region at address 0x0
==23769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23769== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23769== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23769== by 0x8062D5B: main (nginx.c:385)
==23769== If you believe this happened as a result of a stack
==23769== overflow in your program's main thread (unlikely but
==23769== possible), you can try to increase the size of the
==23769== main thread stack using the --main-stacksize= flag.
==23769== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 2: basic say - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 2: basic say - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 10: use dollar ==23781== Invalid read of size 4
==23781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23781== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23781== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23781== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23781== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23781== by 0x8062D5B: main (nginx.c:385)
==23781== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23781==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 10: use dollar ==23781==
==23781== Process terminating with default action of signal 11 (SIGSEGV)
==23781== Access not within mapped region at address 0x0
==23781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23781== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23781== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23781== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23781== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23781== by 0x8062D5B: main (nginx.c:385)
==23781== If you believe this happened as a result of a stack
==23781== overflow in your program's main thread (unlikely but
==23781== possible), you can try to increase the size of the
==23781== main thread stack using the --main-stacksize= flag.
==23781== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 10: use dollar - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 10: use dollar - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "79\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 10: use dollar ==23802== Invalid read of size 4
==23802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23802== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23802== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23802== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23802== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23802== by 0x8062D5B: main (nginx.c:385)
==23802== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23802==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 10: use dollar ==23802==
==23802== Process terminating with default action of signal 11 (SIGSEGV)
==23802== Access not within mapped region at address 0x0
==23802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23802== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23802== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23802== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23802== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23802== by 0x8062D5B: main (nginx.c:385)
==23802== If you believe this happened as a result of a stack
==23802== overflow in your program's main thread (unlikely but
==23802== possible), you can try to increase the size of the
==23802== main thread stack using the --main-stacksize= flag.
==23802== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 10: use dollar - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 10: use dollar - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "79\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 9: nginx quote sql string 2 ==23814== Invalid read of size 4
==23814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23814== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23814== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23814== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23814== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23814== by 0x8062D5B: main (nginx.c:385)
==23814== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23814==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 9: nginx quote sql string 2 ==23814==
==23814== Process terminating with default action of signal 11 (SIGSEGV)
==23814== Access not within mapped region at address 0x0
==23814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23814== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23814== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23814== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23814== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23814== by 0x8062D5B: main (nginx.c:385)
==23814== If you believe this happened as a result of a stack
==23814== overflow in your program's main thread (unlikely but
==23814== possible), you can try to increase the size of the
==23814== main thread stack using the --main-stacksize= flag.
==23814== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 9: nginx quote sql string 2 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 9: nginx quote sql string 2 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 9: nginx quote sql string 2 ==23835== Invalid read of size 4
==23835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23835== by 0x8062D5B: main (nginx.c:385)
==23835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 9: nginx quote sql string 2 ==23835==
==23835== Process terminating with default action of signal 11 (SIGSEGV)
==23835== Access not within mapped region at address 0x0
==23835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23835== by 0x8062D5B: main (nginx.c:385)
==23835== If you believe this happened as a result of a stack
==23835== overflow in your program's main thread (unlikely but
==23835== possible), you can try to increase the size of the
==23835== main thread stack using the --main-stacksize= flag.
==23835== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 9: nginx quote sql string 2 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 9: nginx quote sql string 2 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 14: Lua file does not exist ==23847== Invalid read of size 4
==23847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23847== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23847== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23847== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23847== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23847== by 0x8062D5B: main (nginx.c:385)
==23847== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23847==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 14: Lua file does not exist ==23847==
==23847== Process terminating with default action of signal 11 (SIGSEGV)
==23847== Access not within mapped region at address 0x0
==23847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23847== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23847== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23847== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23847== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23847== by 0x8062D5B: main (nginx.c:385)
==23847== If you believe this happened as a result of a stack
==23847== overflow in your program's main thread (unlikely but
==23847== possible), you can try to increase the size of the
==23847== main thread stack using the --main-stacksize= flag.
==23847== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 14: Lua file does not exist - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 14: Lua file does not exist ==23868== Invalid read of size 4
==23868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23868== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23868== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23868== by 0x8062D5B: main (nginx.c:385)
==23868== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23868==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 14: Lua file does not exist ==23868==
==23868== Process terminating with default action of signal 11 (SIGSEGV)
==23868== Access not within mapped region at address 0x0
==23868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23868== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23868== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23868== by 0x8062D5B: main (nginx.c:385)
==23868== If you believe this happened as a result of a stack
==23868== overflow in your program's main thread (unlikely but
==23868== possible), you can try to increase the size of the
==23868== main thread stack using the --main-stacksize= flag.
==23868== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 14: Lua file does not exist - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 11: short circuit ==23881== Invalid read of size 4
==23881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23881== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23881== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23881== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23881== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23881== by 0x8062D5B: main (nginx.c:385)
==23881== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23881==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 11: short circuit ==23881==
==23881== Process terminating with default action of signal 11 (SIGSEGV)
==23881== Access not within mapped region at address 0x0
==23881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23881== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23881== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23881== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23881== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23881== by 0x8062D5B: main (nginx.c:385)
==23881== If you believe this happened as a result of a stack
==23881== overflow in your program's main thread (unlikely but
==23881== possible), you can try to increase the size of the
==23881== main thread stack using the --main-stacksize= flag.
==23881== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 11: short circuit - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 11: short circuit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 11: short circuit ==23902== Invalid read of size 4
==23902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23902== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23902== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23902== by 0x8062D5B: main (nginx.c:385)
==23902== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23902==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 11: short circuit ==23902==
==23902== Process terminating with default action of signal 11 (SIGSEGV)
==23902== Access not within mapped region at address 0x0
==23902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23902== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23902== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23902== by 0x8062D5B: main (nginx.c:385)
==23902== If you believe this happened as a result of a stack
==23902== overflow in your program's main thread (unlikely but
==23902== possible), you can try to increase the size of the
==23902== main thread stack using the --main-stacksize= flag.
==23902== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 11: short circuit - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 11: short circuit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 8: nginx quote sql string 1 ==23914== Invalid read of size 4
==23914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23914== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23914== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23914== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23914== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23914== by 0x8062D5B: main (nginx.c:385)
==23914== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23914==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 8: nginx quote sql string 1 ==23914==
==23914== Process terminating with default action of signal 11 (SIGSEGV)
==23914== Access not within mapped region at address 0x0
==23914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23914== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23914== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23914== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23914== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23914== by 0x8062D5B: main (nginx.c:385)
==23914== If you believe this happened as a result of a stack
==23914== overflow in your program's main thread (unlikely but
==23914== possible), you can try to increase the size of the
==23914== main thread stack using the --main-stacksize= flag.
==23914== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 8: nginx quote sql string 1 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 8: nginx quote sql string 1 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 8: nginx quote sql string 1 ==23935== Invalid read of size 4
==23935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23935== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23935== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23935== by 0x8062D5B: main (nginx.c:385)
==23935== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23935==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sanity.t TEST 8: nginx quote sql string 1 ==23935==
==23935== Process terminating with default action of signal 11 (SIGSEGV)
==23935== Access not within mapped region at address 0x0
==23935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23935== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23935== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23935== by 0x8062D5B: main (nginx.c:385)
==23935== If you believe this happened as a result of a stack
==23935== overflow in your program's main thread (unlikely but
==23935== possible), you can try to increase the size of the
==23935== main thread stack using the --main-stacksize= flag.
==23935== The main thread stack size used in this run was 8388608.

023-preread/sanity.t TEST 8: nginx quote sql string 1 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 8: nginx quote sql string 1 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==23944== Invalid read of size 4
==23944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23944== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23944== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23944== by 0x8062D5B: main (nginx.c:385)
==23944== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23944==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==23944==
==23944== Process terminating with default action of signal 11 (SIGSEGV)
==23944== Access not within mapped region at address 0x0
==23944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23944== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23944== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23944== by 0x8062D5B: main (nginx.c:385)
==23944== If you believe this happened as a result of a stack
==23944== overflow in your program's main thread (unlikely but
==23944== possible), you can try to increase the size of the
==23944== main thread stack using the --main-stacksize= flag.
==23944== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==23945== Invalid read of size 4
==23945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23945== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23945== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23945== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23945== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23945== by 0x8062D5B: main (nginx.c:385)
==23945== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23945==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==23945==
==23945== Process terminating with default action of signal 11 (SIGSEGV)
==23945== Access not within mapped region at address 0x0
==23945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23945== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23945== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23945== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23945== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23945== by 0x8062D5B: main (nginx.c:385)
==23945== If you believe this happened as a result of a stack
==23945== overflow in your program's main thread (unlikely but
==23945== possible), you can try to increase the size of the
==23945== main thread stack using the --main-stacksize= flag.
==23945== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 2: sleep ag ==23957== Invalid read of size 4
==23957== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23957== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23957== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23957== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23957== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23957== by 0x8062D5B: main (nginx.c:385)
==23957== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23957==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 2: sleep ag ==23957==
==23957== Process terminating with default action of signal 11 (SIGSEGV)
==23957== Access not within mapped region at address 0x0
==23957== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23957== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23957== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23957== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23957== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23957== by 0x8062D5B: main (nginx.c:385)
==23957== If you believe this happened as a result of a stack
==23957== overflow in your program's main thread (unlikely but
==23957== possible), you can try to increase the size of the
==23957== main thread stack using the --main-stacksize= flag.
==23957== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 2: sleep ag - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 2: sleep ag ==23978== Invalid read of size 4
==23978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23978== by 0x8062D5B: main (nginx.c:385)
==23978== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23978==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 2: sleep ag ==23978==
==23978== Process terminating with default action of signal 11 (SIGSEGV)
==23978== Access not within mapped region at address 0x0
==23978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23978== by 0x8062D5B: main (nginx.c:385)
==23978== If you believe this happened as a result of a stack
==23978== overflow in your program's main thread (unlikely but
==23978== possible), you can try to increase the size of the
==23978== main thread stack using the --main-stacksize= flag.
==23978== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 2: sleep ag - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==23990== Invalid read of size 4
==23990== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23990== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23990== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23990== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23990== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23990== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23990== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23990== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23990== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23990== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23990== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23990== by 0x8062D5B: main (nginx.c:385)
==23990== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23990==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==23990==
==23990== Process terminating with default action of signal 11 (SIGSEGV)
==23990== Access not within mapped region at address 0x0
==23990== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23990== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23990== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23990== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23990== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23990== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23990== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23990== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23990== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23990== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23990== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23990== by 0x8062D5B: main (nginx.c:385)
==23990== If you believe this happened as a result of a stack
==23990== overflow in your program's main thread (unlikely but
==23990== possible), you can try to increase the size of the
==23990== main thread stack using the --main-stacksize= flag.
==23990== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==24011== Invalid read of size 4
==24011== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24011== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24011== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24011== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24011== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24011== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24011== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24011== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24011== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24011== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24011== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24011== by 0x8062D5B: main (nginx.c:385)
==24011== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24011==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==24011==
==24011== Process terminating with default action of signal 11 (SIGSEGV)
==24011== Access not within mapped region at address 0x0
==24011== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24011== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24011== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24011== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24011== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24011== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24011== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24011== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24011== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24011== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24011== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24011== by 0x8062D5B: main (nginx.c:385)
==24011== If you believe this happened as a result of a stack
==24011== overflow in your program's main thread (unlikely but
==24011== possible), you can try to increase the size of the
==24011== main thread stack using the --main-stacksize= flag.
==24011== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 1: sleep 0.5 ==24023== Invalid read of size 4
==24023== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24023== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24023== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24023== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24023== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24023== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24023== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24023== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24023== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24023== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24023== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24023== by 0x8062D5B: main (nginx.c:385)
==24023== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24023==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 1: sleep 0.5 ==24023==
==24023== Process terminating with default action of signal 11 (SIGSEGV)
==24023== Access not within mapped region at address 0x0
==24023== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24023== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24023== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24023== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24023== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24023== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24023== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24023== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24023== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24023== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24023== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24023== by 0x8062D5B: main (nginx.c:385)
==24023== If you believe this happened as a result of a stack
==24023== overflow in your program's main thread (unlikely but
==24023== possible), you can try to increase the size of the
==24023== main thread stack using the --main-stacksize= flag.
==24023== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 1: sleep 0.5 - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 1: sleep 0.5 - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-9]\d*|5)$)'
023-preread/sleep.t TEST 1: sleep 0.5 ==24044== Invalid read of size 4
==24044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24044== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24044== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24044== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24044== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24044== by 0x8062D5B: main (nginx.c:385)
==24044== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24044==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 1: sleep 0.5 ==24044==
==24044== Process terminating with default action of signal 11 (SIGSEGV)
==24044== Access not within mapped region at address 0x0
==24044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24044== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24044== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24044== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24044== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24044== by 0x8062D5B: main (nginx.c:385)
==24044== If you believe this happened as a result of a stack
==24044== overflow in your program's main thread (unlikely but
==24044== possible), you can try to increase the size of the
==24044== main thread stack using the --main-stacksize= flag.
==24044== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 1: sleep 0.5 - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 1: sleep 0.5 - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-9]\d*|5)$)'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times ==24056== Invalid read of size 4
==24056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24056== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24056== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24056== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24056== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24056== by 0x8062D5B: main (nginx.c:385)
==24056== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24056==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times ==24056==
==24056== Process terminating with default action of signal 11 (SIGSEGV)
==24056== Access not within mapped region at address 0x0
==24056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24056== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24056== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24056== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24056== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24056== by 0x8062D5B: main (nginx.c:385)
==24056== If you believe this happened as a result of a stack
==24056== overflow in your program's main thread (unlikely but
==24056== possible), you can try to increase the size of the
==24056== main thread stack using the --main-stacksize= flag.
==24056== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:8[5-9]\d*|9[0-9]\d*|9)$)'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times ==24077== Invalid read of size 4
==24077== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24077== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24077== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24077== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24077== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24077== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24077== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24077== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24077== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24077== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24077== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24077== by 0x8062D5B: main (nginx.c:385)
==24077== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24077==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times ==24077==
==24077== Process terminating with default action of signal 11 (SIGSEGV)
==24077== Access not within mapped region at address 0x0
==24077== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24077== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24077== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24077== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24077== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24077== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24077== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24077== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24077== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24077== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24077== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24077== by 0x8062D5B: main (nginx.c:385)
==24077== If you believe this happened as a result of a stack
==24077== overflow in your program's main thread (unlikely but
==24077== possible), you can try to increase the size of the
==24077== main thread stack using the --main-stacksize= flag.
==24077== The main thread stack size used in this run was 8388608.

023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:8[5-9]\d*|9[0-9]\d*|9)$)'
023-preread/socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24086== Invalid read of size 4
==24086== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24086== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24086== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24086== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24086== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24086== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24086== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24086== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24086== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24086== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24086== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24086== by 0x8062D5B: main (nginx.c:385)
==24086== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24086==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24086==
==24086== Process terminating with default action of signal 11 (SIGSEGV)
==24086== Access not within mapped region at address 0x0
==24086== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24086== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24086== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24086== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24086== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24086== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24086== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24086== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24086== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24086== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24086== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24086== by 0x8062D5B: main (nginx.c:385)
==24086== If you believe this happened as a result of a stack
==24086== overflow in your program's main thread (unlikely but
==24086== possible), you can try to increase the size of the
==24086== main thread stack using the --main-stacksize= flag.
==24086== The main thread stack size used in this run was 8388608.

023-preread/socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 1: sanity - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"
-lua tcp socket get keepalive peer: using connection
'
023-preread/socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24087== Invalid read of size 4
==24087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24087== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24087== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24087== by 0x8062D5B: main (nginx.c:385)
==24087== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24087==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24087==
==24087== Process terminating with default action of signal 11 (SIGSEGV)
==24087== Access not within mapped region at address 0x0
==24087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24087== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24087== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24087== by 0x8062D5B: main (nginx.c:385)
==24087== If you believe this happened as a result of a stack
==24087== overflow in your program's main thread (unlikely but
==24087== possible), you can try to increase the size of the
==24087== main thread stack using the --main-stacksize= flag.
==24087== The main thread stack size used in this run was 8388608.

023-preread/socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 1: sanity - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-lua tcp socket get keepalive peer: using connection
-lua tcp socket get keepalive peer: using connection
'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections ==24100== Invalid read of size 4
==24100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24100== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24100== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24100== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24100== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24100== by 0x8062D5B: main (nginx.c:385)
==24100== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24100==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections ==24100==
==24100== Process terminating with default action of signal 11 (SIGSEGV)
==24100== Access not within mapped region at address 0x0
==24100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24100== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24100== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24100== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24100== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24100== by 0x8062D5B: main (nginx.c:385)
==24100== If you believe this happened as a result of a stack
==24100== overflow in your program's main thread (unlikely but
==24100== possible), you can try to increase the size of the
==24100== main thread stack using the --main-stacksize= flag.
==24100== The main thread stack size used in this run was 8388608.

023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections ==24121== Invalid read of size 4
==24121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24121== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24121== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24121== by 0x8062D5B: main (nginx.c:385)
==24121== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24121==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections ==24121==
==24121== Process terminating with default action of signal 11 (SIGSEGV)
==24121== Access not within mapped region at address 0x0
==24121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24121== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24121== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24121== by 0x8062D5B: main (nginx.c:385)
==24121== If you believe this happened as a result of a stack
==24121== overflow in your program's main thread (unlikely but
==24121== possible), you can try to increase the size of the
==24121== main thread stack using the --main-stacksize= flag.
==24121== The main thread stack size used in this run was 8388608.

023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==24131== Invalid read of size 4
==24131== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24131== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24131== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24131== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24131== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24131== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24131== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24131== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24131== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24131== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24131== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24131== by 0x8062D5B: main (nginx.c:385)
==24131== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24131==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==24131==
==24131== Process terminating with default action of signal 11 (SIGSEGV)
==24131== Access not within mapped region at address 0x0
==24131== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24131== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24131== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24131== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24131== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24131== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24131== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24131== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24131== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24131== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24131== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24131== by 0x8062D5B: main (nginx.c:385)
==24131== If you believe this happened as a result of a stack
==24131== overflow in your program's main thread (unlikely but
==24131== possible), you can try to increase the size of the
==24131== main thread stack using the --main-stacksize= flag.
==24131== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:51:37 [alert] 24130\#0: worker process 24131 exited on signal 11" (req 0) 2020/10/27 03:51:37 [debug] 24130\#0: shmtx forced unlock
2020/10/27 03:51:37 [debug] 24130\#0: wake up, sigio 0
2020/10/27 03:51:37 [debug] 24130\#0: reap children
2020/10/27 03:51:37 [debug] 24130\#0: child: 0 24131 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:51:37 [debug] 24130\#0: channel 3:9
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==24132== Invalid read of size 4
==24132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24132== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24132== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24132== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24132== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24132== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24132== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24132== by 0x8062D5B: main (nginx.c:385)
==24132== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24132==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==24132==
==24132== Process terminating with default action of signal 11 (SIGSEGV)
==24132== Access not within mapped region at address 0x0
==24132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24132== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24132== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24132== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24132== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24132== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24132== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24132== by 0x8062D5B: main (nginx.c:385)
==24132== If you believe this happened as a result of a stack
==24132== overflow in your program's main thread (unlikely but
==24132== possible), you can try to increase the size of the
==24132== main thread stack using the --main-stacksize= flag.
==24132== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:51:37 [alert] 24130\#0: worker process 24132 exited on signal 11" (req 1) 2020/10/27 03:51:37 [debug] 24130\#0: shmtx forced unlock
2020/10/27 03:51:37 [debug] 24130\#0: wake up, sigio 0
2020/10/27 03:51:37 [debug] 24130\#0: reap children
2020/10/27 03:51:37 [debug] 24130\#0: child: 0 24132 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:51:37 [debug] 24130\#0: channel 3:9
2020/10/27 03:51:37 [notice] 24130\#0: start worker process 24133
'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==24140== Invalid read of size 4
==24140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24140== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24140== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24140== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24140== by 0x8062D5B: main (nginx.c:385)
==24140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==24140==
==24140== Process terminating with default action of signal 11 (SIGSEGV)
==24140== Access not within mapped region at address 0x0
==24140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24140== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24140== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24140== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24140== by 0x8062D5B: main (nginx.c:385)
==24140== If you believe this happened as a result of a stack
==24140== overflow in your program's main thread (unlikely but
==24140== possible), you can try to increase the size of the
==24140== main thread stack using the --main-stacksize= flag.
==24140== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==24161== Invalid read of size 4
==24161== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24161== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24161== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24161== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24161== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24161== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24161== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24161== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24161== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24161== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24161== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24161== by 0x8062D5B: main (nginx.c:385)
==24161== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24161==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==24161==
==24161== Process terminating with default action of signal 11 (SIGSEGV)
==24161== Access not within mapped region at address 0x0
==24161== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24161== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24161== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24161== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24161== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24161== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24161== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24161== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24161== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24161== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24161== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24161== by 0x8062D5B: main (nginx.c:385)
==24161== If you believe this happened as a result of a stack
==24161== overflow in your program's main thread (unlikely but
==24161== possible), you can try to increase the size of the
==24161== main thread stack using the --main-stacksize= flag.
==24161== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==24169== Invalid read of size 4
==24169== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24169== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24169== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24169== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24169== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24169== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24169== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24169== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24169== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24169== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24169== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24169== by 0x8062D5B: main (nginx.c:385)
==24169== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24169==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==24169==
==24169== Process terminating with default action of signal 11 (SIGSEGV)
==24169== Access not within mapped region at address 0x0
==24169== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24169== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24169== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24169== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24169== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24169== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24169== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24169== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24169== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24169== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24169== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24169== by 0x8062D5B: main (nginx.c:385)
==24169== If you believe this happened as a result of a stack
==24169== overflow in your program's main thread (unlikely but
==24169== possible), you can try to increase the size of the
==24169== main thread stack using the --main-stacksize= flag.
==24169== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==24190== Invalid read of size 4
==24190== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24190== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24190== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24190== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24190== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24190== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24190== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24190== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24190== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24190== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24190== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24190== by 0x8062D5B: main (nginx.c:385)
==24190== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24190==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==24190==
==24190== Process terminating with default action of signal 11 (SIGSEGV)
==24190== Access not within mapped region at address 0x0
==24190== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24190== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24190== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24190== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24190== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24190== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24190== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24190== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24190== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24190== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24190== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24190== by 0x8062D5B: main (nginx.c:385)
==24190== If you believe this happened as a result of a stack
==24190== overflow in your program's main thread (unlikely but
==24190== possible), you can try to increase the size of the
==24190== main thread stack using the --main-stacksize= flag.
==24190== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==24198== Invalid read of size 4
==24198== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24198== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24198== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24198== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24198== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24198== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24198== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24198== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24198== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24198== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24198== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24198== by 0x8062D5B: main (nginx.c:385)
==24198== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24198==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==24198==
==24198== Process terminating with default action of signal 11 (SIGSEGV)
==24198== Access not within mapped region at address 0x0
==24198== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24198== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24198== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24198== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24198== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24198== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24198== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24198== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24198== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24198== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24198== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24198== by 0x8062D5B: main (nginx.c:385)
==24198== If you believe this happened as a result of a stack
==24198== overflow in your program's main thread (unlikely but
==24198== possible), you can try to increase the size of the
==24198== main thread stack using the --main-stacksize= flag.
==24198== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==24219== Invalid read of size 4
==24219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24219== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24219== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24219== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24219== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24219== by 0x8062D5B: main (nginx.c:385)
==24219== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24219==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==24219==
==24219== Process terminating with default action of signal 11 (SIGSEGV)
==24219== Access not within mapped region at address 0x0
==24219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24219== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24219== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24219== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24219== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24219== by 0x8062D5B: main (nginx.c:385)
==24219== If you believe this happened as a result of a stack
==24219== overflow in your program's main thread (unlikely but
==24219== possible), you can try to increase the size of the
==24219== main thread stack using the --main-stacksize= flag.
==24219== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==24227== Invalid read of size 4
==24227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24227== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24227== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24227== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24227== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24227== by 0x8062D5B: main (nginx.c:385)
==24227== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24227==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==24227==
==24227== Process terminating with default action of signal 11 (SIGSEGV)
==24227== Access not within mapped region at address 0x0
==24227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24227== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24227== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24227== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24227== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24227== by 0x8062D5B: main (nginx.c:385)
==24227== If you believe this happened as a result of a stack
==24227== overflow in your program's main thread (unlikely but
==24227== possible), you can try to increase the size of the
==24227== main thread stack using the --main-stacksize= flag.
==24227== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==24248== Invalid read of size 4
==24248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24248== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24248== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24248== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24248== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24248== by 0x8062D5B: main (nginx.c:385)
==24248== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24248==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==24248==
==24248== Process terminating with default action of signal 11 (SIGSEGV)
==24248== Access not within mapped region at address 0x0
==24248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24248== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24248== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24248== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24248== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24248== by 0x8062D5B: main (nginx.c:385)
==24248== If you believe this happened as a result of a stack
==24248== overflow in your program's main thread (unlikely but
==24248== possible), you can try to increase the size of the
==24248== main thread stack using the --main-stacksize= flag.
==24248== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==24256== Invalid read of size 4
==24256== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24256== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24256== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24256== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24256== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24256== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24256== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24256== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24256== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24256== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24256== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24256== by 0x8062D5B: main (nginx.c:385)
==24256== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24256==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==24256==
==24256== Process terminating with default action of signal 11 (SIGSEGV)
==24256== Access not within mapped region at address 0x0
==24256== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24256== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24256== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24256== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24256== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24256== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24256== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24256== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24256== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24256== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24256== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24256== by 0x8062D5B: main (nginx.c:385)
==24256== If you believe this happened as a result of a stack
==24256== overflow in your program's main thread (unlikely but
==24256== possible), you can try to increase the size of the
==24256== main thread stack using the --main-stacksize= flag.
==24256== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==24277== Invalid read of size 4
==24277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24277== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24277== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24277== by 0x8062D5B: main (nginx.c:385)
==24277== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24277==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==24277==
==24277== Process terminating with default action of signal 11 (SIGSEGV)
==24277== Access not within mapped region at address 0x0
==24277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24277== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24277== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24277== by 0x8062D5B: main (nginx.c:385)
==24277== If you believe this happened as a result of a stack
==24277== overflow in your program's main thread (unlikely but
==24277== possible), you can try to increase the size of the
==24277== main thread stack using the --main-stacksize= flag.
==24277== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==24285== Invalid read of size 4
==24285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24285== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24285== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24285== by 0x8062D5B: main (nginx.c:385)
==24285== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24285==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==24285==
==24285== Process terminating with default action of signal 11 (SIGSEGV)
==24285== Access not within mapped region at address 0x0
==24285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24285== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24285== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24285== by 0x8062D5B: main (nginx.c:385)
==24285== If you believe this happened as a result of a stack
==24285== overflow in your program's main thread (unlikely but
==24285== possible), you can try to increase the size of the
==24285== main thread stack using the --main-stacksize= flag.
==24285== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==24306== Invalid read of size 4
==24306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24306== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24306== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24306== by 0x8062D5B: main (nginx.c:385)
==24306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==24306==
==24306== Process terminating with default action of signal 11 (SIGSEGV)
==24306== Access not within mapped region at address 0x0
==24306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24306== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24306== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24306== by 0x8062D5B: main (nginx.c:385)
==24306== If you believe this happened as a result of a stack
==24306== overflow in your program's main thread (unlikely but
==24306== possible), you can try to increase the size of the
==24306== main thread stack using the --main-stacksize= flag.
==24306== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==24314== Invalid read of size 4
==24314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24314== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24314== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24314== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24314== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24314== by 0x8062D5B: main (nginx.c:385)
==24314== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24314==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==24314==
==24314== Process terminating with default action of signal 11 (SIGSEGV)
==24314== Access not within mapped region at address 0x0
==24314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24314== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24314== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24314== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24314== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24314== by 0x8062D5B: main (nginx.c:385)
==24314== If you believe this happened as a result of a stack
==24314== overflow in your program's main thread (unlikely but
==24314== possible), you can try to increase the size of the
==24314== main thread stack using the --main-stacksize= flag.
==24314== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:53:30 [alert] 24130\#0: worker process 24314 exited on signal 11" (req 0) 2020/10/27 03:53:30 [debug] 24130\#0: shmtx forced unlock
2020/10/27 03:53:30 [debug] 24130\#0: wake up, sigio 0
2020/10/27 03:53:30 [debug] 24130\#0: reap children
2020/10/27 03:53:30 [debug] 24130\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:53:30 [debug] 24130\#0: child: 1 24314 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:53:30 [debug] 24130\#0: channel 3:4
2020/10/27 03:53:30 [notice] 24130\#0: start worker process 24335
2020/10/27 03:53:30 [debug] 24130\#0: sigsuspend
2020/10/27 03:53:30 [debug] 24335\#0: malloc: 04B6F8D0:12
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==24335== Invalid read of size 4
==24335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24335== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24335== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24335== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24335== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24335== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24335== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24335== by 0x8062D5B: main (nginx.c:385)
==24335== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24335==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==24335==
==24335== Process terminating with default action of signal 11 (SIGSEGV)
==24335== Access not within mapped region at address 0x0
==24335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24335== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24335== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24335== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24335== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24335== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24335== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24335== by 0x8062D5B: main (nginx.c:385)
==24335== If you believe this happened as a result of a stack
==24335== overflow in your program's main thread (unlikely but
==24335== possible), you can try to increase the size of the
==24335== main thread stack using the --main-stacksize= flag.
==24335== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:53:32 [alert] 24130\#0: worker process 24335 exited on signal 11" (req 1) 2020/10/27 03:53:32 [debug] 24130\#0: shmtx forced unlock
2020/10/27 03:53:32 [debug] 24130\#0: wake up, sigio 0
2020/10/27 03:53:32 [debug] 24130\#0: reap children
2020/10/27 03:53:32 [debug] 24130\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:53:32 [debug] 24130\#0: child: 1 24335 e:0 t:1 d:0 r:1 j:0
'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==24343== Invalid read of size 4
==24343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24343== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24343== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24343== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24343== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24343== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24343== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24343== by 0x8062D5B: main (nginx.c:385)
==24343== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24343==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==24343==
==24343== Process terminating with default action of signal 11 (SIGSEGV)
==24343== Access not within mapped region at address 0x0
==24343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24343== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24343== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24343== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24343== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24343== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24343== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24343== by 0x8062D5B: main (nginx.c:385)
==24343== If you believe this happened as a result of a stack
==24343== overflow in your program's main thread (unlikely but
==24343== possible), you can try to increase the size of the
==24343== main thread stack using the --main-stacksize= flag.
==24343== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==24364== Invalid read of size 4
==24364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24364== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24364== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24364== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24364== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24364== by 0x8062D5B: main (nginx.c:385)
==24364== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24364==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==24364==
==24364== Process terminating with default action of signal 11 (SIGSEGV)
==24364== Access not within mapped region at address 0x0
==24364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24364== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24364== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24364== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24364== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24364== by 0x8062D5B: main (nginx.c:385)
==24364== If you believe this happened as a result of a stack
==24364== overflow in your program's main thread (unlikely but
==24364== possible), you can try to increase the size of the
==24364== main thread stack using the --main-stacksize= flag.
==24364== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==24372== Invalid read of size 4
==24372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24372== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24372== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24372== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24372== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24372== by 0x8062D5B: main (nginx.c:385)
==24372== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24372==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==24372==
==24372== Process terminating with default action of signal 11 (SIGSEGV)
==24372== Access not within mapped region at address 0x0
==24372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24372== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24372== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24372== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24372== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24372== by 0x8062D5B: main (nginx.c:385)
==24372== If you believe this happened as a result of a stack
==24372== overflow in your program's main thread (unlikely but
==24372== possible), you can try to increase the size of the
==24372== main thread stack using the --main-stacksize= flag.
==24372== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==24393== Invalid read of size 4
==24393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24393== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24393== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24393== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24393== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24393== by 0x8062D5B: main (nginx.c:385)
==24393== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24393==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==24393==
==24393== Process terminating with default action of signal 11 (SIGSEGV)
==24393== Access not within mapped region at address 0x0
==24393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24393== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24393== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24393== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24393== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24393== by 0x8062D5B: main (nginx.c:385)
==24393== If you believe this happened as a result of a stack
==24393== overflow in your program's main thread (unlikely but
==24393== possible), you can try to increase the size of the
==24393== main thread stack using the --main-stacksize= flag.
==24393== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value ==24401== Invalid read of size 4
==24401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24401== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24401== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24401== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24401== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24401== by 0x8062D5B: main (nginx.c:385)
==24401== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24401==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value ==24401==
==24401== Process terminating with default action of signal 11 (SIGSEGV)
==24401== Access not within mapped region at address 0x0
==24401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24401== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24401== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24401== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24401== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24401== by 0x8062D5B: main (nginx.c:385)
==24401== If you believe this happened as a result of a stack
==24401== overflow in your program's main thread (unlikely but
==24401== possible), you can try to increase the size of the
==24401== main thread stack using the --main-stacksize= flag.
==24401== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value ==24422== Invalid read of size 4
==24422== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24422== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24422== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24422== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24422== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24422== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24422== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24422== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24422== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24422== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24422== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24422== by 0x8062D5B: main (nginx.c:385)
==24422== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24422==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value ==24422==
==24422== Process terminating with default action of signal 11 (SIGSEGV)
==24422== Access not within mapped region at address 0x0
==24422== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24422== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24422== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24422== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24422== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24422== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24422== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24422== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24422== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24422== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24422== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24422== by 0x8062D5B: main (nginx.c:385)
==24422== If you believe this happened as a result of a stack
==24422== overflow in your program's main thread (unlikely but
==24422== possible), you can try to increase the size of the
==24422== main thread stack using the --main-stacksize= flag.
==24422== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==24430== Invalid read of size 4
==24430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24430== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24430== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24430== by 0x8062D5B: main (nginx.c:385)
==24430== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24430==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==24430==
==24430== Process terminating with default action of signal 11 (SIGSEGV)
==24430== Access not within mapped region at address 0x0
==24430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24430== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24430== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24430== by 0x8062D5B: main (nginx.c:385)
==24430== If you believe this happened as a result of a stack
==24430== overflow in your program's main thread (unlikely but
==24430== possible), you can try to increase the size of the
==24430== main thread stack using the --main-stacksize= flag.
==24430== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:54:36 [alert] 24130\#0: worker process 24430 exited on signal 11" (req 0) 2020/10/27 03:54:36 [debug] 24130\#0: shmtx forced unlock
2020/10/27 03:54:36 [debug] 24130\#0: wake up, sigio 0
2020/10/27 03:54:36 [debug] 24130\#0: reap children
2020/10/27 03:54:36 [debug] 24130\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:54:36 [debug] 24130\#0: child: 1 24430 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:54:36 [debug] 24130\#0: channel 3:4
2020/10/27 03:54:36 [notice] 24130\#0: start worker process 24451
2020/10/27 03:54:36 [debug] 24130\#0: sigsuspend
2020/10/27 03:54:36 [debug] 24451\#0: malloc: 053C6DF8:12
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==24451== Invalid read of size 4
==24451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24451== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24451== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24451== by 0x8062D5B: main (nginx.c:385)
==24451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==24451==
==24451== Process terminating with default action of signal 11 (SIGSEGV)
==24451== Access not within mapped region at address 0x0
==24451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24451== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24451== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24451== by 0x8062D5B: main (nginx.c:385)
==24451== If you believe this happened as a result of a stack
==24451== overflow in your program's main thread (unlikely but
==24451== possible), you can try to increase the size of the
==24451== main thread stack using the --main-stacksize= flag.
==24451== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:54:38 [alert] 24130\#0: worker process 24451 exited on signal 11" (req 1) 2020/10/27 03:54:38 [debug] 24130\#0: shmtx forced unlock
2020/10/27 03:54:38 [debug] 24130\#0: wake up, sigio 0
2020/10/27 03:54:38 [debug] 24130\#0: reap children
2020/10/27 03:54:38 [debug] 24130\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:54:38 [debug] 24130\#0: child: 1 24451 e:0 t:1 d:0 r:1 j:0
'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==24459== Invalid read of size 4
==24459== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24459== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24459== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24459== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24459== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24459== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24459== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24459== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24459== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24459== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24459== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24459== by 0x8062D5B: main (nginx.c:385)
==24459== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24459==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==24459==
==24459== Process terminating with default action of signal 11 (SIGSEGV)
==24459== Access not within mapped region at address 0x0
==24459== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24459== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24459== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24459== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24459== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24459== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24459== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24459== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24459== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24459== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24459== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24459== by 0x8062D5B: main (nginx.c:385)
==24459== If you believe this happened as a result of a stack
==24459== overflow in your program's main thread (unlikely but
==24459== possible), you can try to increase the size of the
==24459== main thread stack using the --main-stacksize= flag.
==24459== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==24480== Invalid read of size 4
==24480== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24480== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24480== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24480== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24480== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24480== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24480== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24480== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24480== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24480== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24480== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24480== by 0x8062D5B: main (nginx.c:385)
==24480== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24480==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==24480==
==24480== Process terminating with default action of signal 11 (SIGSEGV)
==24480== Access not within mapped region at address 0x0
==24480== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24480== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24480== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24480== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24480== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24480== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24480== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24480== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24480== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24480== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24480== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24480== by 0x8062D5B: main (nginx.c:385)
==24480== If you believe this happened as a result of a stack
==24480== overflow in your program's main thread (unlikely but
==24480== possible), you can try to increase the size of the
==24480== main thread stack using the --main-stacksize= flag.
==24480== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==24488== Invalid read of size 4
==24488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24488== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24488== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24488== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24488== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24488== by 0x8062D5B: main (nginx.c:385)
==24488== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24488==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==24488==
==24488== Process terminating with default action of signal 11 (SIGSEGV)
==24488== Access not within mapped region at address 0x0
==24488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24488== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24488== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24488== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24488== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24488== by 0x8062D5B: main (nginx.c:385)
==24488== If you believe this happened as a result of a stack
==24488== overflow in your program's main thread (unlikely but
==24488== possible), you can try to increase the size of the
==24488== main thread stack using the --main-stacksize= flag.
==24488== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==24509== Invalid read of size 4
==24509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24509== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24509== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24509== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24509== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24509== by 0x8062D5B: main (nginx.c:385)
==24509== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24509==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==24509==
==24509== Process terminating with default action of signal 11 (SIGSEGV)
==24509== Access not within mapped region at address 0x0
==24509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24509== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24509== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24509== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24509== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24509== by 0x8062D5B: main (nginx.c:385)
==24509== If you believe this happened as a result of a stack
==24509== overflow in your program's main thread (unlikely but
==24509== possible), you can try to increase the size of the
==24509== main thread stack using the --main-stacksize= flag.
==24509== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==24517== Invalid read of size 4
==24517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24517== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24517== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24517== by 0x8062D5B: main (nginx.c:385)
==24517== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24517==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==24517==
==24517== Process terminating with default action of signal 11 (SIGSEGV)
==24517== Access not within mapped region at address 0x0
==24517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24517== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24517== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24517== by 0x8062D5B: main (nginx.c:385)
==24517== If you believe this happened as a result of a stack
==24517== overflow in your program's main thread (unlikely but
==24517== possible), you can try to increase the size of the
==24517== main thread stack using the --main-stacksize= flag.
==24517== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==24538== Invalid read of size 4
==24538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24538== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24538== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24538== by 0x8062D5B: main (nginx.c:385)
==24538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==24538==
==24538== Process terminating with default action of signal 11 (SIGSEGV)
==24538== Access not within mapped region at address 0x0
==24538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24538== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24538== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24538== by 0x8062D5B: main (nginx.c:385)
==24538== If you believe this happened as a result of a stack
==24538== overflow in your program's main thread (unlikely but
==24538== possible), you can try to increase the size of the
==24538== main thread stack using the --main-stacksize= flag.
==24538== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==24547== Invalid read of size 4
==24547== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24547== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24547== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24547== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24547== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24547== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24547== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24547== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24547== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24547== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24547== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24547== by 0x8062D5B: main (nginx.c:385)
==24547== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24547==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==24547==
==24547== Process terminating with default action of signal 11 (SIGSEGV)
==24547== Access not within mapped region at address 0x0
==24547== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24547== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24547== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24547== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24547== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24547== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24547== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24547== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24547== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24547== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24547== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24547== by 0x8062D5B: main (nginx.c:385)
==24547== If you believe this happened as a result of a stack
==24547== overflow in your program's main thread (unlikely but
==24547== possible), you can try to increase the size of the
==24547== main thread stack using the --main-stacksize= flag.
==24547== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 8: resolver error (timeout) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==24548== Invalid read of size 4
==24548== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24548== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24548== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24548== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24548== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24548== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24548== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24548== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24548== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24548== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24548== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24548== by 0x8062D5B: main (nginx.c:385)
==24548== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24548==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==24548==
==24548== Process terminating with default action of signal 11 (SIGSEGV)
==24548== Access not within mapped region at address 0x0
==24548== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24548== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24548== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24548== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24548== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24548== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24548== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24548== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24548== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24548== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24548== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24548== by 0x8062D5B: main (nginx.c:385)
==24548== If you believe this happened as a result of a stack
==24548== overflow in your program's main thread (unlikely but
==24548== possible), you can try to increase the size of the
==24548== main thread stack using the --main-stacksize= flag.
==24548== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 8: resolver error (timeout) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) ==24560== Invalid read of size 4
==24560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24560== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24560== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24560== by 0x8062D5B: main (nginx.c:385)
==24560== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24560==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 7: resolver error (host not found) ==24560==
==24560== Process terminating with default action of signal 11 (SIGSEGV)
==24560== Access not within mapped region at address 0x0
==24560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24560== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24560== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24560== by 0x8062D5B: main (nginx.c:385)
==24560== If you believe this happened as a result of a stack
==24560== overflow in your program's main thread (unlikely but
==24560== possible), you can try to increase the size of the
==24560== main thread stack using the --main-stacksize= flag.
==24560== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 7: resolver error (host not found) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) ==24581== Invalid read of size 4
==24581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24581== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24581== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24581== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24581== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24581== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24581== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24581== by 0x8062D5B: main (nginx.c:385)
==24581== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24581==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 7: resolver error (host not found) ==24581==
==24581== Process terminating with default action of signal 11 (SIGSEGV)
==24581== Access not within mapped region at address 0x0
==24581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24581== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24581== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24581== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24581== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24581== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24581== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24581== by 0x8062D5B: main (nginx.c:385)
==24581== If you believe this happened as a result of a stack
==24581== overflow in your program's main thread (unlikely but
==24581== possible), you can try to increase the size of the
==24581== main thread stack using the --main-stacksize= flag.
==24581== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 7: resolver error (host not found) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) ==24593== Invalid read of size 4
==24593== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24593== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24593== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24593== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24593== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24593== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24593== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24593== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24593== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24593== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24593== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24593== by 0x8062D5B: main (nginx.c:385)
==24593== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24593==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 4: connection refused (tcp) ==24593==
==24593== Process terminating with default action of signal 11 (SIGSEGV)
==24593== Access not within mapped region at address 0x0
==24593== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24593== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24593== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24593== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24593== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24593== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24593== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24593== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24593== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24593== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24593== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24593== by 0x8062D5B: main (nginx.c:385)
==24593== If you believe this happened as a result of a stack
==24593== overflow in your program's main thread (unlikely but
==24593== possible), you can try to increase the size of the
==24593== main thread stack using the --main-stacksize= flag.
==24593== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 4: connection refused (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) ==24614== Invalid read of size 4
==24614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24614== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24614== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24614== by 0x8062D5B: main (nginx.c:385)
==24614== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24614==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 4: connection refused (tcp) ==24614==
==24614== Process terminating with default action of signal 11 (SIGSEGV)
==24614== Access not within mapped region at address 0x0
==24614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24614== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24614== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24614== by 0x8062D5B: main (nginx.c:385)
==24614== If you believe this happened as a result of a stack
==24614== overflow in your program's main thread (unlikely but
==24614== possible), you can try to increase the size of the
==24614== main thread stack using the --main-stacksize= flag.
==24614== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 4: connection refused (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 3: with resolver ==24626== Invalid read of size 4
==24626== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24626== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24626== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24626== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24626== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24626== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24626== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24626== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24626== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24626== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24626== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24626== by 0x8062D5B: main (nginx.c:385)
==24626== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24626==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 3: with resolver ==24626==
==24626== Process terminating with default action of signal 11 (SIGSEGV)
==24626== Access not within mapped region at address 0x0
==24626== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24626== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24626== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24626== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24626== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24626== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24626== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24626== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24626== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24626== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24626== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24626== by 0x8062D5B: main (nginx.c:385)
==24626== If you believe this happened as a result of a stack
==24626== overflow in your program's main thread (unlikely but
==24626== possible), you can try to increase the size of the
==24626== main thread stack using the --main-stacksize= flag.
==24626== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 3: with resolver - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 3: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
023-preread/tcp-socket.t TEST 3: with resolver ==24647== Invalid read of size 4
==24647== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24647== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24647== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24647== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24647== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24647== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24647== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24647== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24647== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24647== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24647== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24647== by 0x8062D5B: main (nginx.c:385)
==24647== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24647==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 3: with resolver ==24647==
==24647== Process terminating with default action of signal 11 (SIGSEGV)
==24647== Access not within mapped region at address 0x0
==24647== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24647== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24647== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24647== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24647== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24647== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24647== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24647== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24647== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24647== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24647== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24647== by 0x8062D5B: main (nginx.c:385)
==24647== If you believe this happened as a result of a stack
==24647== overflow in your program's main thread (unlikely but
==24647== possible), you can try to increase the size of the
==24647== main thread stack using the --main-stacksize= flag.
==24647== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 3: with resolver - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 3: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
023-preread/tcp-socket.t TEST 6: not closed manually ==24659== Invalid read of size 4
==24659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24659== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24659== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24659== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24659== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24659== by 0x8062D5B: main (nginx.c:385)
==24659== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24659==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 6: not closed manually ==24659==
==24659== Process terminating with default action of signal 11 (SIGSEGV)
==24659== Access not within mapped region at address 0x0
==24659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24659== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24659== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24659== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24659== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24659== by 0x8062D5B: main (nginx.c:385)
==24659== If you believe this happened as a result of a stack
==24659== overflow in your program's main thread (unlikely but
==24659== possible), you can try to increase the size of the
==24659== main thread stack using the --main-stacksize= flag.
==24659== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 6: not closed manually - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 6: not closed manually - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
023-preread/tcp-socket.t TEST 6: not closed manually ==24680== Invalid read of size 4
==24680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24680== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24680== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24680== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24680== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24680== by 0x8062D5B: main (nginx.c:385)
==24680== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24680==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 6: not closed manually ==24680==
==24680== Process terminating with default action of signal 11 (SIGSEGV)
==24680== Access not within mapped region at address 0x0
==24680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24680== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24680== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24680== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24680== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24680== by 0x8062D5B: main (nginx.c:385)
==24680== If you believe this happened as a result of a stack
==24680== overflow in your program's main thread (unlikely but
==24680== possible), you can try to increase the size of the
==24680== main thread stack using the --main-stacksize= flag.
==24680== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 6: not closed manually - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 6: not closed manually - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
023-preread/tcp-socket.t TEST 2: no resolver defined ==24692== Invalid read of size 4
==24692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24692== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24692== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24692== by 0x8062D5B: main (nginx.c:385)
==24692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 2: no resolver defined ==24692==
==24692== Process terminating with default action of signal 11 (SIGSEGV)
==24692== Access not within mapped region at address 0x0
==24692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24692== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24692== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24692== by 0x8062D5B: main (nginx.c:385)
==24692== If you believe this happened as a result of a stack
==24692== overflow in your program's main thread (unlikely but
==24692== possible), you can try to increase the size of the
==24692== main thread stack using the --main-stacksize= flag.
==24692== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 2: no resolver defined - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 2: no resolver defined - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
023-preread/tcp-socket.t TEST 2: no resolver defined ==24713== Invalid read of size 4
==24713== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24713== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24713== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24713== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24713== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24713== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24713== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24713== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24713== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24713== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24713== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24713== by 0x8062D5B: main (nginx.c:385)
==24713== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24713==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 2: no resolver defined ==24713==
==24713== Process terminating with default action of signal 11 (SIGSEGV)
==24713== Access not within mapped region at address 0x0
==24713== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24713== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24713== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24713== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24713== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24713== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24713== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24713== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24713== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24713== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24713== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24713== by 0x8062D5B: main (nginx.c:385)
==24713== If you believe this happened as a result of a stack
==24713== overflow in your program's main thread (unlikely but
==24713== possible), you can try to increase the size of the
==24713== main thread stack using the --main-stacksize= flag.
==24713== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 2: no resolver defined - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 2: no resolver defined - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
023-preread/tcp-socket.t TEST 1: sanity ==24725== Invalid read of size 4
==24725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24725== by 0x8062D5B: main (nginx.c:385)
==24725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 1: sanity ==24725==
==24725== Process terminating with default action of signal 11 (SIGSEGV)
==24725== Access not within mapped region at address 0x0
==24725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24725== by 0x8062D5B: main (nginx.c:385)
==24725== If you believe this happened as a result of a stack
==24725== overflow in your program's main thread (unlikely but
==24725== possible), you can try to increase the size of the
==24725== main thread stack using the --main-stacksize= flag.
==24725== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-received: testing
-received: preread
-failed to receive a line: connection reset by peer []
-close: 1 nil
'
023-preread/tcp-socket.t TEST 1: sanity - pattern "recv() failed (104: Connection reset by peer" should match a line in error.log (req 0)
023-preread/tcp-socket.t TEST 1: sanity ==24746== Invalid read of size 4
==24746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24746== by 0x8062D5B: main (nginx.c:385)
==24746== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24746==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 1: sanity ==24746==
==24746== Process terminating with default action of signal 11 (SIGSEGV)
==24746== Access not within mapped region at address 0x0
==24746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24746== by 0x8062D5B: main (nginx.c:385)
==24746== If you believe this happened as a result of a stack
==24746== overflow in your program's main thread (unlikely but
==24746== possible), you can try to increase the size of the
==24746== main thread stack using the --main-stacksize= flag.
==24746== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-received: testing
-received: preread
-failed to receive a line: connection reset by peer []
-close: 1 nil
'
023-preread/tcp-socket.t TEST 1: sanity - pattern "recv() failed (104: Connection reset by peer" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) ==24758== Invalid read of size 4
==24758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24758== by 0x8062D5B: main (nginx.c:385)
==24758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) ==24758==
==24758== Process terminating with default action of signal 11 (SIGSEGV)
==24758== Access not within mapped region at address 0x0
==24758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24758== by 0x8062D5B: main (nginx.c:385)
==24758== If you believe this happened as a result of a stack
==24758== overflow in your program's main thread (unlikely but
==24758== possible), you can try to increase the size of the
==24758== main thread stack using the --main-stacksize= flag.
==24758== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) ==24779== Invalid read of size 4
==24779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24779== by 0x8062D5B: main (nginx.c:385)
==24779== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24779==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) ==24779==
==24779== Process terminating with default action of signal 11 (SIGSEGV)
==24779== Access not within mapped region at address 0x0
==24779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24779== by 0x8062D5B: main (nginx.c:385)
==24779== If you believe this happened as a result of a stack
==24779== overflow in your program's main thread (unlikely but
==24779== possible), you can try to increase the size of the
==24779== main thread stack using the --main-stacksize= flag.
==24779== The main thread stack size used in this run was 8388608.

023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - Can't connect to 127.0.0.1:1984: Connection refused ==24788== Invalid read of size 4
==24788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24788== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24788== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24788== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24788== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24788== by 0x8062D5B: main (nginx.c:385)
==24788== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24788==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - Can't connect to 127.0.0.1:1984: Connection refused ==24788==
==24788== Process terminating with default action of signal 11 (SIGSEGV)
==24788== Access not within mapped region at address 0x0
==24788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24788== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24788== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24788== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24788== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24788== by 0x8062D5B: main (nginx.c:385)
==24788== If you believe this happened as a result of a stack
==24788== overflow in your program's main thread (unlikely but
==24788== possible), you can try to increase the size of the
==24788== main thread stack using the --main-stacksize= flag.
==24788== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - status code ok got: ''
expected: '200'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - Can't connect to 127.0.0.1:1984: Connection refused ==24789== Invalid read of size 4
==24789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24789== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24789== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24789== by 0x8062D5B: main (nginx.c:385)
==24789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - Can't connect to 127.0.0.1:1984: Connection refused ==24789==
==24789== Process terminating with default action of signal 11 (SIGSEGV)
==24789== Access not within mapped region at address 0x0
==24789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24789== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24789== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24789== by 0x8062D5B: main (nginx.c:385)
==24789== If you believe this happened as a result of a stack
==24789== overflow in your program's main thread (unlikely but
==24789== possible), you can try to increase the size of the
==24789== main thread stack using the --main-stacksize= flag.
==24789== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - status code ok got: ''
expected: '200'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules ==24801== Invalid read of size 4
==24801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24801== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24801== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24801== by 0x8062D5B: main (nginx.c:385)
==24801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules ==24801==
==24801== Process terminating with default action of signal 11 (SIGSEGV)
==24801== Access not within mapped region at address 0x0
==24801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24801== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24801== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24801== by 0x8062D5B: main (nginx.c:385)
==24801== If you believe this happened as a result of a stack
==24801== overflow in your program's main thread (unlikely but
==24801== possible), you can try to increase the size of the
==24801== main thread stack using the --main-stacksize= flag.
==24801== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - status code ok got: ''
expected: '200'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:skipped for non-LuaJIT|test module loaded: true)$)'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules ==24822== Invalid read of size 4
==24822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24822== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24822== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24822== by 0x8062D5B: main (nginx.c:385)
==24822== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24822==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules ==24822==
==24822== Process terminating with default action of signal 11 (SIGSEGV)
==24822== Access not within mapped region at address 0x0
==24822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24822== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24822== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24822== by 0x8062D5B: main (nginx.c:385)
==24822== If you believe this happened as a result of a stack
==24822== overflow in your program's main thread (unlikely but
==24822== possible), you can try to increase the size of the
==24822== main thread stack using the --main-stacksize= flag.
==24822== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - status code ok got: ''
expected: '200'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:skipped for non-LuaJIT|test module loaded: true)$)'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location ==24835== Invalid read of size 4
==24835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24835== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24835== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24835== by 0x8062D5B: main (nginx.c:385)
==24835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location ==24835==
==24835== Process terminating with default action of signal 11 (SIGSEGV)
==24835== Access not within mapped region at address 0x0
==24835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24835== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24835== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24835== by 0x8062D5B: main (nginx.c:385)
==24835== If you believe this happened as a result of a stack
==24835== overflow in your program's main thread (unlikely but
==24835== possible), you can try to increase the size of the
==24835== main thread stack using the --main-stacksize= flag.
==24835== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - status code ok got: ''
expected: '200'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location ==24856== Invalid read of size 4
==24856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24856== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24856== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24856== by 0x8062D5B: main (nginx.c:385)
==24856== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24856==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location ==24856==
==24856== Process terminating with default action of signal 11 (SIGSEGV)
==24856== Access not within mapped region at address 0x0
==24856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24856== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24856== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24856== by 0x8062D5B: main (nginx.c:385)
==24856== If you believe this happened as a result of a stack
==24856== overflow in your program's main thread (unlikely but
==24856== possible), you can try to increase the size of the
==24856== main thread stack using the --main-stacksize= flag.
==24856== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - status code ok got: ''
expected: '200'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 3: code cache explicitly off ==24869== Invalid read of size 4
==24869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24869== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24869== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24869== by 0x8062D5B: main (nginx.c:385)
==24869== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24869==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 3: code cache explicitly off ==24869==
==24869== Process terminating with default action of signal 11 (SIGSEGV)
==24869== Access not within mapped region at address 0x0
==24869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24869== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24869== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24869== by 0x8062D5B: main (nginx.c:385)
==24869== If you believe this happened as a result of a stack
==24869== overflow in your program's main thread (unlikely but
==24869== possible), you can try to increase the size of the
==24869== main thread stack using the --main-stacksize= flag.
==24869== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 3: code cache explicitly off - status code ok got: ''
expected: '200'
025-codecache.t TEST 3: code cache explicitly off - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 3: code cache explicitly off ==24890== Invalid read of size 4
==24890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24890== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24890== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24890== by 0x8062D5B: main (nginx.c:385)
==24890== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24890==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 3: code cache explicitly off ==24890==
==24890== Process terminating with default action of signal 11 (SIGSEGV)
==24890== Access not within mapped region at address 0x0
==24890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24890== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24890== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24890== by 0x8062D5B: main (nginx.c:385)
==24890== If you believe this happened as a result of a stack
==24890== overflow in your program's main thread (unlikely but
==24890== possible), you can try to increase the size of the
==24890== main thread stack using the --main-stacksize= flag.
==24890== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 3: code cache explicitly off - status code ok got: ''
expected: '200'
025-codecache.t TEST 3: code cache explicitly off - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 16: ngx.timer.* ==24903== Invalid read of size 4
==24903== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24903== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24903== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24903== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24903== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24903== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24903== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24903== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24903== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24903== by 0x8062D5B: main (nginx.c:385)
==24903== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24903==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 16: ngx.timer.* ==24903==
==24903== Process terminating with default action of signal 11 (SIGSEGV)
==24903== Access not within mapped region at address 0x0
==24903== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24903== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24903== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24903== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24903== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24903== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24903== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24903== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24903== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24903== by 0x8062D5B: main (nginx.c:385)
==24903== If you believe this happened as a result of a stack
==24903== overflow in your program's main thread (unlikely but
==24903== possible), you can try to increase the size of the
==24903== main thread stack using the --main-stacksize= flag.
==24903== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 16: ngx.timer.* - status code ok got: ''
expected: '200'
025-codecache.t TEST 16: ngx.timer.* - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
025-codecache.t TEST 16: ngx.timer.* ==24925== Invalid read of size 4
==24925== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24925== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24925== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24925== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24925== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24925== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24925== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24925== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24925== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24925== by 0x8062D5B: main (nginx.c:385)
==24925== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24925==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 16: ngx.timer.* ==24925==
==24925== Process terminating with default action of signal 11 (SIGSEGV)
==24925== Access not within mapped region at address 0x0
==24925== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24925== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24925== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24925== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24925== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24925== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24925== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24925== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24925== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24925== by 0x8062D5B: main (nginx.c:385)
==24925== If you believe this happened as a result of a stack
==24925== overflow in your program's main thread (unlikely but
==24925== possible), you can try to increase the size of the
==24925== main thread stack using the --main-stacksize= flag.
==24925== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 16: ngx.timer.* - status code ok got: ''
expected: '200'
025-codecache.t TEST 16: ngx.timer.* - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
025-codecache.t TEST 2: code cache explicitly on ==24969== Invalid read of size 4
==24969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24969== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24969== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24969== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24969== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24969== by 0x8062D5B: main (nginx.c:385)
==24969== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24969==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 2: code cache explicitly on ==24969==
==24969== Process terminating with default action of signal 11 (SIGSEGV)
==24969== Access not within mapped region at address 0x0
==24969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24969== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24969== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24969== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24969== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24969== by 0x8062D5B: main (nginx.c:385)
==24969== If you believe this happened as a result of a stack
==24969== overflow in your program's main thread (unlikely but
==24969== possible), you can try to increase the size of the
==24969== main thread stack using the --main-stacksize= flag.
==24969== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 2: code cache explicitly on - status code ok got: ''
expected: '200'
025-codecache.t TEST 2: code cache explicitly on - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 2: code cache explicitly on - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:56:28 [alert] 24787\#0: worker process 24969 exited on signal 11" (req 0) 2020/10/27 03:56:28 [debug] 24787\#0: shmtx forced unlock
2020/10/27 03:56:28 [debug] 24787\#0: wake up, sigio 0
2020/10/27 03:56:28 [debug] 24787\#0: reap children
2020/10/27 03:56:28 [debug] 24787\#0: child: 0 24969 e:0 t:1 d:0 r:1 j:0
'
025-codecache.t TEST 2: code cache explicitly on ==24990== Invalid read of size 4
==24990== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24990== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24990== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24990== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24990== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24990== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24990== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24990== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24990== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24990== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24990== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24990== by 0x8062D5B: main (nginx.c:385)
==24990== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24990==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 2: code cache explicitly on ==24990==
==24990== Process terminating with default action of signal 11 (SIGSEGV)
==24990== Access not within mapped region at address 0x0
==24990== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24990== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24990== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24990== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24990== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24990== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24990== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24990== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24990== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24990== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24990== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24990== by 0x8062D5B: main (nginx.c:385)
==24990== If you believe this happened as a result of a stack
==24990== overflow in your program's main thread (unlikely but
==24990== possible), you can try to increase the size of the
==24990== main thread stack using the --main-stacksize= flag.
==24990== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 2: code cache explicitly on - status code ok got: ''
expected: '200'
025-codecache.t TEST 2: code cache explicitly on - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 2: code cache explicitly on - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:56:28 [alert] 24787\#0: worker process 24969 exited on signal 11" (req 1) 2020/10/27 03:56:28 [debug] 24787\#0: shmtx forced unlock
2020/10/27 03:56:28 [debug] 24787\#0: wake up, sigio 0
2020/10/27 03:56:28 [debug] 24787\#0: reap children
2020/10/27 03:56:28 [debug] 24787\#0: child: 0 24969 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:56:28 [debug] 24787\#0: channel 3:4
2020/10/27 03:56:28 [notice] 24787\#0: start worker process 24990
2020/10/27 03:56:28 [debug] 24787\#0: sigsuspend
2020/10/27 03:56:28 [debug] 24990\#0: malloc: 060CA2E8:12
2020/10/27 03:56:28 [debug] 24990\#0: malloc: 060CA328:8
'
025-codecache.t TEST 2: code cache explicitly on - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:56:29 [alert] 24787\#0: worker process 24990 exited on signal 11" (req 1) 2020/10/27 03:56:29 [debug] 24787\#0: shmtx forced unlock
2020/10/27 03:56:29 [debug] 24787\#0: wake up, sigio 0
2020/10/27 03:56:29 [debug] 24787\#0: reap children
2020/10/27 03:56:29 [debug] 24787\#0: child: 0 24990 e:0 t:1 d:0 r:1 j:0
'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) ==25003== Invalid read of size 4
==25003== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25003== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25003== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25003== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25003== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25003== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25003== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25003== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25003== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25003== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25003== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25003== by 0x8062D5B: main (nginx.c:385)
==25003== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25003==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 9: no clear builtin lib "string" (inline) ==25003==
==25003== Process terminating with default action of signal 11 (SIGSEGV)
==25003== Access not within mapped region at address 0x0
==25003== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25003== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25003== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25003== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25003== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25003== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25003== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25003== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25003== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25003== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25003== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25003== by 0x8062D5B: main (nginx.c:385)
==25003== If you believe this happened as a result of a stack
==25003== overflow in your program's main thread (unlikely but
==25003== possible), you can try to increase the size of the
==25003== main thread stack using the --main-stacksize= flag.
==25003== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 9: no clear builtin lib "string" (inline) - status code ok got: ''
expected: '200'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) ==25024== Invalid read of size 4
==25024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25024== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25024== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25024== by 0x8062D5B: main (nginx.c:385)
==25024== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25024==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 9: no clear builtin lib "string" (inline) ==25024==
==25024== Process terminating with default action of signal 11 (SIGSEGV)
==25024== Access not within mapped region at address 0x0
==25024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25024== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25024== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25024== by 0x8062D5B: main (nginx.c:385)
==25024== If you believe this happened as a result of a stack
==25024== overflow in your program's main thread (unlikely but
==25024== possible), you can try to increase the size of the
==25024== main thread stack using the --main-stacksize= flag.
==25024== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 9: no clear builtin lib "string" (inline) - status code ok got: ''
expected: '200'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 13: clear _G table ==25036== Invalid read of size 4
==25036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25036== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25036== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25036== by 0x8062D5B: main (nginx.c:385)
==25036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 13: clear _G table ==25036==
==25036== Process terminating with default action of signal 11 (SIGSEGV)
==25036== Access not within mapped region at address 0x0
==25036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25036== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25036== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25036== by 0x8062D5B: main (nginx.c:385)
==25036== If you believe this happened as a result of a stack
==25036== overflow in your program's main thread (unlikely but
==25036== possible), you can try to increase the size of the
==25036== main thread stack using the --main-stacksize= flag.
==25036== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 13: clear _G table - status code ok got: ''
expected: '200'
025-codecache.t TEST 13: clear _G table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '_G.foo: 1
'
025-codecache.t TEST 13: clear _G table ==25057== Invalid read of size 4
==25057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25057== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25057== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25057== by 0x8062D5B: main (nginx.c:385)
==25057== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25057==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 13: clear _G table ==25057==
==25057== Process terminating with default action of signal 11 (SIGSEGV)
==25057== Access not within mapped region at address 0x0
==25057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25057== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25057== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25057== by 0x8062D5B: main (nginx.c:385)
==25057== If you believe this happened as a result of a stack
==25057== overflow in your program's main thread (unlikely but
==25057== possible), you can try to increase the size of the
==25057== main thread stack using the --main-stacksize= flag.
==25057== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 13: clear _G table - status code ok got: ''
expected: '200'
025-codecache.t TEST 13: clear _G table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '_G.foo: 1
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) ==25069== Invalid read of size 4
==25069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25069== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25069== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25069== by 0x8062D5B: main (nginx.c:385)
==25069== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25069==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) ==25069==
==25069== Process terminating with default action of signal 11 (SIGSEGV)
==25069== Access not within mapped region at address 0x0
==25069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25069== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25069== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25069== by 0x8062D5B: main (nginx.c:385)
==25069== If you believe this happened as a result of a stack
==25069== overflow in your program's main thread (unlikely but
==25069== possible), you can try to increase the size of the
==25069== main thread stack using the --main-stacksize= flag.
==25069== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) ==25090== Invalid read of size 4
==25090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25090== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25090== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25090== by 0x8062D5B: main (nginx.c:385)
==25090== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25090==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) ==25090==
==25090== Process terminating with default action of signal 11 (SIGSEGV)
==25090== Access not within mapped region at address 0x0
==25090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25090== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25090== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25090== by 0x8062D5B: main (nginx.c:385)
==25090== If you believe this happened as a result of a stack
==25090== overflow in your program's main thread (unlikely but
==25090== possible), you can try to increase the size of the
==25090== main thread stack using the --main-stacksize= flag.
==25090== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 25: make sure inline code keys are correct ==25103== Invalid read of size 4
==25103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25103== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25103== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25103== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25103== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25103== by 0x8062D5B: main (nginx.c:385)
==25103== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25103==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 25: make sure inline code keys are correct ==25103==
==25103== Process terminating with default action of signal 11 (SIGSEGV)
==25103== Access not within mapped region at address 0x0
==25103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25103== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25103== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25103== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25103== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25103== by 0x8062D5B: main (nginx.c:385)
==25103== If you believe this happened as a result of a stack
==25103== overflow in your program's main thread (unlikely but
==25103== possible), you can try to increase the size of the
==25103== main thread stack using the --main-stacksize= flag.
==25103== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 25: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 25: make sure inline code keys are correct - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 25: make sure inline code keys are correct - grep_error_log_out (req 0) @@ -1,4 +1 @@
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
'
025-codecache.t TEST 25: make sure inline code keys are correct ==25124== Invalid read of size 4
==25124== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25124== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25124== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25124== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25124== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25124== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25124== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25124== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25124== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25124== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25124== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25124== by 0x8062D5B: main (nginx.c:385)
==25124== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25124==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 25: make sure inline code keys are correct ==25124==
==25124== Process terminating with default action of signal 11 (SIGSEGV)
==25124== Access not within mapped region at address 0x0
==25124== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25124== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25124== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25124== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25124== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25124== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25124== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25124== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25124== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25124== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25124== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25124== by 0x8062D5B: main (nginx.c:385)
==25124== If you believe this happened as a result of a stack
==25124== overflow in your program's main thread (unlikely but
==25124== possible), you can try to increase the size of the
==25124== main thread stack using the --main-stacksize= flag.
==25124== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 25: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 25: make sure inline code keys are correct - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 25: make sure inline code keys are correct - grep_error_log_out (req 1) @@ -1,8 +1,3 @@
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
'
025-codecache.t TEST 1: code cache on by default ==25139== Invalid read of size 4
==25139== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25139== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25139== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25139== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25139== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25139== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25139== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25139== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25139== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25139== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25139== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25139== by 0x8062D5B: main (nginx.c:385)
==25139== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25139==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 1: code cache on by default ==25139==
==25139== Process terminating with default action of signal 11 (SIGSEGV)
==25139== Access not within mapped region at address 0x0
==25139== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25139== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25139== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25139== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25139== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25139== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25139== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25139== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25139== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25139== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25139== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25139== by 0x8062D5B: main (nginx.c:385)
==25139== If you believe this happened as a result of a stack
==25139== overflow in your program's main thread (unlikely but
==25139== possible), you can try to increase the size of the
==25139== main thread stack using the --main-stacksize= flag.
==25139== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 1: code cache on by default - status code ok got: ''
expected: '200'
025-codecache.t TEST 1: code cache on by default - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 1: code cache on by default - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:56:48 [alert] 24787\#0: worker process 25139 exited on signal 11" (req 0) 2020/10/27 03:56:48 [debug] 24787\#0: shmtx forced unlock
2020/10/27 03:56:48 [debug] 24787\#0: wake up, sigio 0
2020/10/27 03:56:48 [debug] 24787\#0: reap children
2020/10/27 03:56:48 [debug] 24787\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:56:48 [debug] 24787\#0: child: 1 25139 e:0 t:1 d:0 r:1 j:0
'
025-codecache.t TEST 1: code cache on by default ==25160== Invalid read of size 4
==25160== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25160== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25160== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25160== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25160== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25160== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25160== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25160== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25160== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25160== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25160== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25160== by 0x8062D5B: main (nginx.c:385)
==25160== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25160==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 1: code cache on by default ==25160==
==25160== Process terminating with default action of signal 11 (SIGSEGV)
==25160== Access not within mapped region at address 0x0
==25160== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25160== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25160== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25160== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25160== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25160== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25160== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25160== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25160== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25160== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25160== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25160== by 0x8062D5B: main (nginx.c:385)
==25160== If you believe this happened as a result of a stack
==25160== overflow in your program's main thread (unlikely but
==25160== possible), you can try to increase the size of the
==25160== main thread stack using the --main-stacksize= flag.
==25160== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 1: code cache on by default - status code ok got: ''
expected: '200'
025-codecache.t TEST 1: code cache on by default - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 1: code cache on by default - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:56:48 [alert] 24787\#0: worker process 25139 exited on signal 11" (req 1) 2020/10/27 03:56:48 [debug] 24787\#0: shmtx forced unlock
2020/10/27 03:56:48 [debug] 24787\#0: wake up, sigio 0
2020/10/27 03:56:48 [debug] 24787\#0: reap children
2020/10/27 03:56:48 [debug] 24787\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:56:48 [debug] 24787\#0: child: 1 25139 e:0 t:1 d:0 r:1 j:0
2020/10/27 03:56:48 [debug] 24787\#0: channel 3:4
2020/10/27 03:56:48 [notice] 24787\#0: start worker process 25160
2020/10/27 03:56:48 [debug] 24787\#0: sigsuspend
2020/10/27 03:56:48 [debug] 25160\#0: malloc: 053E2BF0:12
'
025-codecache.t TEST 1: code cache on by default - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 03:56:49 [alert] 24787\#0: worker process 25160 exited on signal 11" (req 1) 2020/10/27 03:56:49 [debug] 24787\#0: shmtx forced unlock
2020/10/27 03:56:49 [debug] 24787\#0: wake up, sigio 0
2020/10/27 03:56:49 [debug] 24787\#0: reap children
2020/10/27 03:56:49 [debug] 24787\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 03:56:49 [debug] 24787\#0: child: 1 25160 e:0 t:1 d:0 r:1 j:0
'
025-codecache.t TEST 8: no clear builtin lib "string" (file) ==25173== Invalid read of size 4
==25173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25173== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25173== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25173== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25173== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25173== by 0x8062D5B: main (nginx.c:385)
==25173== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25173==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 8: no clear builtin lib "string" (file) ==25173==
==25173== Process terminating with default action of signal 11 (SIGSEGV)
==25173== Access not within mapped region at address 0x0
==25173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25173== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25173== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25173== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25173== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25173== by 0x8062D5B: main (nginx.c:385)
==25173== If you believe this happened as a result of a stack
==25173== overflow in your program's main thread (unlikely but
==25173== possible), you can try to increase the size of the
==25173== main thread stack using the --main-stacksize= flag.
==25173== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 8: no clear builtin lib "string" (file) - status code ok got: ''
expected: '200'
025-codecache.t TEST 8: no clear builtin lib "string" (file) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 8: no clear builtin lib "string" (file) ==25194== Invalid read of size 4
==25194== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25194== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25194== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25194== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25194== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25194== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25194== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25194== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25194== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25194== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25194== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25194== by 0x8062D5B: main (nginx.c:385)
==25194== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25194==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 8: no clear builtin lib "string" (file) ==25194==
==25194== Process terminating with default action of signal 11 (SIGSEGV)
==25194== Access not within mapped region at address 0x0
==25194== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25194== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25194== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25194== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25194== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25194== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25194== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25194== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25194== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25194== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25194== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25194== by 0x8062D5B: main (nginx.c:385)
==25194== If you believe this happened as a result of a stack
==25194== overflow in your program's main thread (unlikely but
==25194== possible), you can try to increase the size of the
==25194== main thread stack using the --main-stacksize= flag.
==25194== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 8: no clear builtin lib "string" (file) - status code ok got: ''
expected: '200'
025-codecache.t TEST 8: no clear builtin lib "string" (file) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua ==25225== Invalid read of size 4
==25225== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25225== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25225== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25225== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25225== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25225== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25225== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25225== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25225== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25225== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25225== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25225== by 0x8062D5B: main (nginx.c:385)
==25225== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25225==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua ==25225==
==25225== Process terminating with default action of signal 11 (SIGSEGV)
==25225== Access not within mapped region at address 0x0
==25225== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25225== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25225== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25225== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25225== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25225== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25225== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25225== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25225== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25225== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25225== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25225== by 0x8062D5B: main (nginx.c:385)
==25225== If you believe this happened as a result of a stack
==25225== overflow in your program's main thread (unlikely but
==25225== possible), you can try to increase the size of the
==25225== main thread stack using the --main-stacksize= flag.
==25225== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - status code ok got: ''
expected: '200'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua ==25247== Invalid read of size 4
==25247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25247== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25247== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25247== by 0x8062D5B: main (nginx.c:385)
==25247== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25247==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua ==25247==
==25247== Process terminating with default action of signal 11 (SIGSEGV)
==25247== Access not within mapped region at address 0x0
==25247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25247== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25247== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25247== by 0x8062D5B: main (nginx.c:385)
==25247== If you believe this happened as a result of a stack
==25247== overflow in your program's main thread (unlikely but
==25247== possible), you can try to increase the size of the
==25247== main thread stack using the --main-stacksize= flag.
==25247== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - status code ok got: ''
expected: '200'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==25260== Invalid read of size 4
==25260== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25260== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25260== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25260== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25260== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25260== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25260== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25260== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25260== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25260== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25260== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25260== by 0x8062D5B: main (nginx.c:385)
==25260== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25260==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==25260==
==25260== Process terminating with default action of signal 11 (SIGSEGV)
==25260== Access not within mapped region at address 0x0
==25260== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25260== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25260== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25260== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25260== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25260== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25260== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25260== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25260== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25260== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25260== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25260== by 0x8062D5B: main (nginx.c:385)
==25260== If you believe this happened as a result of a stack
==25260== overflow in your program's main thread (unlikely but
==25260== possible), you can try to increase the size of the
==25260== main thread stack using the --main-stacksize= flag.
==25260== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==25281== Invalid read of size 4
==25281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25281== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25281== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25281== by 0x8062D5B: main (nginx.c:385)
==25281== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==25281==
==25281== Process terminating with default action of signal 11 (SIGSEGV)
==25281== Access not within mapped region at address 0x0
==25281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25281== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25281== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25281== by 0x8062D5B: main (nginx.c:385)
==25281== If you believe this happened as a result of a stack
==25281== overflow in your program's main thread (unlikely but
==25281== possible), you can try to increase the size of the
==25281== main thread stack using the --main-stacksize= flag.
==25281== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) ==25293== Invalid read of size 4
==25293== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25293== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25293== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25293== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25293== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25293== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25293== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25293== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25293== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25293== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25293== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25293== by 0x8062D5B: main (nginx.c:385)
==25293== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25293==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 4: code cache explicitly off (stream {} level) ==25293==
==25293== Process terminating with default action of signal 11 (SIGSEGV)
==25293== Access not within mapped region at address 0x0
==25293== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25293== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25293== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25293== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25293== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25293== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25293== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25293== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25293== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25293== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25293== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25293== by 0x8062D5B: main (nginx.c:385)
==25293== If you believe this happened as a result of a stack
==25293== overflow in your program's main thread (unlikely but
==25293== possible), you can try to increase the size of the
==25293== main thread stack using the --main-stacksize= flag.
==25293== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 4: code cache explicitly off (stream {} level) - status code ok got: ''
expected: '200'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) ==25314== Invalid read of size 4
==25314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25314== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25314== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25314== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25314== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25314== by 0x8062D5B: main (nginx.c:385)
==25314== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25314==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 4: code cache explicitly off (stream {} level) ==25314==
==25314== Process terminating with default action of signal 11 (SIGSEGV)
==25314== Access not within mapped region at address 0x0
==25314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25314== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25314== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25314== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25314== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25314== by 0x8062D5B: main (nginx.c:385)
==25314== If you believe this happened as a result of a stack
==25314== overflow in your program's main thread (unlikely but
==25314== possible), you can try to increase the size of the
==25314== main thread stack using the --main-stacksize= flag.
==25314== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 4: code cache explicitly off (stream {} level) - status code ok got: ''
expected: '200'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 14: github #257: globals cleared when code cache off ==25327== Invalid read of size 4
==25327== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25327== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25327== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25327== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25327== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25327== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25327== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25327== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25327== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25327== by 0x8062D5B: main (nginx.c:385)
==25327== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25327==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 14: github #257: globals cleared when code cache off ==25327==
==25327== Process terminating with default action of signal 11 (SIGSEGV)
==25327== Access not within mapped region at address 0x0
==25327== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25327== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25327== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25327== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25327== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25327== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25327== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25327== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25327== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25327== by 0x8062D5B: main (nginx.c:385)
==25327== If you believe this happened as a result of a stack
==25327== overflow in your program's main thread (unlikely but
==25327== possible), you can try to increase the size of the
==25327== main thread stack using the --main-stacksize= flag.
==25327== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 14: github \#257: globals cleared when code cache off - status code ok got: ''
expected: '200'
025-codecache.t TEST 14: github \#257: globals cleared when code cache off - response_body_like - response is expected () ''
doesn't match '(?^s:^table: 0x\d*?[1-9a-fA-F])'
025-codecache.t TEST 14: github #257: globals cleared when code cache off ==25348== Invalid read of size 4
==25348== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25348== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25348== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25348== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25348== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25348== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25348== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25348== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25348== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25348== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25348== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25348== by 0x8062D5B: main (nginx.c:385)
==25348== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25348==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 14: github #257: globals cleared when code cache off ==25348==
==25348== Process terminating with default action of signal 11 (SIGSEGV)
==25348== Access not within mapped region at address 0x0
==25348== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25348== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25348== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25348== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25348== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25348== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25348== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25348== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25348== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25348== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25348== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25348== by 0x8062D5B: main (nginx.c:385)
==25348== If you believe this happened as a result of a stack
==25348== overflow in your program's main thread (unlikely but
==25348== possible), you can try to increase the size of the
==25348== main thread stack using the --main-stacksize= flag.
==25348== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 14: github \#257: globals cleared when code cache off - status code ok got: ''
expected: '200'
025-codecache.t TEST 14: github \#257: globals cleared when code cache off - response_body_like - response is expected () ''
doesn't match '(?^s:^table: 0x\d*?[1-9a-fA-F])'
025-codecache.t TEST 21: multiple parallel timers ==25360== Invalid read of size 4
==25360== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25360== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25360== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25360== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25360== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25360== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25360== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25360== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25360== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25360== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25360== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25360== by 0x8062D5B: main (nginx.c:385)
==25360== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25360==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 21: multiple parallel timers ==25360==
==25360== Process terminating with default action of signal 11 (SIGSEGV)
==25360== Access not within mapped region at address 0x0
==25360== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25360== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25360== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25360== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25360== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25360== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25360== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25360== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25360== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25360== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25360== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25360== by 0x8062D5B: main (nginx.c:385)
==25360== If you believe this happened as a result of a stack
==25360== overflow in your program's main thread (unlikely but
==25360== possible), you can try to increase the size of the
==25360== main thread stack using the --main-stacksize= flag.
==25360== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 21: multiple parallel timers - status code ok got: ''
expected: '200'
025-codecache.t TEST 21: multiple parallel timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 21: multiple parallel timers ==25381== Invalid read of size 4
==25381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25381== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25381== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25381== by 0x8062D5B: main (nginx.c:385)
==25381== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25381==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 21: multiple parallel timers ==25381==
==25381== Process terminating with default action of signal 11 (SIGSEGV)
==25381== Access not within mapped region at address 0x0
==25381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25381== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25381== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25381== by 0x8062D5B: main (nginx.c:385)
==25381== If you believe this happened as a result of a stack
==25381== overflow in your program's main thread (unlikely but
==25381== possible), you can try to increase the size of the
==25381== main thread stack using the --main-stacksize= flag.
==25381== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 21: multiple parallel timers - status code ok got: ''
expected: '200'
025-codecache.t TEST 21: multiple parallel timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 26: make sure inline code keys are correct ==25393== Invalid read of size 4
==25393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25393== by 0x8062D5B: main (nginx.c:385)
==25393== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25393==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 26: make sure inline code keys are correct ==25393==
==25393== Process terminating with default action of signal 11 (SIGSEGV)
==25393== Access not within mapped region at address 0x0
==25393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25393== by 0x8062D5B: main (nginx.c:385)
==25393== If you believe this happened as a result of a stack
==25393== overflow in your program's main thread (unlikely but
==25393== possible), you can try to increase the size of the
==25393== main thread stack using the --main-stacksize= flag.
==25393== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 26: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 26: make sure inline code keys are correct - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 26: make sure inline code keys are correct - grep_error_log_out (req 0) @@ -1,4 +1 @@
looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_68f5f4e946c3efd1cc206452b807e8b6'
-looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_042c9b3a136fbacbbd0e4b9ad10896b7'
'
025-codecache.t TEST 26: make sure inline code keys are correct ==25414== Invalid read of size 4
==25414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25414== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25414== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25414== by 0x8062D5B: main (nginx.c:385)
==25414== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25414==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 26: make sure inline code keys are correct ==25414==
==25414== Process terminating with default action of signal 11 (SIGSEGV)
==25414== Access not within mapped region at address 0x0
==25414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25414== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25414== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25414== by 0x8062D5B: main (nginx.c:385)
==25414== If you believe this happened as a result of a stack
==25414== overflow in your program's main thread (unlikely but
==25414== possible), you can try to increase the size of the
==25414== main thread stack using the --main-stacksize= flag.
==25414== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 26: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 26: make sure inline code keys are correct - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 26: make sure inline code keys are correct - grep_error_log_out (req 1) @@ -1,8 +1,3 @@
looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
looking up Lua code cache with key 'nhlf_68f5f4e946c3efd1cc206452b807e8b6'
looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_042c9b3a136fbacbbd0e4b9ad10896b7'
-looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_68f5f4e946c3efd1cc206452b807e8b6'
-looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_042c9b3a136fbacbbd0e4b9ad10896b7'
'
025-codecache.t TEST 12: do not skip luarocks* ==25432== Invalid read of size 4
==25432== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25432== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25432== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25432== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25432== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25432== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25432== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25432== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25432== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25432== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25432== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25432== by 0x8062D5B: main (nginx.c:385)
==25432== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25432==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 12: do not skip luarocks* ==25432==
==25432== Process terminating with default action of signal 11 (SIGSEGV)
==25432== Access not within mapped region at address 0x0
==25432== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25432== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25432== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25432== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25432== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25432== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25432== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25432== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25432== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25432== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25432== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25432== by 0x8062D5B: main (nginx.c:385)
==25432== If you believe this happened as a result of a stack
==25432== overflow in your program's main thread (unlikely but
==25432== possible), you can try to increase the size of the
==25432== main thread stack using the --main-stacksize= flag.
==25432== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 12: do not skip luarocks* - status code ok got: ''
expected: '200'
025-codecache.t TEST 12: do not skip luarocks* - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 12: do not skip luarocks* ==25453== Invalid read of size 4
==25453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25453== by 0x8062D5B: main (nginx.c:385)
==25453== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25453==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 12: do not skip luarocks* ==25453==
==25453== Process terminating with default action of signal 11 (SIGSEGV)
==25453== Access not within mapped region at address 0x0
==25453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25453== by 0x8062D5B: main (nginx.c:385)
==25453== If you believe this happened as a result of a stack
==25453== overflow in your program's main thread (unlikely but
==25453== possible), you can try to increase the size of the
==25453== main thread stack using the --main-stacksize= flag.
==25453== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 12: do not skip luarocks* - status code ok got: ''
expected: '200'
025-codecache.t TEST 12: do not skip luarocks* - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) ==25466== Invalid read of size 4
==25466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25466== by 0x8062D5B: main (nginx.c:385)
==25466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 19: lua_max_running_timers (just not enough) ==25466==
==25466== Process terminating with default action of signal 11 (SIGSEGV)
==25466== Access not within mapped region at address 0x0
==25466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25466== by 0x8062D5B: main (nginx.c:385)
==25466== If you believe this happened as a result of a stack
==25466== overflow in your program's main thread (unlikely but
==25466== possible), you can try to increase the size of the
==25466== main thread stack using the --main-stacksize= flag.
==25466== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 19: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) ==25487== Invalid read of size 4
==25487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25487== by 0x8062D5B: main (nginx.c:385)
==25487== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25487==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 19: lua_max_running_timers (just not enough) ==25487==
==25487== Process terminating with default action of signal 11 (SIGSEGV)
==25487== Access not within mapped region at address 0x0
==25487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25487== by 0x8062D5B: main (nginx.c:385)
==25487== If you believe this happened as a result of a stack
==25487== overflow in your program's main thread (unlikely but
==25487== possible), you can try to increase the size of the
==25487== main thread stack using the --main-stacksize= flag.
==25487== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 19: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 18: lua variable sharing via upvalue ==25499== Invalid read of size 4
==25499== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25499== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25499== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25499== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25499== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25499== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25499== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25499== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25499== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25499== by 0x8062D5B: main (nginx.c:385)
==25499== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25499==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 18: lua variable sharing via upvalue ==25499==
==25499== Process terminating with default action of signal 11 (SIGSEGV)
==25499== Access not within mapped region at address 0x0
==25499== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25499== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25499== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25499== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25499== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25499== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25499== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25499== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25499== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25499== by 0x8062D5B: main (nginx.c:385)
==25499== If you believe this happened as a result of a stack
==25499== overflow in your program's main thread (unlikely but
==25499== possible), you can try to increase the size of the
==25499== main thread stack using the --main-stacksize= flag.
==25499== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 18: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
025-codecache.t TEST 18: lua variable sharing via upvalue - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
025-codecache.t TEST 18: lua variable sharing via upvalue ==25520== Invalid read of size 4
==25520== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25520== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25520== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25520== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25520== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25520== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25520== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25520== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25520== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25520== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25520== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25520== by 0x8062D5B: main (nginx.c:385)
==25520== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25520==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 18: lua variable sharing via upvalue ==25520==
==25520== Process terminating with default action of signal 11 (SIGSEGV)
==25520== Access not within mapped region at address 0x0
==25520== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25520== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25520== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25520== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25520== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25520== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25520== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25520== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25520== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25520== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25520== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25520== by 0x8062D5B: main (nginx.c:385)
==25520== If you believe this happened as a result of a stack
==25520== overflow in your program's main thread (unlikely but
==25520== possible), you can try to increase the size of the
==25520== main thread stack using the --main-stacksize= flag.
==25520== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 18: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
025-codecache.t TEST 18: lua variable sharing via upvalue - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
025-codecache.t TEST 10: no clear builtin libs (misc) ==25532== Invalid read of size 4
==25532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25532== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25532== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25532== by 0x8062D5B: main (nginx.c:385)
==25532== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25532==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 10: no clear builtin libs (misc) ==25532==
==25532== Process terminating with default action of signal 11 (SIGSEGV)
==25532== Access not within mapped region at address 0x0
==25532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25532== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25532== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25532== by 0x8062D5B: main (nginx.c:385)
==25532== If you believe this happened as a result of a stack
==25532== overflow in your program's main thread (unlikely but
==25532== possible), you can try to increase the size of the
==25532== main thread stack using the --main-stacksize= flag.
==25532== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 10: no clear builtin libs (misc) - status code ok got: ''
expected: '200'
025-codecache.t TEST 10: no clear builtin libs (misc) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-OK
-OK
'
025-codecache.t TEST 10: no clear builtin libs (misc) ==25553== Invalid read of size 4
==25553== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25553== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25553== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25553== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25553== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25553== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25553== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25553== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25553== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25553== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25553== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25553== by 0x8062D5B: main (nginx.c:385)
==25553== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25553==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 10: no clear builtin libs (misc) ==25553==
==25553== Process terminating with default action of signal 11 (SIGSEGV)
==25553== Access not within mapped region at address 0x0
==25553== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25553== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25553== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25553== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25553== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25553== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25553== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25553== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25553== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25553== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25553== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25553== by 0x8062D5B: main (nginx.c:385)
==25553== If you believe this happened as a result of a stack
==25553== overflow in your program's main thread (unlikely but
==25553== possible), you can try to increase the size of the
==25553== main thread stack using the --main-stacksize= flag.
==25553== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 10: no clear builtin libs (misc) - status code ok got: ''
expected: '200'
025-codecache.t TEST 10: no clear builtin libs (misc) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-OK
-OK
'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file ==25566== Invalid read of size 4
==25566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25566== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25566== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25566== by 0x8062D5B: main (nginx.c:385)
==25566== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25566==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file ==25566==
==25566== Process terminating with default action of signal 11 (SIGSEGV)
==25566== Access not within mapped region at address 0x0
==25566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25566== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25566== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25566== by 0x8062D5B: main (nginx.c:385)
==25566== If you believe this happened as a result of a stack
==25566== overflow in your program's main thread (unlikely but
==25566== possible), you can try to increase the size of the
==25566== main thread stack using the --main-stacksize= flag.
==25566== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - status code ok got: ''
expected: '200'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file ==25587== Invalid read of size 4
==25587== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25587== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25587== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25587== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25587== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25587== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25587== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25587== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25587== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25587== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25587== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25587== by 0x8062D5B: main (nginx.c:385)
==25587== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25587==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file ==25587==
==25587== Process terminating with default action of signal 11 (SIGSEGV)
==25587== Access not within mapped region at address 0x0
==25587== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25587== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25587== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25587== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25587== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25587== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25587== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25587== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25587== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25587== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25587== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25587== by 0x8062D5B: main (nginx.c:385)
==25587== If you believe this happened as a result of a stack
==25587== overflow in your program's main thread (unlikely but
==25587== possible), you can try to increase the size of the
==25587== main thread stack using the --main-stacksize= flag.
==25587== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - status code ok got: ''
expected: '200'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) ==25601== Invalid read of size 4
==25601== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25601== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25601== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25601== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25601== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25601== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25601== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25601== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25601== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25601== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25601== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25601== by 0x8062D5B: main (nginx.c:385)
==25601== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25601==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) ==25601==
==25601== Process terminating with default action of signal 11 (SIGSEGV)
==25601== Access not within mapped region at address 0x0
==25601== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25601== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25601== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25601== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25601== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25601== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25601== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25601== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25601== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25601== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25601== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25601== by 0x8062D5B: main (nginx.c:385)
==25601== If you believe this happened as a result of a stack
==25601== overflow in your program's main thread (unlikely but
==25601== possible), you can try to increase the size of the
==25601== main thread stack using the --main-stacksize= flag.
==25601== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) ==25622== Invalid read of size 4
==25622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25622== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25622== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25622== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25622== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25622== by 0x8062D5B: main (nginx.c:385)
==25622== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25622==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) ==25622==
==25622== Process terminating with default action of signal 11 (SIGSEGV)
==25622== Access not within mapped region at address 0x0
==25622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25622== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25622== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25622== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25622== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25622== by 0x8062D5B: main (nginx.c:385)
==25622== If you believe this happened as a result of a stack
==25622== overflow in your program's main thread (unlikely but
==25622== possible), you can try to increase the size of the
==25622== main thread stack using the --main-stacksize= flag.
==25622== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 11: do not skip luarocks ==25635== Invalid read of size 4
==25635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25635== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25635== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25635== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25635== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25635== by 0x8062D5B: main (nginx.c:385)
==25635== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25635==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 11: do not skip luarocks ==25635==
==25635== Process terminating with default action of signal 11 (SIGSEGV)
==25635== Access not within mapped region at address 0x0
==25635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25635== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25635== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25635== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25635== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25635== by 0x8062D5B: main (nginx.c:385)
==25635== If you believe this happened as a result of a stack
==25635== overflow in your program's main thread (unlikely but
==25635== possible), you can try to increase the size of the
==25635== main thread stack using the --main-stacksize= flag.
==25635== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 11: do not skip luarocks - status code ok got: ''
expected: '200'
025-codecache.t TEST 11: do not skip luarocks - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 11: do not skip luarocks ==25656== Invalid read of size 4
==25656== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25656== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25656== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25656== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25656== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25656== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25656== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25656== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25656== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25656== by 0x8062D5B: main (nginx.c:385)
==25656== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25656==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
025-codecache.t TEST 11: do not skip luarocks ==25656==
==25656== Process terminating with default action of signal 11 (SIGSEGV)
==25656== Access not within mapped region at address 0x0
==25656== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25656== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25656== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25656== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25656== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25656== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25656== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25656== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25656== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25656== by 0x8062D5B: main (nginx.c:385)
==25656== If you believe this happened as a result of a stack
==25656== overflow in your program's main thread (unlikely but
==25656== possible), you can try to increase the size of the
==25656== main thread stack using the --main-stacksize= flag.
==25656== The main thread stack size used in this run was 8388608.

025-codecache.t TEST 11: do not skip luarocks - status code ok got: ''
expected: '200'
025-codecache.t TEST 11: do not skip luarocks - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
032-iolist.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==26154== Invalid read of size 4
==26154== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26154== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26154== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26154== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26154== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26154== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26154== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26154== by 0x8062D5B: main (nginx.c:385)
==26154== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26154==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==26154==
==26154== Process terminating with default action of signal 11 (SIGSEGV)
==26154== Access not within mapped region at address 0x0
==26154== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26154== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26154== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26154== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26154== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26154== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26154== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26154== by 0x8062D5B: main (nginx.c:385)
==26154== If you believe this happened as a result of a stack
==26154== overflow in your program's main thread (unlikely but
==26154== possible), you can try to increase the size of the
==26154== main thread stack using the --main-stacksize= flag.
==26154== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 1: sanity - status code ok got: ''
expected: '200'
032-iolist.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==26155== Invalid read of size 4
==26155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26155== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26155== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26155== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26155== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26155== by 0x8062D5B: main (nginx.c:385)
==26155== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26155==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==26155==
==26155== Process terminating with default action of signal 11 (SIGSEGV)
==26155== Access not within mapped region at address 0x0
==26155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26155== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26155== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26155== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26155== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26155== by 0x8062D5B: main (nginx.c:385)
==26155== If you believe this happened as a result of a stack
==26155== overflow in your program's main thread (unlikely but
==26155== possible), you can try to increase the size of the
==26155== main thread stack using the --main-stacksize= flag.
==26155== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 1: sanity - status code ok got: ''
expected: '200'
032-iolist.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 3: non-array table ==26167== Invalid read of size 4
==26167== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26167== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26167== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26167== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26167== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26167== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26167== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26167== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26167== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26167== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26167== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26167== by 0x8062D5B: main (nginx.c:385)
==26167== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26167==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 3: non-array table ==26167==
==26167== Process terminating with default action of signal 11 (SIGSEGV)
==26167== Access not within mapped region at address 0x0
==26167== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26167== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26167== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26167== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26167== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26167== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26167== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26167== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26167== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26167== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26167== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26167== by 0x8062D5B: main (nginx.c:385)
==26167== If you believe this happened as a result of a stack
==26167== overflow in your program's main thread (unlikely but
==26167== possible), you can try to increase the size of the
==26167== main thread stack using the --main-stacksize= flag.
==26167== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 3: non-array table - status code ok got: ''
expected: '200'
032-iolist.t TEST 3: non-array table ==26188== Invalid read of size 4
==26188== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26188== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26188== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26188== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26188== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26188== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26188== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26188== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26188== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26188== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26188== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26188== by 0x8062D5B: main (nginx.c:385)
==26188== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26188==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 3: non-array table ==26188==
==26188== Process terminating with default action of signal 11 (SIGSEGV)
==26188== Access not within mapped region at address 0x0
==26188== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26188== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26188== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26188== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26188== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26188== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26188== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26188== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26188== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26188== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26188== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26188== by 0x8062D5B: main (nginx.c:385)
==26188== If you believe this happened as a result of a stack
==26188== overflow in your program's main thread (unlikely but
==26188== possible), you can try to increase the size of the
==26188== main thread stack using the --main-stacksize= flag.
==26188== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 3: non-array table - status code ok got: ''
expected: '200'
032-iolist.t TEST 2: nested table ==26200== Invalid read of size 4
==26200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26200== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26200== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26200== by 0x8062D5B: main (nginx.c:385)
==26200== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26200==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 2: nested table ==26200==
==26200== Process terminating with default action of signal 11 (SIGSEGV)
==26200== Access not within mapped region at address 0x0
==26200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26200== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26200== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26200== by 0x8062D5B: main (nginx.c:385)
==26200== If you believe this happened as a result of a stack
==26200== overflow in your program's main thread (unlikely but
==26200== possible), you can try to increase the size of the
==26200== main thread stack using the --main-stacksize= flag.
==26200== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 2: nested table - status code ok got: ''
expected: '200'
032-iolist.t TEST 2: nested table - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556--helloniltruefalse32.556\x{0a}"
length: 49
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 2: nested table ==26221== Invalid read of size 4
==26221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26221== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26221== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26221== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26221== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26221== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26221== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26221== by 0x8062D5B: main (nginx.c:385)
==26221== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26221==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 2: nested table ==26221==
==26221== Process terminating with default action of signal 11 (SIGSEGV)
==26221== Access not within mapped region at address 0x0
==26221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26221== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26221== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26221== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26221== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26221== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26221== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26221== by 0x8062D5B: main (nginx.c:385)
==26221== If you believe this happened as a result of a stack
==26221== overflow in your program's main thread (unlikely but
==26221== possible), you can try to increase the size of the
==26221== main thread stack using the --main-stacksize= flag.
==26221== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 2: nested table - status code ok got: ''
expected: '200'
032-iolist.t TEST 2: nested table - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556--helloniltruefalse32.556\x{0a}"
length: 49
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 4: bad data type in table ==26233== Invalid read of size 4
==26233== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26233== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26233== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26233== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26233== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26233== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26233== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26233== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26233== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26233== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26233== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26233== by 0x8062D5B: main (nginx.c:385)
==26233== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26233==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 4: bad data type in table ==26233==
==26233== Process terminating with default action of signal 11 (SIGSEGV)
==26233== Access not within mapped region at address 0x0
==26233== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26233== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26233== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26233== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26233== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26233== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26233== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26233== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26233== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26233== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26233== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26233== by 0x8062D5B: main (nginx.c:385)
==26233== If you believe this happened as a result of a stack
==26233== overflow in your program's main thread (unlikely but
==26233== possible), you can try to increase the size of the
==26233== main thread stack using the --main-stacksize= flag.
==26233== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 4: bad data type in table - status code ok got: ''
expected: '200'
032-iolist.t TEST 4: bad data type in table ==26254== Invalid read of size 4
==26254== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26254== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26254== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26254== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26254== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26254== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26254== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26254== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26254== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26254== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26254== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26254== by 0x8062D5B: main (nginx.c:385)
==26254== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26254==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
032-iolist.t TEST 4: bad data type in table ==26254==
==26254== Process terminating with default action of signal 11 (SIGSEGV)
==26254== Access not within mapped region at address 0x0
==26254== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26254== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26254== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26254== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26254== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26254== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26254== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26254== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26254== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26254== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26254== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26254== by 0x8062D5B: main (nginx.c:385)
==26254== If you believe this happened as a result of a stack
==26254== overflow in your program's main thread (unlikely but
==26254== possible), you can try to increase the size of the
==26254== main thread stack using the --main-stacksize= flag.
==26254== The main thread stack size used in this run was 8388608.

032-iolist.t TEST 4: bad data type in table - status code ok got: ''
expected: '200'
033-ctx.t TEST 3: different requests have different ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==26263== Invalid read of size 4
==26263== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26263== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26263== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26263== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26263== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26263== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26263== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26263== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26263== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26263== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26263== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26263== by 0x8062D5B: main (nginx.c:385)
==26263== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26263==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
033-ctx.t TEST 3: different requests have different ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==26263==
==26263== Process terminating with default action of signal 11 (SIGSEGV)
==26263== Access not within mapped region at address 0x0
==26263== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26263== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26263== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26263== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26263== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26263== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26263== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26263== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26263== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26263== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26263== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26263== by 0x8062D5B: main (nginx.c:385)
==26263== If you believe this happened as a result of a stack
==26263== overflow in your program's main thread (unlikely but
==26263== possible), you can try to increase the size of the
==26263== main thread stack using the --main-stacksize= flag.
==26263== The main thread stack size used in this run was 8388608.

033-ctx.t TEST 3: different requests have different ngx.ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 3: different requests have different ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}32\x{0a}nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 3: different requests have different ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==26264== Invalid read of size 4
==26264== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26264== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26264== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26264== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26264== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26264== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26264== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26264== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26264== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26264== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26264== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26264== by 0x8062D5B: main (nginx.c:385)
==26264== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26264==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
033-ctx.t TEST 3: different requests have different ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==26264==
==26264== Process terminating with default action of signal 11 (SIGSEGV)
==26264== Access not within mapped region at address 0x0
==26264== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26264== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26264== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26264== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26264== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26264== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26264== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26264== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26264== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26264== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26264== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26264== by 0x8062D5B: main (nginx.c:385)
==26264== If you believe this happened as a result of a stack
==26264== overflow in your program's main thread (unlikely but
==26264== possible), you can try to increase the size of the
==26264== main thread stack using the --main-stacksize= flag.
==26264== The main thread stack size used in this run was 8388608.

033-ctx.t TEST 3: different requests have different ngx.ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 3: different requests have different ngx.ctx - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}32\x{0a}nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 1: sanity ==26276== Invalid read of size 4
==26276== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26276== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26276== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26276== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26276== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26276== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26276== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26276== by 0x8062D5B: main (nginx.c:385)
==26276== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26276==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
033-ctx.t TEST 1: sanity ==26276==
==26276== Process terminating with default action of signal 11 (SIGSEGV)
==26276== Access not within mapped region at address 0x0
==26276== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26276== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26276== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26276== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26276== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26276== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26276== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26276== by 0x8062D5B: main (nginx.c:385)
==26276== If you believe this happened as a result of a stack
==26276== overflow in your program's main thread (unlikely but
==26276== possible), you can try to increase the size of the
==26276== main thread stack using the --main-stacksize= flag.
==26276== The main thread stack size used in this run was 8388608.

033-ctx.t TEST 1: sanity - status code ok got: ''
expected: '200'
033-ctx.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 1: sanity ==26297== Invalid read of size 4
==26297== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26297== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26297== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26297== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26297== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26297== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26297== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26297== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26297== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26297== by 0x8062D5B: main (nginx.c:385)
==26297== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26297==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
033-ctx.t TEST 1: sanity ==26297==
==26297== Process terminating with default action of signal 11 (SIGSEGV)
==26297== Access not within mapped region at address 0x0
==26297== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26297== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26297== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26297== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26297== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26297== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26297== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26297== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26297== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26297== by 0x8062D5B: main (nginx.c:385)
==26297== If you believe this happened as a result of a stack
==26297== overflow in your program's main thread (unlikely but
==26297== possible), you can try to increase the size of the
==26297== main thread stack using the --main-stacksize= flag.
==26297== The main thread stack size used in this run was 8388608.

033-ctx.t TEST 1: sanity - status code ok got: ''
expected: '200'
033-ctx.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 4: overriding ctx ==26309== Invalid read of size 4
==26309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26309== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26309== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26309== by 0x8062D5B: main (nginx.c:385)
==26309== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26309==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
033-ctx.t TEST 4: overriding ctx ==26309==
==26309== Process terminating with default action of signal 11 (SIGSEGV)
==26309== Access not within mapped region at address 0x0
==26309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26309== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26309== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26309== by 0x8062D5B: main (nginx.c:385)
==26309== If you believe this happened as a result of a stack
==26309== overflow in your program's main thread (unlikely but
==26309== possible), you can try to increase the size of the
==26309== main thread stack using the --main-stacksize= flag.
==26309== The main thread stack size used in this run was 8388608.

033-ctx.t TEST 4: overriding ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 4: overriding ctx - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "32\x{0a}54\x{0a}nil\x{0a}56\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 4: overriding ctx ==26330== Invalid read of size 4
==26330== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26330== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26330== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26330== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26330== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26330== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26330== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26330== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26330== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26330== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26330== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26330== by 0x8062D5B: main (nginx.c:385)
==26330== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26330==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
033-ctx.t TEST 4: overriding ctx ==26330==
==26330== Process terminating with default action of signal 11 (SIGSEGV)
==26330== Access not within mapped region at address 0x0
==26330== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26330== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26330== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26330== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26330== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26330== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26330== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26330== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26330== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26330== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26330== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26330== by 0x8062D5B: main (nginx.c:385)
==26330== If you believe this happened as a result of a stack
==26330== overflow in your program's main thread (unlikely but
==26330== possible), you can try to increase the size of the
==26330== main thread stack using the --main-stacksize= flag.
==26330== The main thread stack size used in this run was 8388608.

033-ctx.t TEST 4: overriding ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 4: overriding ctx - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "32\x{0a}54\x{0a}nil\x{0a}56\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
034-match.t TEST 15: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==26339== Invalid read of size 4
==26339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26339== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26339== by 0x8062D5B: main (nginx.c:385)
==26339== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26339==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 15: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==26339==
==26339== Process terminating with default action of signal 11 (SIGSEGV)
==26339== Access not within mapped region at address 0x0
==26339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26339== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26339== by 0x8062D5B: main (nginx.c:385)
==26339== If you believe this happened as a result of a stack
==26339== overflow in your program's main thread (unlikely but
==26339== possible), you can try to increase the size of the
==26339== main thread stack using the --main-stacksize= flag.
==26339== The main thread stack size used in this run was 8388608.
==26339== 1,024 bytes in 1 blocks are definitely lost in loss record 2,655 of 2,738
==26339== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26339== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26339== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26339== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26339== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26339== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26339== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26339== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26339== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26339== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26339== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26339== by 0x40BB675: trace_state (lj_trace.c:690)
==26339== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26339== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26339== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26339== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26339== by 0x407FA29: lua_resume (lj_api.c:1296)
==26339== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26339== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26339== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26339== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26339== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26339== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26339== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26339== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26339== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26339== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26339== by 0x8062D5B: main (nginx.c:385)
==26339==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 15: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 15: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
034-match.t TEST 15: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==26340== Invalid read of size 4
==26340== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26340== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26340== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26340== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26340== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26340== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26340== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26340== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26340== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26340== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26340== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26340== by 0x8062D5B: main (nginx.c:385)
==26340== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26340==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 15: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==26340==
==26340== Process terminating with default action of signal 11 (SIGSEGV)
==26340== Access not within mapped region at address 0x0
==26340== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26340== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26340== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26340== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26340== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26340== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26340== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26340== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26340== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26340== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26340== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26340== by 0x8062D5B: main (nginx.c:385)
==26340== If you believe this happened as a result of a stack
==26340== overflow in your program's main thread (unlikely but
==26340== possible), you can try to increase the size of the
==26340== main thread stack using the --main-stacksize= flag.
==26340== The main thread stack size used in this run was 8388608.
==26340== 1,024 bytes in 1 blocks are definitely lost in loss record 2,655 of 2,738
==26340== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26340== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26340== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26340== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26340== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26340== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26340== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26340== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26340== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26340== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26340== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26340== by 0x40BB675: trace_state (lj_trace.c:690)
==26340== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26340== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26340== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26340== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26340== by 0x407FA29: lua_resume (lj_api.c:1296)
==26340== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26340== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26340== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26340== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26340== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26340== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26340== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26340== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26340== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26340== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26340== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26340== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26340== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26340== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26340== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26340== by 0x8062D5B: main (nginx.c:385)
==26340==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 15: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 15: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
034-match.t TEST 5: multiple captures (with o) ==26352== Invalid read of size 4
==26352== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26352== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26352== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26352== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26352== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26352== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26352== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26352== by 0x8062D5B: main (nginx.c:385)
==26352== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26352==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 5: multiple captures (with o) ==26352==
==26352== Process terminating with default action of signal 11 (SIGSEGV)
==26352== Access not within mapped region at address 0x0
==26352== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26352== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26352== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26352== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26352== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26352== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26352== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26352== by 0x8062D5B: main (nginx.c:385)
==26352== If you believe this happened as a result of a stack
==26352== overflow in your program's main thread (unlikely but
==26352== possible), you can try to increase the size of the
==26352== main thread stack using the --main-stacksize= flag.
==26352== The main thread stack size used in this run was 8388608.
==26352== 1,024 bytes in 1 blocks are definitely lost in loss record 2,892 of 3,018
==26352== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26352== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26352== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26352== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26352== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26352== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26352== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26352== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26352== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26352== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26352== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26352== by 0x40BB675: trace_state (lj_trace.c:690)
==26352== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26352== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26352== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26352== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26352== by 0x407FA29: lua_resume (lj_api.c:1296)
==26352== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26352== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26352== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26352== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26352== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26352== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26352== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26352== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26352== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26352== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26352== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26352== by 0x8062D5B: main (nginx.c:385)
==26352==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 5: multiple captures (with o) - status code ok got: ''
expected: '200'
034-match.t TEST 5: multiple captures (with o) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 5: multiple captures (with o) ==26373== Invalid read of size 4
==26373== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26373== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26373== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26373== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26373== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26373== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26373== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26373== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26373== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26373== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26373== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26373== by 0x8062D5B: main (nginx.c:385)
==26373== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26373==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 5: multiple captures (with o) ==26373==
==26373== Process terminating with default action of signal 11 (SIGSEGV)
==26373== Access not within mapped region at address 0x0
==26373== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26373== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26373== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26373== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26373== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26373== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26373== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26373== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26373== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26373== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26373== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26373== by 0x8062D5B: main (nginx.c:385)
==26373== If you believe this happened as a result of a stack
==26373== overflow in your program's main thread (unlikely but
==26373== possible), you can try to increase the size of the
==26373== main thread stack using the --main-stacksize= flag.
==26373== The main thread stack size used in this run was 8388608.
==26373== 1,024 bytes in 1 blocks are definitely lost in loss record 2,892 of 3,018
==26373== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26373== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26373== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26373== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26373== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26373== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26373== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26373== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26373== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26373== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26373== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26373== by 0x40BB675: trace_state (lj_trace.c:690)
==26373== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26373== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26373== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26373== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26373== by 0x407FA29: lua_resume (lj_api.c:1296)
==26373== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26373== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26373== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26373== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26373== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26373== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26373== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26373== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26373== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26373== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26373== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26373== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26373== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26373== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26373== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26373== by 0x8062D5B: main (nginx.c:385)
==26373==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 5: multiple captures (with o) - status code ok got: ''
expected: '200'
034-match.t TEST 5: multiple captures (with o) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 23: match (look-behind assertion) ==26384== Invalid read of size 4
==26384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26384== by 0x8062D5B: main (nginx.c:385)
==26384== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26384==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 23: match (look-behind assertion) ==26384==
==26384== Process terminating with default action of signal 11 (SIGSEGV)
==26384== Access not within mapped region at address 0x0
==26384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26384== by 0x8062D5B: main (nginx.c:385)
==26384== If you believe this happened as a result of a stack
==26384== overflow in your program's main thread (unlikely but
==26384== possible), you can try to increase the size of the
==26384== main thread stack using the --main-stacksize= flag.
==26384== The main thread stack size used in this run was 8388608.
==26384== 1,024 bytes in 1 blocks are definitely lost in loss record 2,872 of 2,996
==26384== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26384== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26384== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26384== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26384== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26384== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26384== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26384== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26384== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26384== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26384== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26384== by 0x40BB675: trace_state (lj_trace.c:690)
==26384== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26384== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26384== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26384== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26384== by 0x407FA29: lua_resume (lj_api.c:1296)
==26384== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26384== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26384== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26384== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26384== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26384== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26384== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26384== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26384== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26384== by 0x8062D5B: main (nginx.c:385)
==26384==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 23: match (look-behind assertion) - status code ok got: ''
expected: '200'
034-match.t TEST 23: match (look-behind assertion) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-bar
-baz
'
034-match.t TEST 23: match (look-behind assertion) ==26406== Invalid read of size 4
==26406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26406== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26406== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26406== by 0x8062D5B: main (nginx.c:385)
==26406== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26406==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 23: match (look-behind assertion) ==26406==
==26406== Process terminating with default action of signal 11 (SIGSEGV)
==26406== Access not within mapped region at address 0x0
==26406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26406== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26406== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26406== by 0x8062D5B: main (nginx.c:385)
==26406== If you believe this happened as a result of a stack
==26406== overflow in your program's main thread (unlikely but
==26406== possible), you can try to increase the size of the
==26406== main thread stack using the --main-stacksize= flag.
==26406== The main thread stack size used in this run was 8388608.
==26406== 1,024 bytes in 1 blocks are definitely lost in loss record 2,872 of 2,996
==26406== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26406== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26406== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26406== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26406== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26406== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26406== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26406== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26406== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26406== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26406== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26406== by 0x40BB675: trace_state (lj_trace.c:690)
==26406== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26406== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26406== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26406== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26406== by 0x407FA29: lua_resume (lj_api.c:1296)
==26406== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26406== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26406== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26406== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26406== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26406== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26406== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26406== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26406== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26406== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26406== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26406== by 0x8062D5B: main (nginx.c:385)
==26406==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 23: match (look-behind assertion) - status code ok got: ''
expected: '200'
034-match.t TEST 23: match (look-behind assertion) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-bar
-baz
'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks ==26418== Invalid read of size 4
==26418== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26418== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26418== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26418== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26418== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26418== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26418== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26418== by 0x8062D5B: main (nginx.c:385)
==26418== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26418==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks ==26418==
==26418== Process terminating with default action of signal 11 (SIGSEGV)
==26418== Access not within mapped region at address 0x0
==26418== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26418== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26418== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26418== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26418== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26418== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26418== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26418== by 0x8062D5B: main (nginx.c:385)
==26418== If you believe this happened as a result of a stack
==26418== overflow in your program's main thread (unlikely but
==26418== possible), you can try to increase the size of the
==26418== main thread stack using the --main-stacksize= flag.
==26418== The main thread stack size used in this run was 8388608.
==26418== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,869
==26418== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26418== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26418== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26418== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26418== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26418== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26418== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26418== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26418== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26418== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26418== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26418== by 0x40BB675: trace_state (lj_trace.c:690)
==26418== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26418== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26418== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26418== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26418== by 0x407FA29: lua_resume (lj_api.c:1296)
==26418== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26418== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26418== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26418== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26418== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26418== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26418== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26418== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26418== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26418== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26418== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26418== by 0x8062D5B: main (nginx.c:385)
==26418==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks ==26439== Invalid read of size 4
==26439== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26439== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26439== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26439== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26439== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26439== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26439== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26439== by 0x8062D5B: main (nginx.c:385)
==26439== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26439==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks ==26439==
==26439== Process terminating with default action of signal 11 (SIGSEGV)
==26439== Access not within mapped region at address 0x0
==26439== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26439== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26439== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26439== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26439== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26439== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26439== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26439== by 0x8062D5B: main (nginx.c:385)
==26439== If you believe this happened as a result of a stack
==26439== overflow in your program's main thread (unlikely but
==26439== possible), you can try to increase the size of the
==26439== main thread stack using the --main-stacksize= flag.
==26439== The main thread stack size used in this run was 8388608.
==26439== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,869
==26439== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26439== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26439== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26439== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26439== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26439== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26439== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26439== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26439== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26439== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26439== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26439== by 0x40BB675: trace_state (lj_trace.c:690)
==26439== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26439== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26439== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26439== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26439== by 0x407FA29: lua_resume (lj_api.c:1296)
==26439== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26439== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26439== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26439== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26439== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26439== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26439== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26439== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26439== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26439== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26439== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26439== by 0x8062D5B: main (nginx.c:385)
==26439==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 35: Javascript compatible mode ==26451== Invalid read of size 4
==26451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26451== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26451== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26451== by 0x8062D5B: main (nginx.c:385)
==26451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 35: Javascript compatible mode ==26451==
==26451== Process terminating with default action of signal 11 (SIGSEGV)
==26451== Access not within mapped region at address 0x0
==26451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26451== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26451== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26451== by 0x8062D5B: main (nginx.c:385)
==26451== If you believe this happened as a result of a stack
==26451== overflow in your program's main thread (unlikely but
==26451== possible), you can try to increase the size of the
==26451== main thread stack using the --main-stacksize= flag.
==26451== The main thread stack size used in this run was 8388608.
==26451== 1,024 bytes in 1 blocks are definitely lost in loss record 2,660 of 2,742
==26451== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26451== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26451== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26451== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26451== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26451== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26451== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26451== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26451== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26451== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26451== by 0x40BB675: trace_state (lj_trace.c:690)
==26451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26451== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26451== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26451== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26451== by 0x407FA29: lua_resume (lj_api.c:1296)
==26451== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26451== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26451== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26451== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26451== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26451== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26451== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26451== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26451== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26451== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26451== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26451== by 0x8062D5B: main (nginx.c:385)
==26451==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 35: Javascript compatible mode - status code ok got: ''
expected: '200'
034-match.t TEST 35: Javascript compatible mode - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'matched: ç« 
'
034-match.t TEST 35: Javascript compatible mode ==26472== Invalid read of size 4
==26472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26472== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26472== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26472== by 0x8062D5B: main (nginx.c:385)
==26472== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26472==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 35: Javascript compatible mode ==26472==
==26472== Process terminating with default action of signal 11 (SIGSEGV)
==26472== Access not within mapped region at address 0x0
==26472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26472== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26472== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26472== by 0x8062D5B: main (nginx.c:385)
==26472== If you believe this happened as a result of a stack
==26472== overflow in your program's main thread (unlikely but
==26472== possible), you can try to increase the size of the
==26472== main thread stack using the --main-stacksize= flag.
==26472== The main thread stack size used in this run was 8388608.
==26472== 1,024 bytes in 1 blocks are definitely lost in loss record 2,660 of 2,742
==26472== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26472== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26472== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26472== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26472== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26472== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26472== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26472== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26472== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26472== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26472== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26472== by 0x40BB675: trace_state (lj_trace.c:690)
==26472== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26472== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26472== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26472== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26472== by 0x407FA29: lua_resume (lj_api.c:1296)
==26472== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26472== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26472== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26472== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26472== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26472== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26472== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26472== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26472== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26472== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26472== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26472== by 0x8062D5B: main (nginx.c:385)
==26472==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 35: Javascript compatible mode - status code ok got: ''
expected: '200'
034-match.t TEST 35: Javascript compatible mode - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'matched: ç« 
'
034-match.t TEST 28: bug report (github issue #72) ==26484== Invalid read of size 4
==26484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26484== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26484== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26484== by 0x8062D5B: main (nginx.c:385)
==26484== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26484==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 28: bug report (github issue #72) ==26484==
==26484== Process terminating with default action of signal 11 (SIGSEGV)
==26484== Access not within mapped region at address 0x0
==26484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26484== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26484== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26484== by 0x8062D5B: main (nginx.c:385)
==26484== If you believe this happened as a result of a stack
==26484== overflow in your program's main thread (unlikely but
==26484== possible), you can try to increase the size of the
==26484== main thread stack using the --main-stacksize= flag.
==26484== The main thread stack size used in this run was 8388608.
==26484== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,859
==26484== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26484== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26484== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26484== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26484== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26484== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26484== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26484== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26484== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26484== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26484== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26484== by 0x40BB675: trace_state (lj_trace.c:690)
==26484== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26484== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26484== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26484== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26484== by 0x407FA29: lua_resume (lj_api.c:1296)
==26484== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26484== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26484== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26484== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26484== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26484== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26484== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26484== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26484== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26484== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26484== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26484== by 0x8062D5B: main (nginx.c:385)
==26484==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 28: bug report (github issue \#72) - status code ok got: ''
expected: '200'
034-match.t TEST 28: bug report (github issue \#72) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-done: yes
-done: no
'
034-match.t TEST 28: bug report (github issue #72) ==26505== Invalid read of size 4
==26505== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26505== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26505== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26505== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26505== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26505== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26505== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26505== by 0x8062D5B: main (nginx.c:385)
==26505== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26505==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 28: bug report (github issue #72) ==26505==
==26505== Process terminating with default action of signal 11 (SIGSEGV)
==26505== Access not within mapped region at address 0x0
==26505== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26505== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26505== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26505== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26505== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26505== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26505== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26505== by 0x8062D5B: main (nginx.c:385)
==26505== If you believe this happened as a result of a stack
==26505== overflow in your program's main thread (unlikely but
==26505== possible), you can try to increase the size of the
==26505== main thread stack using the --main-stacksize= flag.
==26505== The main thread stack size used in this run was 8388608.
==26505== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,859
==26505== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26505== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26505== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26505== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26505== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26505== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26505== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26505== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26505== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26505== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26505== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26505== by 0x40BB675: trace_state (lj_trace.c:690)
==26505== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26505== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26505== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26505== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26505== by 0x407FA29: lua_resume (lj_api.c:1296)
==26505== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26505== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26505== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26505== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26505== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26505== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26505== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26505== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26505== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26505== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26505== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26505== by 0x8062D5B: main (nginx.c:385)
==26505==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 28: bug report (github issue \#72) - status code ok got: ''
expected: '200'
034-match.t TEST 28: bug report (github issue \#72) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-done: yes
-done: no
'
034-match.t TEST 14: extended mode (ignore whitespaces) ==26517== Invalid read of size 4
==26517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26517== by 0x8062D5B: main (nginx.c:385)
==26517== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26517==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 14: extended mode (ignore whitespaces) ==26517==
==26517== Process terminating with default action of signal 11 (SIGSEGV)
==26517== Access not within mapped region at address 0x0
==26517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26517== by 0x8062D5B: main (nginx.c:385)
==26517== If you believe this happened as a result of a stack
==26517== overflow in your program's main thread (unlikely but
==26517== possible), you can try to increase the size of the
==26517== main thread stack using the --main-stacksize= flag.
==26517== The main thread stack size used in this run was 8388608.
==26517== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==26517== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26517== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26517== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26517== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26517== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26517== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26517== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26517== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26517== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26517== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26517== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26517== by 0x40BB675: trace_state (lj_trace.c:690)
==26517== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26517== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26517== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26517== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26517== by 0x407FA29: lua_resume (lj_api.c:1296)
==26517== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26517== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26517== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26517== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26517== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26517== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26517== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26517== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26517== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26517== by 0x8062D5B: main (nginx.c:385)
==26517==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 14: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 14: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'he
'
034-match.t TEST 14: extended mode (ignore whitespaces) ==26538== Invalid read of size 4
==26538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26538== by 0x8062D5B: main (nginx.c:385)
==26538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 14: extended mode (ignore whitespaces) ==26538==
==26538== Process terminating with default action of signal 11 (SIGSEGV)
==26538== Access not within mapped region at address 0x0
==26538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26538== by 0x8062D5B: main (nginx.c:385)
==26538== If you believe this happened as a result of a stack
==26538== overflow in your program's main thread (unlikely but
==26538== possible), you can try to increase the size of the
==26538== main thread stack using the --main-stacksize= flag.
==26538== The main thread stack size used in this run was 8388608.
==26538== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==26538== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26538== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26538== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26538== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26538== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26538== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26538== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26538== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26538== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26538== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26538== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26538== by 0x40BB675: trace_state (lj_trace.c:690)
==26538== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26538== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26538== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26538== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26538== by 0x407FA29: lua_resume (lj_api.c:1296)
==26538== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26538== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26538== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26538== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26538== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26538== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26538== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26538== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26538== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26538== by 0x8062D5B: main (nginx.c:385)
==26538==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 14: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 14: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'he
'
034-match.t TEST 40: just hit match limit ==26550== Invalid read of size 4
==26550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26550== by 0x8062D5B: main (nginx.c:385)
==26550== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26550==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 40: just hit match limit ==26550==
==26550== Process terminating with default action of signal 11 (SIGSEGV)
==26550== Access not within mapped region at address 0x0
==26550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26550== by 0x8062D5B: main (nginx.c:385)
==26550== If you believe this happened as a result of a stack
==26550== overflow in your program's main thread (unlikely but
==26550== possible), you can try to increase the size of the
==26550== main thread stack using the --main-stacksize= flag.
==26550== The main thread stack size used in this run was 8388608.
==26550== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,873
==26550== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26550== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26550== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26550== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26550== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26550== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26550== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26550== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26550== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26550== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26550== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26550== by 0x40BB675: trace_state (lj_trace.c:690)
==26550== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26550== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26550== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26550== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26550== by 0x407FA29: lua_resume (lj_api.c:1296)
==26550== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26550== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26550== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==26550== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26550== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26550== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26550== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26550== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26550== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26550== by 0x8062D5B: main (nginx.c:385)
==26550==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 40: just hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 40: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
034-match.t TEST 40: just hit match limit ==26571== Invalid read of size 4
==26571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26571== by 0x8062D5B: main (nginx.c:385)
==26571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 40: just hit match limit ==26571==
==26571== Process terminating with default action of signal 11 (SIGSEGV)
==26571== Access not within mapped region at address 0x0
==26571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26571== by 0x8062D5B: main (nginx.c:385)
==26571== If you believe this happened as a result of a stack
==26571== overflow in your program's main thread (unlikely but
==26571== possible), you can try to increase the size of the
==26571== main thread stack using the --main-stacksize= flag.
==26571== The main thread stack size used in this run was 8388608.
==26571== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,873
==26571== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26571== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26571== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26571== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26571== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26571== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26571== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26571== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26571== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26571== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26571== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26571== by 0x40BB675: trace_state (lj_trace.c:690)
==26571== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26571== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26571== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26571== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26571== by 0x407FA29: lua_resume (lj_api.c:1296)
==26571== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26571== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26571== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==26571== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26571== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26571== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26571== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26571== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26571== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26571== by 0x8062D5B: main (nginx.c:385)
==26571==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 40: just hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 40: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
034-match.t TEST 11: multi-line mode (. does not match \n) ==26584== Invalid read of size 4
==26584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26584== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26584== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26584== by 0x8062D5B: main (nginx.c:385)
==26584== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26584==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 11: multi-line mode (. does not match \n) ==26584==
==26584== Process terminating with default action of signal 11 (SIGSEGV)
==26584== Access not within mapped region at address 0x0
==26584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26584== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26584== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26584== by 0x8062D5B: main (nginx.c:385)
==26584== If you believe this happened as a result of a stack
==26584== overflow in your program's main thread (unlikely but
==26584== possible), you can try to increase the size of the
==26584== main thread stack using the --main-stacksize= flag.
==26584== The main thread stack size used in this run was 8388608.
==26584== 1,024 bytes in 1 blocks are definitely lost in loss record 2,773 of 2,880
==26584== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26584== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26584== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26584== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26584== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26584== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26584== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26584== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26584== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26584== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26584== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26584== by 0x40BB675: trace_state (lj_trace.c:690)
==26584== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26584== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26584== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26584== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26584== by 0x407FA29: lua_resume (lj_api.c:1296)
==26584== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26584== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26584== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26584== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26584== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26584== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26584== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26584== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26584== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26584== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26584== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26584== by 0x8062D5B: main (nginx.c:385)
==26584==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 11: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
034-match.t TEST 11: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
034-match.t TEST 11: multi-line mode (. does not match \n) ==26605== Invalid read of size 4
==26605== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26605== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26605== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26605== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26605== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26605== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26605== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26605== by 0x8062D5B: main (nginx.c:385)
==26605== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26605==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 11: multi-line mode (. does not match \n) ==26605==
==26605== Process terminating with default action of signal 11 (SIGSEGV)
==26605== Access not within mapped region at address 0x0
==26605== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26605== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26605== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26605== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26605== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26605== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26605== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26605== by 0x8062D5B: main (nginx.c:385)
==26605== If you believe this happened as a result of a stack
==26605== overflow in your program's main thread (unlikely but
==26605== possible), you can try to increase the size of the
==26605== main thread stack using the --main-stacksize= flag.
==26605== The main thread stack size used in this run was 8388608.
==26605== 1,024 bytes in 1 blocks are definitely lost in loss record 2,773 of 2,880
==26605== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26605== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26605== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26605== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26605== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26605== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26605== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26605== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26605== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26605== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26605== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26605== by 0x40BB675: trace_state (lj_trace.c:690)
==26605== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26605== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26605== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26605== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26605== by 0x407FA29: lua_resume (lj_api.c:1296)
==26605== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26605== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26605== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26605== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26605== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26605== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26605== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26605== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26605== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26605== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26605== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26605== by 0x8062D5B: main (nginx.c:385)
==26605==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 11: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
034-match.t TEST 11: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
034-match.t TEST 37: bad UTF-8 ==26617== Invalid read of size 4
==26617== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26617== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26617== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26617== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26617== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26617== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26617== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26617== by 0x8062D5B: main (nginx.c:385)
==26617== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26617==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 37: bad UTF-8 ==26617==
==26617== Process terminating with default action of signal 11 (SIGSEGV)
==26617== Access not within mapped region at address 0x0
==26617== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26617== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26617== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26617== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26617== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26617== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26617== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26617== by 0x8062D5B: main (nginx.c:385)
==26617== If you believe this happened as a result of a stack
==26617== overflow in your program's main thread (unlikely but
==26617== possible), you can try to increase the size of the
==26617== main thread stack using the --main-stacksize= flag.
==26617== The main thread stack size used in this run was 8388608.
==26617== 1,024 bytes in 1 blocks are definitely lost in loss record 2,856 of 2,979
==26617== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26617== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26617== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26617== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26617== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26617== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26617== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26617== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26617== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26617== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26617== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26617== by 0x40BB675: trace_state (lj_trace.c:690)
==26617== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26617== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26617== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26617== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26617== by 0x407FA29: lua_resume (lj_api.c:1296)
==26617== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26617== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26617== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26617== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26617== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26617== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26617== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26617== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26617== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26617== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26617== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26617== by 0x8062D5B: main (nginx.c:385)
==26617==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 37: bad UTF-8 - status code ok got: ''
expected: '200'
034-match.t TEST 37: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
034-match.t TEST 37: bad UTF-8 ==26638== Invalid read of size 4
==26638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26638== by 0x8062D5B: main (nginx.c:385)
==26638== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26638==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 37: bad UTF-8 ==26638==
==26638== Process terminating with default action of signal 11 (SIGSEGV)
==26638== Access not within mapped region at address 0x0
==26638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26638== by 0x8062D5B: main (nginx.c:385)
==26638== If you believe this happened as a result of a stack
==26638== overflow in your program's main thread (unlikely but
==26638== possible), you can try to increase the size of the
==26638== main thread stack using the --main-stacksize= flag.
==26638== The main thread stack size used in this run was 8388608.
==26638== 1,024 bytes in 1 blocks are definitely lost in loss record 2,856 of 2,979
==26638== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26638== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26638== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26638== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26638== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26638== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26638== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26638== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26638== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26638== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26638== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26638== by 0x40BB675: trace_state (lj_trace.c:690)
==26638== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26638== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26638== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26638== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26638== by 0x407FA29: lua_resume (lj_api.c:1296)
==26638== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26638== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26638== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26638== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26638== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26638== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26638== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26638== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26638== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26638== by 0x8062D5B: main (nginx.c:385)
==26638==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 37: bad UTF-8 - status code ok got: ''
expected: '200'
034-match.t TEST 37: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
034-match.t TEST 31: duplicate named subpatterns w/ extraction ==26650== Invalid read of size 4
==26650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26650== by 0x8062D5B: main (nginx.c:385)
==26650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 31: duplicate named subpatterns w/ extraction ==26650==
==26650== Process terminating with default action of signal 11 (SIGSEGV)
==26650== Access not within mapped region at address 0x0
==26650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26650== by 0x8062D5B: main (nginx.c:385)
==26650== If you believe this happened as a result of a stack
==26650== overflow in your program's main thread (unlikely but
==26650== possible), you can try to increase the size of the
==26650== main thread stack using the --main-stacksize= flag.
==26650== The main thread stack size used in this run was 8388608.
==26650== 1,024 bytes in 1 blocks are definitely lost in loss record 2,827 of 2,947
==26650== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26650== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26650== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26650== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26650== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26650== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26650== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26650== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26650== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26650== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26650== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26650== by 0x40BB675: trace_state (lj_trace.c:690)
==26650== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26650== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26650== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26650== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26650== by 0x407FA29: lua_resume (lj_api.c:1296)
==26650== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26650== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26650== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26650== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26650== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26650== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26650== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26650== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26650== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26650== by 0x8062D5B: main (nginx.c:385)
==26650==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 31: duplicate named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 31: duplicate named subpatterns w/ extraction - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-1234
-hello-1234
'
034-match.t TEST 31: duplicate named subpatterns w/ extraction ==26671== Invalid read of size 4
==26671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26671== by 0x8062D5B: main (nginx.c:385)
==26671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 31: duplicate named subpatterns w/ extraction ==26671==
==26671== Process terminating with default action of signal 11 (SIGSEGV)
==26671== Access not within mapped region at address 0x0
==26671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26671== by 0x8062D5B: main (nginx.c:385)
==26671== If you believe this happened as a result of a stack
==26671== overflow in your program's main thread (unlikely but
==26671== possible), you can try to increase the size of the
==26671== main thread stack using the --main-stacksize= flag.
==26671== The main thread stack size used in this run was 8388608.
==26671== 1,024 bytes in 1 blocks are definitely lost in loss record 2,827 of 2,947
==26671== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26671== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26671== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26671== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26671== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26671== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26671== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26671== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26671== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26671== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26671== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26671== by 0x40BB675: trace_state (lj_trace.c:690)
==26671== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26671== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26671== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26671== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26671== by 0x407FA29: lua_resume (lj_api.c:1296)
==26671== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26671== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26671== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26671== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26671== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26671== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26671== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26671== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26671== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26671== by 0x8062D5B: main (nginx.c:385)
==26671==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 31: duplicate named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 31: duplicate named subpatterns w/ extraction - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-1234
-hello-1234
'
034-match.t TEST 13: single-line mode (dot all) ==26683== Invalid read of size 4
==26683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26683== by 0x8062D5B: main (nginx.c:385)
==26683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 13: single-line mode (dot all) ==26683==
==26683== Process terminating with default action of signal 11 (SIGSEGV)
==26683== Access not within mapped region at address 0x0
==26683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26683== by 0x8062D5B: main (nginx.c:385)
==26683== If you believe this happened as a result of a stack
==26683== overflow in your program's main thread (unlikely but
==26683== possible), you can try to increase the size of the
==26683== main thread stack using the --main-stacksize= flag.
==26683== The main thread stack size used in this run was 8388608.
==26683== 1,024 bytes in 1 blocks are definitely lost in loss record 2,908 of 3,037
==26683== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26683== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26683== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26683== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26683== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26683== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26683== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26683== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26683== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26683== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26683== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26683== by 0x40BB675: trace_state (lj_trace.c:690)
==26683== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26683== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26683== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26683== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26683== by 0x407FA29: lua_resume (lj_api.c:1296)
==26683== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26683== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26683== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26683== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26683== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26683== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26683== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26683== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26683== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26683== by 0x8062D5B: main (nginx.c:385)
==26683==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 13: single-line mode (dot all) - status code ok got: ''
expected: '200'
034-match.t TEST 13: single-line mode (dot all) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
034-match.t TEST 13: single-line mode (dot all) ==26704== Invalid read of size 4
==26704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26704== by 0x8062D5B: main (nginx.c:385)
==26704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 13: single-line mode (dot all) ==26704==
==26704== Process terminating with default action of signal 11 (SIGSEGV)
==26704== Access not within mapped region at address 0x0
==26704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26704== by 0x8062D5B: main (nginx.c:385)
==26704== If you believe this happened as a result of a stack
==26704== overflow in your program's main thread (unlikely but
==26704== possible), you can try to increase the size of the
==26704== main thread stack using the --main-stacksize= flag.
==26704== The main thread stack size used in this run was 8388608.
==26704== 1,024 bytes in 1 blocks are definitely lost in loss record 2,908 of 3,037
==26704== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26704== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26704== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26704== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26704== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26704== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26704== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26704== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26704== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26704== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26704== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26704== by 0x40BB675: trace_state (lj_trace.c:690)
==26704== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26704== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26704== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26704== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26704== by 0x407FA29: lua_resume (lj_api.c:1296)
==26704== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26704== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26704== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26704== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26704== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26704== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26704== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26704== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26704== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26704== by 0x8062D5B: main (nginx.c:385)
==26704==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 13: single-line mode (dot all) - status code ok got: ''
expected: '200'
034-match.t TEST 13: single-line mode (dot all) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
034-match.t TEST 18: optional trailing captures ==26716== Invalid read of size 4
==26716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26716== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26716== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26716== by 0x8062D5B: main (nginx.c:385)
==26716== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26716==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 18: optional trailing captures ==26716==
==26716== Process terminating with default action of signal 11 (SIGSEGV)
==26716== Access not within mapped region at address 0x0
==26716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26716== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26716== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26716== by 0x8062D5B: main (nginx.c:385)
==26716== If you believe this happened as a result of a stack
==26716== overflow in your program's main thread (unlikely but
==26716== possible), you can try to increase the size of the
==26716== main thread stack using the --main-stacksize= flag.
==26716== The main thread stack size used in this run was 8388608.
==26716== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,871
==26716== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26716== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26716== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26716== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26716== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26716== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26716== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26716== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26716== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26716== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26716== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26716== by 0x40BB675: trace_state (lj_trace.c:690)
==26716== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26716== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26716== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26716== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26716== by 0x407FA29: lua_resume (lj_api.c:1296)
==26716== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26716== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26716== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26716== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26716== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26716== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26716== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26716== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26716== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26716== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26716== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26716== by 0x8062D5B: main (nginx.c:385)
==26716==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 18: optional trailing captures - status code ok got: ''
expected: '200'
034-match.t TEST 18: optional trailing captures - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-1234
-1234
-
'
034-match.t TEST 18: optional trailing captures ==26737== Invalid read of size 4
==26737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26737== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26737== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26737== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26737== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26737== by 0x8062D5B: main (nginx.c:385)
==26737== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26737==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 18: optional trailing captures ==26737==
==26737== Process terminating with default action of signal 11 (SIGSEGV)
==26737== Access not within mapped region at address 0x0
==26737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26737== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26737== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26737== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26737== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26737== by 0x8062D5B: main (nginx.c:385)
==26737== If you believe this happened as a result of a stack
==26737== overflow in your program's main thread (unlikely but
==26737== possible), you can try to increase the size of the
==26737== main thread stack using the --main-stacksize= flag.
==26737== The main thread stack size used in this run was 8388608.
==26737== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,871
==26737== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26737== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26737== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26737== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26737== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26737== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26737== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26737== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26737== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26737== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26737== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26737== by 0x40BB675: trace_state (lj_trace.c:690)
==26737== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26737== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26737== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26737== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26737== by 0x407FA29: lua_resume (lj_api.c:1296)
==26737== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26737== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26737== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26737== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26737== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26737== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26737== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26737== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26737== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26737== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26737== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26737== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26737== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26737== by 0x8062D5B: main (nginx.c:385)
==26737==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 18: optional trailing captures - status code ok got: ''
expected: '200'
034-match.t TEST 18: optional trailing captures - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-1234
-1234
-
'
034-match.t TEST 21: match with ctx but no pos ==26749== Invalid read of size 4
==26749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26749== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26749== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26749== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26749== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26749== by 0x8062D5B: main (nginx.c:385)
==26749== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26749==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 21: match with ctx but no pos ==26749==
==26749== Process terminating with default action of signal 11 (SIGSEGV)
==26749== Access not within mapped region at address 0x0
==26749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26749== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26749== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26749== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26749== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26749== by 0x8062D5B: main (nginx.c:385)
==26749== If you believe this happened as a result of a stack
==26749== overflow in your program's main thread (unlikely but
==26749== possible), you can try to increase the size of the
==26749== main thread stack using the --main-stacksize= flag.
==26749== The main thread stack size used in this run was 8388608.
==26749== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,869
==26749== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26749== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26749== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26749== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26749== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26749== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26749== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26749== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26749== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26749== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26749== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26749== by 0x40BB675: trace_state (lj_trace.c:690)
==26749== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26749== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26749== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26749== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26749== by 0x407FA29: lua_resume (lj_api.c:1296)
==26749== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26749== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26749== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26749== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26749== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26749== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26749== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26749== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26749== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26749== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26749== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26749== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26749== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26749== by 0x8062D5B: main (nginx.c:385)
==26749==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 21: match with ctx but no pos - status code ok got: ''
expected: '200'
034-match.t TEST 21: match with ctx but no pos - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1234
-5
'
034-match.t TEST 21: match with ctx but no pos ==26770== Invalid read of size 4
==26770== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26770== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26770== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26770== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26770== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26770== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26770== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26770== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26770== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26770== by 0x8062D5B: main (nginx.c:385)
==26770== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26770==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 21: match with ctx but no pos ==26770==
==26770== Process terminating with default action of signal 11 (SIGSEGV)
==26770== Access not within mapped region at address 0x0
==26770== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26770== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26770== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26770== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26770== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26770== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26770== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26770== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26770== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26770== by 0x8062D5B: main (nginx.c:385)
==26770== If you believe this happened as a result of a stack
==26770== overflow in your program's main thread (unlikely but
==26770== possible), you can try to increase the size of the
==26770== main thread stack using the --main-stacksize= flag.
==26770== The main thread stack size used in this run was 8388608.
==26770== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,869
==26770== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26770== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26770== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26770== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26770== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26770== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26770== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26770== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26770== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26770== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26770== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26770== by 0x40BB675: trace_state (lj_trace.c:690)
==26770== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26770== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26770== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26770== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26770== by 0x407FA29: lua_resume (lj_api.c:1296)
==26770== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26770== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26770== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26770== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26770== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26770== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26770== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26770== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26770== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26770== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26770== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26770== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26770== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26770== by 0x8062D5B: main (nginx.c:385)
==26770==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 21: match with ctx but no pos - status code ok got: ''
expected: '200'
034-match.t TEST 21: match with ctx but no pos - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1234
-5
'
034-match.t TEST 22: match with ctx and a pos ==26789== Invalid read of size 4
==26789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26789== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26789== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26789== by 0x8062D5B: main (nginx.c:385)
==26789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 22: match with ctx and a pos ==26789==
==26789== Process terminating with default action of signal 11 (SIGSEGV)
==26789== Access not within mapped region at address 0x0
==26789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26789== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26789== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26789== by 0x8062D5B: main (nginx.c:385)
==26789== If you believe this happened as a result of a stack
==26789== overflow in your program's main thread (unlikely but
==26789== possible), you can try to increase the size of the
==26789== main thread stack using the --main-stacksize= flag.
==26789== The main thread stack size used in this run was 8388608.
==26789== 1,024 bytes in 1 blocks are definitely lost in loss record 2,772 of 2,878
==26789== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26789== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26789== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26789== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26789== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26789== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26789== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26789== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26789== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26789== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26789== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26789== by 0x40BB675: trace_state (lj_trace.c:690)
==26789== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26789== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26789== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26789== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26789== by 0x407FA29: lua_resume (lj_api.c:1296)
==26789== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26789== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26789== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26789== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26789== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26789== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26789== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26789== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26789== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26789== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26789== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26789== by 0x8062D5B: main (nginx.c:385)
==26789==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 22: match with ctx and a pos - status code ok got: ''
expected: '200'
034-match.t TEST 22: match with ctx and a pos - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-34
-5
'
034-match.t TEST 22: match with ctx and a pos ==26810== Invalid read of size 4
==26810== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26810== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26810== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26810== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26810== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26810== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26810== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26810== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26810== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26810== by 0x8062D5B: main (nginx.c:385)
==26810== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26810==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 22: match with ctx and a pos ==26810==
==26810== Process terminating with default action of signal 11 (SIGSEGV)
==26810== Access not within mapped region at address 0x0
==26810== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26810== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26810== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26810== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26810== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26810== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26810== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26810== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26810== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26810== by 0x8062D5B: main (nginx.c:385)
==26810== If you believe this happened as a result of a stack
==26810== overflow in your program's main thread (unlikely but
==26810== possible), you can try to increase the size of the
==26810== main thread stack using the --main-stacksize= flag.
==26810== The main thread stack size used in this run was 8388608.
==26810== 1,024 bytes in 1 blocks are definitely lost in loss record 2,772 of 2,878
==26810== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26810== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26810== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26810== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26810== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26810== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26810== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26810== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26810== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26810== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26810== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26810== by 0x40BB675: trace_state (lj_trace.c:690)
==26810== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26810== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26810== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26810== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26810== by 0x407FA29: lua_resume (lj_api.c:1296)
==26810== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26810== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26810== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26810== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26810== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26810== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26810== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26810== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26810== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26810== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26810== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26810== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26810== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26810== by 0x8062D5B: main (nginx.c:385)
==26810==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 22: match with ctx and a pos - status code ok got: ''
expected: '200'
034-match.t TEST 22: match with ctx and a pos - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-34
-5
'
034-match.t TEST 42: extra table argument ==26822== Invalid read of size 4
==26822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26822== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26822== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26822== by 0x8062D5B: main (nginx.c:385)
==26822== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26822==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 42: extra table argument ==26822==
==26822== Process terminating with default action of signal 11 (SIGSEGV)
==26822== Access not within mapped region at address 0x0
==26822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26822== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26822== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26822== by 0x8062D5B: main (nginx.c:385)
==26822== If you believe this happened as a result of a stack
==26822== overflow in your program's main thread (unlikely but
==26822== possible), you can try to increase the size of the
==26822== main thread stack using the --main-stacksize= flag.
==26822== The main thread stack size used in this run was 8388608.
==26822== 1,024 bytes in 1 blocks are definitely lost in loss record 2,777 of 2,884
==26822== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26822== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26822== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26822== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26822== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26822== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26822== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26822== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26822== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26822== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26822== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26822== by 0x40BB675: trace_state (lj_trace.c:690)
==26822== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26822== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26822== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26822== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26822== by 0x407FA29: lua_resume (lj_api.c:1296)
==26822== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26822== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26822== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26822== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26822== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26822== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26822== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26822== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26822== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26822== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26822== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26822== by 0x8062D5B: main (nginx.c:385)
==26822==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 42: extra table argument - status code ok got: ''
expected: '200'
034-match.t TEST 42: extra table argument - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1: m size: 2
-1: res size: 2
-2: m size: 2
-2: res size: 2
'
034-match.t TEST 42: extra table argument ==26843== Invalid read of size 4
==26843== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26843== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26843== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26843== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26843== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26843== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26843== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26843== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26843== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26843== by 0x8062D5B: main (nginx.c:385)
==26843== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26843==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 42: extra table argument ==26843==
==26843== Process terminating with default action of signal 11 (SIGSEGV)
==26843== Access not within mapped region at address 0x0
==26843== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26843== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26843== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26843== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26843== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26843== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26843== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26843== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26843== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26843== by 0x8062D5B: main (nginx.c:385)
==26843== If you believe this happened as a result of a stack
==26843== overflow in your program's main thread (unlikely but
==26843== possible), you can try to increase the size of the
==26843== main thread stack using the --main-stacksize= flag.
==26843== The main thread stack size used in this run was 8388608.
==26843== 1,024 bytes in 1 blocks are definitely lost in loss record 2,777 of 2,884
==26843== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26843== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26843== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26843== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26843== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26843== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26843== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26843== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26843== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26843== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26843== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26843== by 0x40BB675: trace_state (lj_trace.c:690)
==26843== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26843== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26843== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26843== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26843== by 0x407FA29: lua_resume (lj_api.c:1296)
==26843== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26843== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26843== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26843== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26843== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26843== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26843== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26843== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26843== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26843== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26843== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26843== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26843== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26843== by 0x8062D5B: main (nginx.c:385)
==26843==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 42: extra table argument - status code ok got: ''
expected: '200'
034-match.t TEST 42: extra table argument - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1: m size: 2
-1: res size: 2
-2: m size: 2
-2: res size: 2
'
034-match.t TEST 12: single-line mode (^ as normal) ==26855== Invalid read of size 4
==26855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26855== by 0x8062D5B: main (nginx.c:385)
==26855== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26855==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 12: single-line mode (^ as normal) ==26855==
==26855== Process terminating with default action of signal 11 (SIGSEGV)
==26855== Access not within mapped region at address 0x0
==26855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26855== by 0x8062D5B: main (nginx.c:385)
==26855== If you believe this happened as a result of a stack
==26855== overflow in your program's main thread (unlikely but
==26855== possible), you can try to increase the size of the
==26855== main thread stack using the --main-stacksize= flag.
==26855== The main thread stack size used in this run was 8388608.
==26855== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,860
==26855== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26855== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26855== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26855== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26855== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26855== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26855== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26855== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26855== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26855== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26855== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26855== by 0x40BB675: trace_state (lj_trace.c:690)
==26855== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26855== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26855== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26855== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26855== by 0x407FA29: lua_resume (lj_api.c:1296)
==26855== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26855== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26855== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26855== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26855== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26855== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26855== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26855== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26855== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26855== by 0x8062D5B: main (nginx.c:385)
==26855==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 12: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
034-match.t TEST 12: single-line mode (^ as normal) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 12: single-line mode (^ as normal) ==26876== Invalid read of size 4
==26876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26876== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26876== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26876== by 0x8062D5B: main (nginx.c:385)
==26876== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26876==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 12: single-line mode (^ as normal) ==26876==
==26876== Process terminating with default action of signal 11 (SIGSEGV)
==26876== Access not within mapped region at address 0x0
==26876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26876== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26876== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26876== by 0x8062D5B: main (nginx.c:385)
==26876== If you believe this happened as a result of a stack
==26876== overflow in your program's main thread (unlikely but
==26876== possible), you can try to increase the size of the
==26876== main thread stack using the --main-stacksize= flag.
==26876== The main thread stack size used in this run was 8388608.
==26876== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,860
==26876== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26876== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26876== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26876== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26876== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26876== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26876== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26876== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26876== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26876== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26876== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26876== by 0x40BB675: trace_state (lj_trace.c:690)
==26876== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26876== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26876== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26876== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26876== by 0x407FA29: lua_resume (lj_api.c:1296)
==26876== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26876== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26876== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26876== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26876== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26876== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26876== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26876== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26876== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26876== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26876== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26876== by 0x8062D5B: main (nginx.c:385)
==26876==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 12: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
034-match.t TEST 12: single-line mode (^ as normal) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 29: non-empty subject, empty pattern ==26888== Invalid read of size 4
==26888== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26888== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26888== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26888== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26888== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26888== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26888== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26888== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26888== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26888== by 0x8062D5B: main (nginx.c:385)
==26888== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26888==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 29: non-empty subject, empty pattern ==26888==
==26888== Process terminating with default action of signal 11 (SIGSEGV)
==26888== Access not within mapped region at address 0x0
==26888== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26888== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26888== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26888== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26888== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26888== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26888== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26888== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26888== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26888== by 0x8062D5B: main (nginx.c:385)
==26888== If you believe this happened as a result of a stack
==26888== overflow in your program's main thread (unlikely but
==26888== possible), you can try to increase the size of the
==26888== main thread stack using the --main-stacksize= flag.
==26888== The main thread stack size used in this run was 8388608.
==26888== 1,024 bytes in 1 blocks are definitely lost in loss record 2,911 of 3,039
==26888== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26888== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26888== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26888== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26888== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26888== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26888== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26888== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26888== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26888== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26888== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26888== by 0x40BB675: trace_state (lj_trace.c:690)
==26888== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26888== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26888== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26888== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26888== by 0x407FA29: lua_resume (lj_api.c:1296)
==26888== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26888== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26888== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26888== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26888== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26888== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26888== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26888== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26888== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26888== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26888== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26888== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26888== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26888== by 0x8062D5B: main (nginx.c:385)
==26888==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 29: non-empty subject, empty pattern - status code ok got: ''
expected: '200'
034-match.t TEST 29: non-empty subject, empty pattern - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-pos: 1
-m:
'
034-match.t TEST 29: non-empty subject, empty pattern ==26909== Invalid read of size 4
==26909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26909== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26909== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26909== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26909== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26909== by 0x8062D5B: main (nginx.c:385)
==26909== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26909==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 29: non-empty subject, empty pattern ==26909==
==26909== Process terminating with default action of signal 11 (SIGSEGV)
==26909== Access not within mapped region at address 0x0
==26909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26909== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26909== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26909== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26909== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26909== by 0x8062D5B: main (nginx.c:385)
==26909== If you believe this happened as a result of a stack
==26909== overflow in your program's main thread (unlikely but
==26909== possible), you can try to increase the size of the
==26909== main thread stack using the --main-stacksize= flag.
==26909== The main thread stack size used in this run was 8388608.
==26909== 1,024 bytes in 1 blocks are definitely lost in loss record 2,911 of 3,039
==26909== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26909== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26909== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26909== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26909== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26909== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26909== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26909== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26909== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26909== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26909== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26909== by 0x40BB675: trace_state (lj_trace.c:690)
==26909== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26909== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26909== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26909== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26909== by 0x407FA29: lua_resume (lj_api.c:1296)
==26909== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26909== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26909== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26909== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26909== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26909== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26909== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26909== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26909== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26909== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26909== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26909== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26909== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26909== by 0x8062D5B: main (nginx.c:385)
==26909==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 29: non-empty subject, empty pattern - status code ok got: ''
expected: '200'
034-match.t TEST 29: non-empty subject, empty pattern - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-pos: 1
-m:
'
034-match.t TEST 41: just not hit match limit ==26921== Invalid read of size 4
==26921== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26921== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26921== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26921== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26921== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26921== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26921== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26921== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26921== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26921== by 0x8062D5B: main (nginx.c:385)
==26921== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26921==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 41: just not hit match limit ==26921==
==26921== Process terminating with default action of signal 11 (SIGSEGV)
==26921== Access not within mapped region at address 0x0
==26921== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26921== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26921== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26921== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26921== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26921== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26921== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26921== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26921== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26921== by 0x8062D5B: main (nginx.c:385)
==26921== If you believe this happened as a result of a stack
==26921== overflow in your program's main thread (unlikely but
==26921== possible), you can try to increase the size of the
==26921== main thread stack using the --main-stacksize= flag.
==26921== The main thread stack size used in this run was 8388608.
==26921== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==26921== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26921== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26921== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26921== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26921== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26921== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26921== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26921== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26921== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26921== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26921== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26921== by 0x40BB675: trace_state (lj_trace.c:690)
==26921== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26921== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26921== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26921== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26921== by 0x407FA29: lua_resume (lj_api.c:1296)
==26921== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26921== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26921== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==26921== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26921== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26921== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26921== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26921== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26921== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26921== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26921== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26921== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26921== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26921== by 0x8062D5B: main (nginx.c:385)
==26921==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 41: just not hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 41: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
034-match.t TEST 41: just not hit match limit ==26942== Invalid read of size 4
==26942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26942== by 0x8062D5B: main (nginx.c:385)
==26942== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26942==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 41: just not hit match limit ==26942==
==26942== Process terminating with default action of signal 11 (SIGSEGV)
==26942== Access not within mapped region at address 0x0
==26942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26942== by 0x8062D5B: main (nginx.c:385)
==26942== If you believe this happened as a result of a stack
==26942== overflow in your program's main thread (unlikely but
==26942== possible), you can try to increase the size of the
==26942== main thread stack using the --main-stacksize= flag.
==26942== The main thread stack size used in this run was 8388608.
==26942== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==26942== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26942== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26942== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26942== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26942== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26942== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26942== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26942== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26942== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26942== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26942== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26942== by 0x40BB675: trace_state (lj_trace.c:690)
==26942== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26942== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26942== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26942== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26942== by 0x407FA29: lua_resume (lj_api.c:1296)
==26942== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26942== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26942== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==26942== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26942== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26942== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26942== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26942== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26942== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26942== by 0x8062D5B: main (nginx.c:385)
==26942==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 41: just not hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 41: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
034-match.t TEST 6: not matched ==26955== Invalid read of size 4
==26955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26955== by 0x8062D5B: main (nginx.c:385)
==26955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 6: not matched ==26955==
==26955== Process terminating with default action of signal 11 (SIGSEGV)
==26955== Access not within mapped region at address 0x0
==26955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26955== by 0x8062D5B: main (nginx.c:385)
==26955== If you believe this happened as a result of a stack
==26955== overflow in your program's main thread (unlikely but
==26955== possible), you can try to increase the size of the
==26955== main thread stack using the --main-stacksize= flag.
==26955== The main thread stack size used in this run was 8388608.
==26955== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==26955== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26955== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26955== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26955== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26955== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26955== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26955== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26955== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26955== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26955== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26955== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26955== by 0x40BB675: trace_state (lj_trace.c:690)
==26955== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26955== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26955== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26955== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26955== by 0x407FA29: lua_resume (lj_api.c:1296)
==26955== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26955== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26955== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26955== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26955== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26955== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26955== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26955== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26955== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26955== by 0x8062D5B: main (nginx.c:385)
==26955==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 6: not matched - status code ok got: ''
expected: '200'
034-match.t TEST 6: not matched - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 6: not matched ==26976== Invalid read of size 4
==26976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26976== by 0x8062D5B: main (nginx.c:385)
==26976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 6: not matched ==26976==
==26976== Process terminating with default action of signal 11 (SIGSEGV)
==26976== Access not within mapped region at address 0x0
==26976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26976== by 0x8062D5B: main (nginx.c:385)
==26976== If you believe this happened as a result of a stack
==26976== overflow in your program's main thread (unlikely but
==26976== possible), you can try to increase the size of the
==26976== main thread stack using the --main-stacksize= flag.
==26976== The main thread stack size used in this run was 8388608.
==26976== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==26976== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26976== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26976== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26976== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26976== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26976== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26976== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26976== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26976== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26976== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26976== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26976== by 0x40BB675: trace_state (lj_trace.c:690)
==26976== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26976== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26976== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26976== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26976== by 0x407FA29: lua_resume (lj_api.c:1296)
==26976== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26976== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26976== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26976== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26976== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26976== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26976== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26976== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26976== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26976== by 0x8062D5B: main (nginx.c:385)
==26976==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 6: not matched - status code ok got: ''
expected: '200'
034-match.t TEST 6: not matched - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 36: empty duplicate captures ==26988== Invalid read of size 4
==26988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26988== by 0x8062D5B: main (nginx.c:385)
==26988== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26988==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 36: empty duplicate captures ==26988==
==26988== Process terminating with default action of signal 11 (SIGSEGV)
==26988== Access not within mapped region at address 0x0
==26988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26988== by 0x8062D5B: main (nginx.c:385)
==26988== If you believe this happened as a result of a stack
==26988== overflow in your program's main thread (unlikely but
==26988== possible), you can try to increase the size of the
==26988== main thread stack using the --main-stacksize= flag.
==26988== The main thread stack size used in this run was 8388608.
==26988== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==26988== at 0x402C768: realloc (vg_replace_malloc.c:834)
==26988== by 0x40CC146: mem_alloc (lib_aux.c:335)
==26988== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==26988== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==26988== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==26988== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==26988== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==26988== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==26988== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==26988== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26988== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==26988== by 0x40BB675: trace_state (lj_trace.c:690)
==26988== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26988== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==26988== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==26988== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==26988== by 0x407FA29: lua_resume (lj_api.c:1296)
==26988== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==26988== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==26988== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==26988== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==26988== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==26988== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==26988== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==26988== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==26988== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==26988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26988== by 0x8062D5B: main (nginx.c:385)
==26988==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 36: empty duplicate captures - status code ok got: ''
expected: '200'
034-match.t TEST 36: empty duplicate captures - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-nil
'
034-match.t TEST 36: empty duplicate captures ==27009== Invalid read of size 4
==27009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27009== by 0x8062D5B: main (nginx.c:385)
==27009== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27009==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 36: empty duplicate captures ==27009==
==27009== Process terminating with default action of signal 11 (SIGSEGV)
==27009== Access not within mapped region at address 0x0
==27009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27009== by 0x8062D5B: main (nginx.c:385)
==27009== If you believe this happened as a result of a stack
==27009== overflow in your program's main thread (unlikely but
==27009== possible), you can try to increase the size of the
==27009== main thread stack using the --main-stacksize= flag.
==27009== The main thread stack size used in this run was 8388608.
==27009== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==27009== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27009== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27009== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27009== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27009== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27009== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27009== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27009== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27009== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27009== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27009== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27009== by 0x40BB675: trace_state (lj_trace.c:690)
==27009== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27009== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27009== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27009== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27009== by 0x407FA29: lua_resume (lj_api.c:1296)
==27009== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27009== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27009== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27009== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27009== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27009== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27009== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27009== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27009== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27009== by 0x8062D5B: main (nginx.c:385)
==27009==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 36: empty duplicate captures - status code ok got: ''
expected: '200'
034-match.t TEST 36: empty duplicate captures - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-nil
-nil
'
034-match.t TEST 25: long brackets ==27021== Invalid read of size 4
==27021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27021== by 0x8062D5B: main (nginx.c:385)
==27021== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27021==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 25: long brackets ==27021==
==27021== Process terminating with default action of signal 11 (SIGSEGV)
==27021== Access not within mapped region at address 0x0
==27021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27021== by 0x8062D5B: main (nginx.c:385)
==27021== If you believe this happened as a result of a stack
==27021== overflow in your program's main thread (unlikely but
==27021== possible), you can try to increase the size of the
==27021== main thread stack using the --main-stacksize= flag.
==27021== The main thread stack size used in this run was 8388608.
==27021== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,863
==27021== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27021== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27021== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27021== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27021== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27021== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27021== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27021== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27021== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27021== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27021== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27021== by 0x40BB675: trace_state (lj_trace.c:690)
==27021== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27021== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27021== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27021== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27021== by 0x407FA29: lua_resume (lj_api.c:1296)
==27021== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27021== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27021== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27021== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27021== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27021== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27021== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27021== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27021== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27021== by 0x8062D5B: main (nginx.c:385)
==27021==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 25: long brackets - status code ok got: ''
expected: '200'
034-match.t TEST 25: long brackets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 25: long brackets ==27042== Invalid read of size 4
==27042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27042== by 0x8062D5B: main (nginx.c:385)
==27042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 25: long brackets ==27042==
==27042== Process terminating with default action of signal 11 (SIGSEGV)
==27042== Access not within mapped region at address 0x0
==27042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27042== by 0x8062D5B: main (nginx.c:385)
==27042== If you believe this happened as a result of a stack
==27042== overflow in your program's main thread (unlikely but
==27042== possible), you can try to increase the size of the
==27042== main thread stack using the --main-stacksize= flag.
==27042== The main thread stack size used in this run was 8388608.
==27042== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,863
==27042== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27042== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27042== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27042== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27042== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27042== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27042== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27042== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27042== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27042== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27042== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27042== by 0x40BB675: trace_state (lj_trace.c:690)
==27042== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27042== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27042== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27042== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27042== by 0x407FA29: lua_resume (lj_api.c:1296)
==27042== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27042== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27042== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27042== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27042== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27042== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27042== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27042== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27042== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27042== by 0x8062D5B: main (nginx.c:385)
==27042==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 25: long brackets - status code ok got: ''
expected: '200'
034-match.t TEST 25: long brackets - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 10: multi-line mode (^ at line head) ==27054== Invalid read of size 4
==27054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27054== by 0x8062D5B: main (nginx.c:385)
==27054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 10: multi-line mode (^ at line head) ==27054==
==27054== Process terminating with default action of signal 11 (SIGSEGV)
==27054== Access not within mapped region at address 0x0
==27054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27054== by 0x8062D5B: main (nginx.c:385)
==27054== If you believe this happened as a result of a stack
==27054== overflow in your program's main thread (unlikely but
==27054== possible), you can try to increase the size of the
==27054== main thread stack using the --main-stacksize= flag.
==27054== The main thread stack size used in this run was 8388608.
==27054== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27054== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27054== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27054== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27054== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27054== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27054== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27054== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27054== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27054== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27054== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27054== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27054== by 0x40BB675: trace_state (lj_trace.c:690)
==27054== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27054== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27054== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27054== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27054== by 0x407FA29: lua_resume (lj_api.c:1296)
==27054== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27054== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27054== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27054== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27054== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27054== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27054== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27054== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27054== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27054== by 0x8062D5B: main (nginx.c:385)
==27054==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 10: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
034-match.t TEST 10: multi-line mode (^ at line head) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'world
'
034-match.t TEST 10: multi-line mode (^ at line head) ==27075== Invalid read of size 4
==27075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27075== by 0x8062D5B: main (nginx.c:385)
==27075== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27075==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 10: multi-line mode (^ at line head) ==27075==
==27075== Process terminating with default action of signal 11 (SIGSEGV)
==27075== Access not within mapped region at address 0x0
==27075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27075== by 0x8062D5B: main (nginx.c:385)
==27075== If you believe this happened as a result of a stack
==27075== overflow in your program's main thread (unlikely but
==27075== possible), you can try to increase the size of the
==27075== main thread stack using the --main-stacksize= flag.
==27075== The main thread stack size used in this run was 8388608.
==27075== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27075== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27075== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27075== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27075== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27075== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27075== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27075== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27075== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27075== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27075== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27075== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27075== by 0x40BB675: trace_state (lj_trace.c:690)
==27075== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27075== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27075== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27075== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27075== by 0x407FA29: lua_resume (lj_api.c:1296)
==27075== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27075== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27075== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27075== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27075== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27075== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27075== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27075== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27075== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27075== by 0x8062D5B: main (nginx.c:385)
==27075==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 10: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
034-match.t TEST 10: multi-line mode (^ at line head) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'world
'
034-match.t TEST 2: escaping sequences ==27087== Invalid read of size 4
==27087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27087== by 0x8062D5B: main (nginx.c:385)
==27087== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27087==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 2: escaping sequences ==27087==
==27087== Process terminating with default action of signal 11 (SIGSEGV)
==27087== Access not within mapped region at address 0x0
==27087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27087== by 0x8062D5B: main (nginx.c:385)
==27087== If you believe this happened as a result of a stack
==27087== overflow in your program's main thread (unlikely but
==27087== possible), you can try to increase the size of the
==27087== main thread stack using the --main-stacksize= flag.
==27087== The main thread stack size used in this run was 8388608.
==27087== 1,024 bytes in 1 blocks are definitely lost in loss record 2,904 of 3,032
==27087== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27087== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27087== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27087== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27087== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27087== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27087== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27087== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27087== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27087== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27087== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27087== by 0x40BB675: trace_state (lj_trace.c:690)
==27087== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27087== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27087== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27087== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27087== by 0x407FA29: lua_resume (lj_api.c:1296)
==27087== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27087== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27087== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27087== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27087== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27087== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27087== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27087== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27087== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27087== by 0x8062D5B: main (nginx.c:385)
==27087==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 2: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 2: escaping sequences - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 2: escaping sequences ==27108== Invalid read of size 4
==27108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27108== by 0x8062D5B: main (nginx.c:385)
==27108== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27108==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 2: escaping sequences ==27108==
==27108== Process terminating with default action of signal 11 (SIGSEGV)
==27108== Access not within mapped region at address 0x0
==27108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27108== by 0x8062D5B: main (nginx.c:385)
==27108== If you believe this happened as a result of a stack
==27108== overflow in your program's main thread (unlikely but
==27108== possible), you can try to increase the size of the
==27108== main thread stack using the --main-stacksize= flag.
==27108== The main thread stack size used in this run was 8388608.
==27108== 1,024 bytes in 1 blocks are definitely lost in loss record 2,904 of 3,032
==27108== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27108== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27108== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27108== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27108== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27108== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27108== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27108== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27108== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27108== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27108== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27108== by 0x40BB675: trace_state (lj_trace.c:690)
==27108== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27108== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27108== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27108== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27108== by 0x407FA29: lua_resume (lj_api.c:1296)
==27108== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27108== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27108== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27108== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27108== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27108== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27108== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27108== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27108== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27108== by 0x8062D5B: main (nginx.c:385)
==27108==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 2: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 2: escaping sequences - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 20: anchored match (succeeded) ==27120== Invalid read of size 4
==27120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27120== by 0x8062D5B: main (nginx.c:385)
==27120== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 20: anchored match (succeeded) ==27120==
==27120== Process terminating with default action of signal 11 (SIGSEGV)
==27120== Access not within mapped region at address 0x0
==27120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27120== by 0x8062D5B: main (nginx.c:385)
==27120== If you believe this happened as a result of a stack
==27120== overflow in your program's main thread (unlikely but
==27120== possible), you can try to increase the size of the
==27120== main thread stack using the --main-stacksize= flag.
==27120== The main thread stack size used in this run was 8388608.
==27120== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27120== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27120== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27120== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27120== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27120== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27120== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27120== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27120== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27120== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27120== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27120== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27120== by 0x40BB675: trace_state (lj_trace.c:690)
==27120== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27120== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27120== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27120== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27120== by 0x407FA29: lua_resume (lj_api.c:1296)
==27120== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27120== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27120== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27120== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27120== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27120== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27120== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27120== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27120== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27120== by 0x8062D5B: main (nginx.c:385)
==27120==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 20: anchored match (succeeded) - status code ok got: ''
expected: '200'
034-match.t TEST 20: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 20: anchored match (succeeded) ==27141== Invalid read of size 4
==27141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27141== by 0x8062D5B: main (nginx.c:385)
==27141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 20: anchored match (succeeded) ==27141==
==27141== Process terminating with default action of signal 11 (SIGSEGV)
==27141== Access not within mapped region at address 0x0
==27141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27141== by 0x8062D5B: main (nginx.c:385)
==27141== If you believe this happened as a result of a stack
==27141== overflow in your program's main thread (unlikely but
==27141== possible), you can try to increase the size of the
==27141== main thread stack using the --main-stacksize= flag.
==27141== The main thread stack size used in this run was 8388608.
==27141== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27141== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27141== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27141== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27141== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27141== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27141== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27141== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27141== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27141== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27141== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27141== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27141== by 0x40BB675: trace_state (lj_trace.c:690)
==27141== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27141== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27141== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27141== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27141== by 0x407FA29: lua_resume (lj_api.c:1296)
==27141== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27141== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27141== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27141== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27141== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27141== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27141== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27141== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27141== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27141== by 0x8062D5B: main (nginx.c:385)
==27141==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 20: anchored match (succeeded) - status code ok got: ''
expected: '200'
034-match.t TEST 20: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 3: single capture ==27153== Invalid read of size 4
==27153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27153== by 0x8062D5B: main (nginx.c:385)
==27153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 3: single capture ==27153==
==27153== Process terminating with default action of signal 11 (SIGSEGV)
==27153== Access not within mapped region at address 0x0
==27153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27153== by 0x8062D5B: main (nginx.c:385)
==27153== If you believe this happened as a result of a stack
==27153== overflow in your program's main thread (unlikely but
==27153== possible), you can try to increase the size of the
==27153== main thread stack using the --main-stacksize= flag.
==27153== The main thread stack size used in this run was 8388608.
==27153== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,870
==27153== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27153== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27153== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27153== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27153== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27153== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27153== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27153== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27153== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27153== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27153== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27153== by 0x40BB675: trace_state (lj_trace.c:690)
==27153== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27153== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27153== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27153== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27153== by 0x407FA29: lua_resume (lj_api.c:1296)
==27153== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27153== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27153== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27153== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27153== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27153== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27153== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27153== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27153== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27153== by 0x8062D5B: main (nginx.c:385)
==27153==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 3: single capture - status code ok got: ''
expected: '200'
034-match.t TEST 3: single capture - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1234
-12
'
034-match.t TEST 3: single capture ==27174== Invalid read of size 4
==27174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27174== by 0x8062D5B: main (nginx.c:385)
==27174== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27174==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 3: single capture ==27174==
==27174== Process terminating with default action of signal 11 (SIGSEGV)
==27174== Access not within mapped region at address 0x0
==27174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27174== by 0x8062D5B: main (nginx.c:385)
==27174== If you believe this happened as a result of a stack
==27174== overflow in your program's main thread (unlikely but
==27174== possible), you can try to increase the size of the
==27174== main thread stack using the --main-stacksize= flag.
==27174== The main thread stack size used in this run was 8388608.
==27174== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,870
==27174== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27174== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27174== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27174== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27174== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27174== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27174== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27174== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27174== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27174== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27174== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27174== by 0x40BB675: trace_state (lj_trace.c:690)
==27174== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27174== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27174== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27174== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27174== by 0x407FA29: lua_resume (lj_api.c:1296)
==27174== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27174== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27174== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27174== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27174== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27174== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27174== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27174== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27174== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27174== by 0x8062D5B: main (nginx.c:385)
==27174==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 3: single capture - status code ok got: ''
expected: '200'
034-match.t TEST 3: single capture - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1234
-12
'
034-match.t TEST 33: named captures are nil ==27186== Invalid read of size 4
==27186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27186== by 0x8062D5B: main (nginx.c:385)
==27186== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27186==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 33: named captures are nil ==27186==
==27186== Process terminating with default action of signal 11 (SIGSEGV)
==27186== Access not within mapped region at address 0x0
==27186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27186== by 0x8062D5B: main (nginx.c:385)
==27186== If you believe this happened as a result of a stack
==27186== overflow in your program's main thread (unlikely but
==27186== possible), you can try to increase the size of the
==27186== main thread stack using the --main-stacksize= flag.
==27186== The main thread stack size used in this run was 8388608.
==27186== 1,024 bytes in 1 blocks are definitely lost in loss record 2,773 of 2,880
==27186== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27186== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27186== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27186== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27186== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27186== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27186== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27186== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27186== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27186== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27186== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27186== by 0x40BB675: trace_state (lj_trace.c:690)
==27186== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27186== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27186== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27186== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27186== by 0x407FA29: lua_resume (lj_api.c:1296)
==27186== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27186== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27186== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27186== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27186== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27186== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27186== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27186== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27186== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27186== by 0x8062D5B: main (nginx.c:385)
==27186==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 33: named captures are nil - status code ok got: ''
expected: '200'
034-match.t TEST 33: named captures are nil - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-hello
-false
-hello
-false
-false
'
034-match.t TEST 33: named captures are nil ==27207== Invalid read of size 4
==27207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27207== by 0x8062D5B: main (nginx.c:385)
==27207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 33: named captures are nil ==27207==
==27207== Process terminating with default action of signal 11 (SIGSEGV)
==27207== Access not within mapped region at address 0x0
==27207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27207== by 0x8062D5B: main (nginx.c:385)
==27207== If you believe this happened as a result of a stack
==27207== overflow in your program's main thread (unlikely but
==27207== possible), you can try to increase the size of the
==27207== main thread stack using the --main-stacksize= flag.
==27207== The main thread stack size used in this run was 8388608.
==27207== 1,024 bytes in 1 blocks are definitely lost in loss record 2,773 of 2,880
==27207== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27207== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27207== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27207== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27207== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27207== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27207== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27207== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27207== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27207== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27207== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27207== by 0x40BB675: trace_state (lj_trace.c:690)
==27207== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27207== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27207== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27207== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27207== by 0x407FA29: lua_resume (lj_api.c:1296)
==27207== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27207== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27207== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27207== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27207== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27207== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27207== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27207== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27207== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27207== by 0x8062D5B: main (nginx.c:385)
==27207==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 33: named captures are nil - status code ok got: ''
expected: '200'
034-match.t TEST 33: named captures are nil - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-hello
-false
-hello
-false
-false
'
034-match.t TEST 9: UTF-8 mode ==27219== Invalid read of size 4
==27219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27219== by 0x8062D5B: main (nginx.c:385)
==27219== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27219==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 9: UTF-8 mode ==27219==
==27219== Process terminating with default action of signal 11 (SIGSEGV)
==27219== Access not within mapped region at address 0x0
==27219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27219== by 0x8062D5B: main (nginx.c:385)
==27219== If you believe this happened as a result of a stack
==27219== overflow in your program's main thread (unlikely but
==27219== possible), you can try to increase the size of the
==27219== main thread stack using the --main-stacksize= flag.
==27219== The main thread stack size used in this run was 8388608.
==27219== 1,024 bytes in 1 blocks are definitely lost in loss record 2,860 of 2,982
==27219== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27219== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27219== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27219== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27219== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27219== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27219== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27219== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27219== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27219== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27219== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27219== by 0x40BB675: trace_state (lj_trace.c:690)
==27219== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27219== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27219== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27219== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27219== by 0x407FA29: lua_resume (lj_api.c:1296)
==27219== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27219== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27219== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27219== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27219== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27219== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27219== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27219== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27219== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27219== by 0x8062D5B: main (nginx.c:385)
==27219==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 9: UTF-8 mode - status code ok got: ''
expected: '200'
034-match.t TEST 9: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
034-match.t TEST 9: UTF-8 mode ==27253== Invalid read of size 4
==27253== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27253== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27253== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27253== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27253== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27253== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27253== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27253== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27253== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27253== by 0x8062D5B: main (nginx.c:385)
==27253== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27253==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 9: UTF-8 mode ==27253==
==27253== Process terminating with default action of signal 11 (SIGSEGV)
==27253== Access not within mapped region at address 0x0
==27253== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27253== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27253== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27253== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27253== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27253== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27253== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27253== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27253== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27253== by 0x8062D5B: main (nginx.c:385)
==27253== If you believe this happened as a result of a stack
==27253== overflow in your program's main thread (unlikely but
==27253== possible), you can try to increase the size of the
==27253== main thread stack using the --main-stacksize= flag.
==27253== The main thread stack size used in this run was 8388608.
==27253== 1,024 bytes in 1 blocks are definitely lost in loss record 2,860 of 2,982
==27253== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27253== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27253== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27253== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27253== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27253== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27253== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27253== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27253== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27253== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27253== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27253== by 0x40BB675: trace_state (lj_trace.c:690)
==27253== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27253== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27253== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27253== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27253== by 0x407FA29: lua_resume (lj_api.c:1296)
==27253== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27253== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27253== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27253== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27253== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27253== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27253== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27253== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27253== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27253== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27253== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27253== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27253== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27253== by 0x8062D5B: main (nginx.c:385)
==27253==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 9: UTF-8 mode - status code ok got: ''
expected: '200'
034-match.t TEST 9: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
034-match.t TEST 16: bad option ==27265== Invalid read of size 4
==27265== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27265== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27265== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27265== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27265== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27265== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27265== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27265== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27265== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27265== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27265== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27265== by 0x8062D5B: main (nginx.c:385)
==27265== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27265==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 16: bad option ==27265==
==27265== Process terminating with default action of signal 11 (SIGSEGV)
==27265== Access not within mapped region at address 0x0
==27265== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27265== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27265== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27265== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27265== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27265== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27265== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27265== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27265== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27265== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27265== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27265== by 0x8062D5B: main (nginx.c:385)
==27265== If you believe this happened as a result of a stack
==27265== overflow in your program's main thread (unlikely but
==27265== possible), you can try to increase the size of the
==27265== main thread stack using the --main-stacksize= flag.
==27265== The main thread stack size used in this run was 8388608.

034-match.t TEST 16: bad option - status code ok got: ''
expected: '200'
034-match.t TEST 16: bad option - response_body_like - response is expected () ''
doesn't match '(?^s:error: .*?unknown flag "H" \(flags "Hm"\))'
034-match.t TEST 16: bad option ==27286== Invalid read of size 4
==27286== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27286== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27286== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27286== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27286== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27286== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27286== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27286== by 0x8062D5B: main (nginx.c:385)
==27286== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27286==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 16: bad option ==27286==
==27286== Process terminating with default action of signal 11 (SIGSEGV)
==27286== Access not within mapped region at address 0x0
==27286== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27286== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27286== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27286== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27286== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27286== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27286== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27286== by 0x8062D5B: main (nginx.c:385)
==27286== If you believe this happened as a result of a stack
==27286== overflow in your program's main thread (unlikely but
==27286== possible), you can try to increase the size of the
==27286== main thread stack using the --main-stacksize= flag.
==27286== The main thread stack size used in this run was 8388608.

034-match.t TEST 16: bad option - status code ok got: ''
expected: '200'
034-match.t TEST 16: bad option - response_body_like - response is expected () ''
doesn't match '(?^s:error: .*?unknown flag "H" \(flags "Hm"\))'
034-match.t TEST 26: bad pattern ==27298== Invalid read of size 4
==27298== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27298== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27298== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27298== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27298== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27298== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27298== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27298== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27298== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27298== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27298== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27298== by 0x8062D5B: main (nginx.c:385)
==27298== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27298==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 26: bad pattern ==27298==
==27298== Process terminating with default action of signal 11 (SIGSEGV)
==27298== Access not within mapped region at address 0x0
==27298== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27298== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27298== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27298== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27298== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27298== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27298== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27298== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27298== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27298== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27298== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27298== by 0x8062D5B: main (nginx.c:385)
==27298== If you believe this happened as a result of a stack
==27298== overflow in your program's main thread (unlikely but
==27298== possible), you can try to increase the size of the
==27298== main thread stack using the --main-stacksize= flag.
==27298== The main thread stack size used in this run was 8388608.
==27298== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,868
==27298== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27298== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27298== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27298== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27298== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27298== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27298== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27298== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27298== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27298== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27298== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27298== by 0x40BB675: trace_state (lj_trace.c:690)
==27298== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27298== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27298== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27298== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27298== by 0x407FA29: lua_resume (lj_api.c:1296)
==27298== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27298== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27298== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27298== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27298== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27298== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27298== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27298== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27298== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27298== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27298== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27298== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27298== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27298== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27298== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27298== by 0x8062D5B: main (nginx.c:385)
==27298==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 26: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 26: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "([0-9]+"
'
034-match.t TEST 26: bad pattern ==27319== Invalid read of size 4
==27319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27319== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27319== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27319== by 0x8062D5B: main (nginx.c:385)
==27319== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27319==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 26: bad pattern ==27319==
==27319== Process terminating with default action of signal 11 (SIGSEGV)
==27319== Access not within mapped region at address 0x0
==27319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27319== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27319== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27319== by 0x8062D5B: main (nginx.c:385)
==27319== If you believe this happened as a result of a stack
==27319== overflow in your program's main thread (unlikely but
==27319== possible), you can try to increase the size of the
==27319== main thread stack using the --main-stacksize= flag.
==27319== The main thread stack size used in this run was 8388608.
==27319== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,868
==27319== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27319== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27319== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27319== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27319== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27319== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27319== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27319== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27319== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27319== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27319== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27319== by 0x40BB675: trace_state (lj_trace.c:690)
==27319== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27319== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27319== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27319== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27319== by 0x407FA29: lua_resume (lj_api.c:1296)
==27319== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27319== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27319== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27319== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27319== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27319== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27319== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27319== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27319== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27319== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27319== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27319== by 0x8062D5B: main (nginx.c:385)
==27319==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 26: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 26: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "([0-9]+"
'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks ==27331== Invalid read of size 4
==27331== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27331== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27331== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27331== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27331== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27331== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27331== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27331== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27331== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27331== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27331== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27331== by 0x8062D5B: main (nginx.c:385)
==27331== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27331==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks ==27331==
==27331== Process terminating with default action of signal 11 (SIGSEGV)
==27331== Access not within mapped region at address 0x0
==27331== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27331== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27331== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27331== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27331== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27331== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27331== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27331== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27331== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27331== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27331== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27331== by 0x8062D5B: main (nginx.c:385)
==27331== If you believe this happened as a result of a stack
==27331== overflow in your program's main thread (unlikely but
==27331== possible), you can try to increase the size of the
==27331== main thread stack using the --main-stacksize= flag.
==27331== The main thread stack size used in this run was 8388608.
==27331== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,853
==27331== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27331== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27331== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27331== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27331== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27331== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27331== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27331== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27331== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27331== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27331== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27331== by 0x40BB675: trace_state (lj_trace.c:690)
==27331== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27331== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27331== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27331== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27331== by 0x407FA29: lua_resume (lj_api.c:1296)
==27331== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27331== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27331== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27331== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27331== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27331== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27331== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27331== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27331== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27331== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27331== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27331== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27331== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27331== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27331== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27331== by 0x8062D5B: main (nginx.c:385)
==27331==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks ==27352== Invalid read of size 4
==27352== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27352== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27352== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27352== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27352== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27352== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27352== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27352== by 0x8062D5B: main (nginx.c:385)
==27352== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27352==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks ==27352==
==27352== Process terminating with default action of signal 11 (SIGSEGV)
==27352== Access not within mapped region at address 0x0
==27352== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27352== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27352== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27352== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27352== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27352== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27352== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27352== by 0x8062D5B: main (nginx.c:385)
==27352== If you believe this happened as a result of a stack
==27352== overflow in your program's main thread (unlikely but
==27352== possible), you can try to increase the size of the
==27352== main thread stack using the --main-stacksize= flag.
==27352== The main thread stack size used in this run was 8388608.
==27352== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,853
==27352== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27352== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27352== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27352== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27352== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27352== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27352== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27352== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27352== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27352== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27352== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27352== by 0x40BB675: trace_state (lj_trace.c:690)
==27352== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27352== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27352== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27352== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27352== by 0x407FA29: lua_resume (lj_api.c:1296)
==27352== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27352== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27352== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27352== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27352== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27352== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27352== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27352== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27352== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27352== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27352== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27352== by 0x8062D5B: main (nginx.c:385)
==27352==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 4: multiple captures ==27364== Invalid read of size 4
==27364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27364== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27364== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27364== by 0x8062D5B: main (nginx.c:385)
==27364== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27364==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 4: multiple captures ==27364==
==27364== Process terminating with default action of signal 11 (SIGSEGV)
==27364== Access not within mapped region at address 0x0
==27364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27364== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27364== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27364== by 0x8062D5B: main (nginx.c:385)
==27364== If you believe this happened as a result of a stack
==27364== overflow in your program's main thread (unlikely but
==27364== possible), you can try to increase the size of the
==27364== main thread stack using the --main-stacksize= flag.
==27364== The main thread stack size used in this run was 8388608.
==27364== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27364== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27364== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27364== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27364== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27364== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27364== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27364== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27364== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27364== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27364== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27364== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27364== by 0x40BB675: trace_state (lj_trace.c:690)
==27364== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27364== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27364== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27364== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27364== by 0x407FA29: lua_resume (lj_api.c:1296)
==27364== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27364== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27364== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27364== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27364== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27364== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27364== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27364== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27364== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27364== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27364== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27364== by 0x8062D5B: main (nginx.c:385)
==27364==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 4: multiple captures - status code ok got: ''
expected: '200'
034-match.t TEST 4: multiple captures - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 4: multiple captures ==27385== Invalid read of size 4
==27385== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27385== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27385== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27385== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27385== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27385== by 0x8062D5B: main (nginx.c:385)
==27385== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27385==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 4: multiple captures ==27385==
==27385== Process terminating with default action of signal 11 (SIGSEGV)
==27385== Access not within mapped region at address 0x0
==27385== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27385== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27385== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27385== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27385== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27385== by 0x8062D5B: main (nginx.c:385)
==27385== If you believe this happened as a result of a stack
==27385== overflow in your program's main thread (unlikely but
==27385== possible), you can try to increase the size of the
==27385== main thread stack using the --main-stacksize= flag.
==27385== The main thread stack size used in this run was 8388608.
==27385== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27385== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27385== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27385== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27385== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27385== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27385== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27385== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27385== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27385== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27385== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27385== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27385== by 0x40BB675: trace_state (lj_trace.c:690)
==27385== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27385== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27385== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27385== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27385== by 0x407FA29: lua_resume (lj_api.c:1296)
==27385== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27385== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27385== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27385== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27385== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27385== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27385== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27385== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27385== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27385== by 0x8062D5B: main (nginx.c:385)
==27385==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 4: multiple captures - status code ok got: ''
expected: '200'
034-match.t TEST 4: multiple captures - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 8: case insensitive ==27397== Invalid read of size 4
==27397== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27397== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27397== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27397== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27397== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27397== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27397== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27397== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27397== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27397== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27397== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27397== by 0x8062D5B: main (nginx.c:385)
==27397== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27397==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 8: case insensitive ==27397==
==27397== Process terminating with default action of signal 11 (SIGSEGV)
==27397== Access not within mapped region at address 0x0
==27397== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27397== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27397== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27397== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27397== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27397== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27397== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27397== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27397== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27397== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27397== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27397== by 0x8062D5B: main (nginx.c:385)
==27397== If you believe this happened as a result of a stack
==27397== overflow in your program's main thread (unlikely but
==27397== possible), you can try to increase the size of the
==27397== main thread stack using the --main-stacksize= flag.
==27397== The main thread stack size used in this run was 8388608.
==27397== 1,024 bytes in 1 blocks are definitely lost in loss record 2,926 of 3,056
==27397== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27397== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27397== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27397== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27397== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27397== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27397== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27397== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27397== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27397== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27397== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27397== by 0x40BB675: trace_state (lj_trace.c:690)
==27397== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27397== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27397== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27397== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27397== by 0x407FA29: lua_resume (lj_api.c:1296)
==27397== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27397== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27397== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27397== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27397== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27397== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27397== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27397== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27397== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27397== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27397== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27397== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27397== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27397== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27397== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27397== by 0x8062D5B: main (nginx.c:385)
==27397==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 8: case insensitive - status code ok got: ''
expected: '200'
034-match.t TEST 8: case insensitive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
034-match.t TEST 8: case insensitive ==27418== Invalid read of size 4
==27418== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27418== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27418== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27418== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27418== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27418== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27418== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27418== by 0x8062D5B: main (nginx.c:385)
==27418== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27418==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 8: case insensitive ==27418==
==27418== Process terminating with default action of signal 11 (SIGSEGV)
==27418== Access not within mapped region at address 0x0
==27418== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27418== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27418== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27418== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27418== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27418== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27418== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27418== by 0x8062D5B: main (nginx.c:385)
==27418== If you believe this happened as a result of a stack
==27418== overflow in your program's main thread (unlikely but
==27418== possible), you can try to increase the size of the
==27418== main thread stack using the --main-stacksize= flag.
==27418== The main thread stack size used in this run was 8388608.
==27418== 1,024 bytes in 1 blocks are definitely lost in loss record 2,926 of 3,056
==27418== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27418== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27418== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27418== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27418== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27418== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27418== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27418== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27418== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27418== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27418== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27418== by 0x40BB675: trace_state (lj_trace.c:690)
==27418== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27418== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27418== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27418== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27418== by 0x407FA29: lua_resume (lj_api.c:1296)
==27418== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27418== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27418== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27418== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27418== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27418== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27418== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27418== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27418== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27418== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27418== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27418== by 0x8062D5B: main (nginx.c:385)
==27418==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 8: case insensitive - status code ok got: ''
expected: '200'
034-match.t TEST 8: case insensitive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
034-match.t TEST 7: case sensitive by default ==27430== Invalid read of size 4
==27430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27430== by 0x8062D5B: main (nginx.c:385)
==27430== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27430==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 7: case sensitive by default ==27430==
==27430== Process terminating with default action of signal 11 (SIGSEGV)
==27430== Access not within mapped region at address 0x0
==27430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27430== by 0x8062D5B: main (nginx.c:385)
==27430== If you believe this happened as a result of a stack
==27430== overflow in your program's main thread (unlikely but
==27430== possible), you can try to increase the size of the
==27430== main thread stack using the --main-stacksize= flag.
==27430== The main thread stack size used in this run was 8388608.
==27430== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,860
==27430== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27430== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27430== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27430== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27430== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27430== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27430== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27430== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27430== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27430== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27430== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27430== by 0x40BB675: trace_state (lj_trace.c:690)
==27430== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27430== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27430== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27430== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27430== by 0x407FA29: lua_resume (lj_api.c:1296)
==27430== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27430== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27430== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27430== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27430== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27430== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27430== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27430== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27430== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27430== by 0x8062D5B: main (nginx.c:385)
==27430==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 7: case sensitive by default - status code ok got: ''
expected: '200'
034-match.t TEST 7: case sensitive by default - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 7: case sensitive by default ==27451== Invalid read of size 4
==27451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27451== by 0x8062D5B: main (nginx.c:385)
==27451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 7: case sensitive by default ==27451==
==27451== Process terminating with default action of signal 11 (SIGSEGV)
==27451== Access not within mapped region at address 0x0
==27451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27451== by 0x8062D5B: main (nginx.c:385)
==27451== If you believe this happened as a result of a stack
==27451== overflow in your program's main thread (unlikely but
==27451== possible), you can try to increase the size of the
==27451== main thread stack using the --main-stacksize= flag.
==27451== The main thread stack size used in this run was 8388608.
==27451== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,860
==27451== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27451== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27451== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27451== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27451== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27451== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27451== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27451== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27451== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27451== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27451== by 0x40BB675: trace_state (lj_trace.c:690)
==27451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27451== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27451== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27451== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27451== by 0x407FA29: lua_resume (lj_api.c:1296)
==27451== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27451== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27451== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27451== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27451== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27451== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27451== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27451== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27451== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27451== by 0x8062D5B: main (nginx.c:385)
==27451==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 7: case sensitive by default - status code ok got: ''
expected: '200'
034-match.t TEST 7: case sensitive by default - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 27: long brackets containing [...] ==27463== Invalid read of size 4
==27463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27463== by 0x8062D5B: main (nginx.c:385)
==27463== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27463==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 27: long brackets containing [...] ==27463==
==27463== Process terminating with default action of signal 11 (SIGSEGV)
==27463== Access not within mapped region at address 0x0
==27463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27463== by 0x8062D5B: main (nginx.c:385)
==27463== If you believe this happened as a result of a stack
==27463== overflow in your program's main thread (unlikely but
==27463== possible), you can try to increase the size of the
==27463== main thread stack using the --main-stacksize= flag.
==27463== The main thread stack size used in this run was 8388608.
==27463== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==27463== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27463== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27463== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27463== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27463== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27463== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27463== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27463== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27463== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27463== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27463== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27463== by 0x40BB675: trace_state (lj_trace.c:690)
==27463== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27463== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27463== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27463== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27463== by 0x407FA29: lua_resume (lj_api.c:1296)
==27463== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27463== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27463== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27463== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27463== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27463== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27463== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27463== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27463== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27463== by 0x8062D5B: main (nginx.c:385)
==27463==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 27: long brackets containing [...] - status code ok got: ''
expected: '200'
034-match.t TEST 27: long brackets containing [...] - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 27: long brackets containing [...] ==27484== Invalid read of size 4
==27484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27484== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27484== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27484== by 0x8062D5B: main (nginx.c:385)
==27484== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27484==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 27: long brackets containing [...] ==27484==
==27484== Process terminating with default action of signal 11 (SIGSEGV)
==27484== Access not within mapped region at address 0x0
==27484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27484== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27484== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27484== by 0x8062D5B: main (nginx.c:385)
==27484== If you believe this happened as a result of a stack
==27484== overflow in your program's main thread (unlikely but
==27484== possible), you can try to increase the size of the
==27484== main thread stack using the --main-stacksize= flag.
==27484== The main thread stack size used in this run was 8388608.
==27484== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==27484== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27484== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27484== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27484== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27484== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27484== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27484== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27484== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27484== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27484== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27484== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27484== by 0x40BB675: trace_state (lj_trace.c:690)
==27484== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27484== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27484== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27484== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27484== by 0x407FA29: lua_resume (lj_api.c:1296)
==27484== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27484== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27484== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27484== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27484== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27484== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27484== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27484== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27484== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27484== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27484== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27484== by 0x8062D5B: main (nginx.c:385)
==27484==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 27: long brackets containing [...] - status code ok got: ''
expected: '200'
034-match.t TEST 27: long brackets containing [...] - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 34: duplicate named subpatterns ==27496== Invalid read of size 4
==27496== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27496== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27496== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27496== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27496== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27496== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27496== by 0x8062D5B: main (nginx.c:385)
==27496== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27496==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 34: duplicate named subpatterns ==27496==
==27496== Process terminating with default action of signal 11 (SIGSEGV)
==27496== Access not within mapped region at address 0x0
==27496== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27496== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27496== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27496== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27496== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27496== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27496== by 0x8062D5B: main (nginx.c:385)
==27496== If you believe this happened as a result of a stack
==27496== overflow in your program's main thread (unlikely but
==27496== possible), you can try to increase the size of the
==27496== main thread stack using the --main-stacksize= flag.
==27496== The main thread stack size used in this run was 8388608.
==27496== 1,024 bytes in 1 blocks are definitely lost in loss record 2,900 of 3,028
==27496== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27496== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27496== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27496== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27496== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27496== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27496== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27496== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27496== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27496== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27496== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27496== by 0x40BB675: trace_state (lj_trace.c:690)
==27496== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27496== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27496== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27496== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27496== by 0x407FA29: lua_resume (lj_api.c:1296)
==27496== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27496== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27496== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27496== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27496== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27496== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27496== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27496== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27496== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27496== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27496== by 0x8062D5B: main (nginx.c:385)
==27496==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 34: duplicate named subpatterns - status code ok got: ''
expected: '200'
034-match.t TEST 34: duplicate named subpatterns - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, world
-hello
-world
-hello-world
'
034-match.t TEST 34: duplicate named subpatterns ==27517== Invalid read of size 4
==27517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27517== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27517== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27517== by 0x8062D5B: main (nginx.c:385)
==27517== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27517==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 34: duplicate named subpatterns ==27517==
==27517== Process terminating with default action of signal 11 (SIGSEGV)
==27517== Access not within mapped region at address 0x0
==27517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27517== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27517== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27517== by 0x8062D5B: main (nginx.c:385)
==27517== If you believe this happened as a result of a stack
==27517== overflow in your program's main thread (unlikely but
==27517== possible), you can try to increase the size of the
==27517== main thread stack using the --main-stacksize= flag.
==27517== The main thread stack size used in this run was 8388608.
==27517== 1,024 bytes in 1 blocks are definitely lost in loss record 2,900 of 3,028
==27517== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27517== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27517== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27517== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27517== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27517== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27517== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27517== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27517== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27517== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27517== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27517== by 0x40BB675: trace_state (lj_trace.c:690)
==27517== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27517== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27517== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27517== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27517== by 0x407FA29: lua_resume (lj_api.c:1296)
==27517== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27517== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27517== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27517== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27517== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27517== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27517== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27517== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27517== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27517== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27517== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27517== by 0x8062D5B: main (nginx.c:385)
==27517==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 34: duplicate named subpatterns - status code ok got: ''
expected: '200'
034-match.t TEST 34: duplicate named subpatterns - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, world
-hello
-world
-hello-world
'
034-match.t TEST 32: named captures are empty strings ==27529== Invalid read of size 4
==27529== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27529== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27529== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27529== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27529== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27529== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27529== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27529== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27529== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27529== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27529== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27529== by 0x8062D5B: main (nginx.c:385)
==27529== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27529==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 32: named captures are empty strings ==27529==
==27529== Process terminating with default action of signal 11 (SIGSEGV)
==27529== Access not within mapped region at address 0x0
==27529== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27529== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27529== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27529== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27529== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27529== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27529== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27529== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27529== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27529== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27529== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27529== by 0x8062D5B: main (nginx.c:385)
==27529== If you believe this happened as a result of a stack
==27529== overflow in your program's main thread (unlikely but
==27529== possible), you can try to increase the size of the
==27529== main thread stack using the --main-stacksize= flag.
==27529== The main thread stack size used in this run was 8388608.
==27529== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==27529== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27529== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27529== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27529== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27529== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27529== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27529== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27529== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27529== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27529== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27529== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27529== by 0x40BB675: trace_state (lj_trace.c:690)
==27529== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27529== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27529== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27529== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27529== by 0x407FA29: lua_resume (lj_api.c:1296)
==27529== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27529== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27529== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27529== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27529== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27529== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27529== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27529== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27529== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27529== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27529== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27529== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27529== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27529== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27529== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27529== by 0x8062D5B: main (nginx.c:385)
==27529==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 32: named captures are empty strings - status code ok got: ''
expected: '200'
034-match.t TEST 32: named captures are empty strings - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1234
-
-
-1234
'
034-match.t TEST 32: named captures are empty strings ==27550== Invalid read of size 4
==27550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27550== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27550== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27550== by 0x8062D5B: main (nginx.c:385)
==27550== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27550==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 32: named captures are empty strings ==27550==
==27550== Process terminating with default action of signal 11 (SIGSEGV)
==27550== Access not within mapped region at address 0x0
==27550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27550== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27550== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27550== by 0x8062D5B: main (nginx.c:385)
==27550== If you believe this happened as a result of a stack
==27550== overflow in your program's main thread (unlikely but
==27550== possible), you can try to increase the size of the
==27550== main thread stack using the --main-stacksize= flag.
==27550== The main thread stack size used in this run was 8388608.
==27550== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==27550== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27550== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27550== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27550== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27550== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27550== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27550== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27550== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27550== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27550== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27550== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27550== by 0x40BB675: trace_state (lj_trace.c:690)
==27550== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27550== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27550== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27550== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27550== by 0x407FA29: lua_resume (lj_api.c:1296)
==27550== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27550== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27550== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27550== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27550== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27550== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27550== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27550== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27550== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27550== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27550== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27550== by 0x8062D5B: main (nginx.c:385)
==27550==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 32: named captures are empty strings - status code ok got: ''
expected: '200'
034-match.t TEST 32: named captures are empty strings - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1234
-
-
-1234
'
034-match.t TEST 19: anchored match (failed) ==27562== Invalid read of size 4
==27562== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27562== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27562== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27562== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27562== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27562== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27562== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27562== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27562== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27562== by 0x8062D5B: main (nginx.c:385)
==27562== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27562==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 19: anchored match (failed) ==27562==
==27562== Process terminating with default action of signal 11 (SIGSEGV)
==27562== Access not within mapped region at address 0x0
==27562== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27562== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27562== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27562== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27562== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27562== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27562== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27562== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27562== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27562== by 0x8062D5B: main (nginx.c:385)
==27562== If you believe this happened as a result of a stack
==27562== overflow in your program's main thread (unlikely but
==27562== possible), you can try to increase the size of the
==27562== main thread stack using the --main-stacksize= flag.
==27562== The main thread stack size used in this run was 8388608.
==27562== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,021
==27562== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27562== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27562== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27562== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27562== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27562== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27562== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27562== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27562== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27562== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27562== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27562== by 0x40BB675: trace_state (lj_trace.c:690)
==27562== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27562== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27562== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27562== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27562== by 0x407FA29: lua_resume (lj_api.c:1296)
==27562== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27562== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27562== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27562== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27562== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27562== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27562== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27562== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27562== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27562== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27562== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27562== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27562== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27562== by 0x8062D5B: main (nginx.c:385)
==27562==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 19: anchored match (failed) - status code ok got: ''
expected: '200'
034-match.t TEST 19: anchored match (failed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
034-match.t TEST 19: anchored match (failed) ==27583== Invalid read of size 4
==27583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27583== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27583== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27583== by 0x8062D5B: main (nginx.c:385)
==27583== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27583==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 19: anchored match (failed) ==27583==
==27583== Process terminating with default action of signal 11 (SIGSEGV)
==27583== Access not within mapped region at address 0x0
==27583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27583== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27583== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27583== by 0x8062D5B: main (nginx.c:385)
==27583== If you believe this happened as a result of a stack
==27583== overflow in your program's main thread (unlikely but
==27583== possible), you can try to increase the size of the
==27583== main thread stack using the --main-stacksize= flag.
==27583== The main thread stack size used in this run was 8388608.
==27583== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,021
==27583== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27583== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27583== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27583== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27583== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27583== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27583== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27583== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27583== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27583== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27583== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27583== by 0x40BB675: trace_state (lj_trace.c:690)
==27583== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27583== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27583== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27583== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27583== by 0x407FA29: lua_resume (lj_api.c:1296)
==27583== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27583== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27583== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27583== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27583== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27583== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27583== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27583== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27583== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27583== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27583== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27583== by 0x8062D5B: main (nginx.c:385)
==27583==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 19: anchored match (failed) - status code ok got: ''
expected: '200'
034-match.t TEST 19: anchored match (failed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
034-match.t TEST 17: extended mode (ignore whitespaces) ==27595== Invalid read of size 4
==27595== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27595== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27595== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27595== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27595== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27595== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27595== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27595== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27595== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27595== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27595== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27595== by 0x8062D5B: main (nginx.c:385)
==27595== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27595==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 17: extended mode (ignore whitespaces) ==27595==
==27595== Process terminating with default action of signal 11 (SIGSEGV)
==27595== Access not within mapped region at address 0x0
==27595== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27595== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27595== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27595== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27595== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27595== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27595== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27595== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27595== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27595== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27595== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27595== by 0x8062D5B: main (nginx.c:385)
==27595== If you believe this happened as a result of a stack
==27595== overflow in your program's main thread (unlikely but
==27595== possible), you can try to increase the size of the
==27595== main thread stack using the --main-stacksize= flag.
==27595== The main thread stack size used in this run was 8388608.
==27595== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27595== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27595== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27595== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27595== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27595== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27595== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27595== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27595== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27595== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27595== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27595== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27595== by 0x40BB675: trace_state (lj_trace.c:690)
==27595== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27595== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27595== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27595== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27595== by 0x407FA29: lua_resume (lj_api.c:1296)
==27595== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27595== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27595== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27595== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27595== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27595== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27595== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27595== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27595== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27595== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27595== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27595== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27595== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27595== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27595== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27595== by 0x8062D5B: main (nginx.c:385)
==27595==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 17: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 17: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello
-false
-hello
'
034-match.t TEST 17: extended mode (ignore whitespaces) ==27616== Invalid read of size 4
==27616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27616== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27616== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27616== by 0x8062D5B: main (nginx.c:385)
==27616== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27616==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 17: extended mode (ignore whitespaces) ==27616==
==27616== Process terminating with default action of signal 11 (SIGSEGV)
==27616== Access not within mapped region at address 0x0
==27616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27616== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27616== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27616== by 0x8062D5B: main (nginx.c:385)
==27616== If you believe this happened as a result of a stack
==27616== overflow in your program's main thread (unlikely but
==27616== possible), you can try to increase the size of the
==27616== main thread stack using the --main-stacksize= flag.
==27616== The main thread stack size used in this run was 8388608.
==27616== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,864
==27616== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27616== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27616== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27616== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27616== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27616== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27616== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27616== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27616== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27616== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27616== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27616== by 0x40BB675: trace_state (lj_trace.c:690)
==27616== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27616== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27616== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27616== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27616== by 0x407FA29: lua_resume (lj_api.c:1296)
==27616== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27616== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27616== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27616== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27616== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27616== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27616== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27616== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27616== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27616== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27616== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27616== by 0x8062D5B: main (nginx.c:385)
==27616==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 17: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 17: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello
-false
-hello
'
034-match.t TEST 24: escaping sequences ==27628== Invalid read of size 4
==27628== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27628== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27628== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27628== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27628== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27628== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27628== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27628== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27628== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27628== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27628== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27628== by 0x8062D5B: main (nginx.c:385)
==27628== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27628==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 24: escaping sequences ==27628==
==27628== Process terminating with default action of signal 11 (SIGSEGV)
==27628== Access not within mapped region at address 0x0
==27628== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27628== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27628== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27628== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27628== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27628== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27628== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27628== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27628== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27628== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27628== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27628== by 0x8062D5B: main (nginx.c:385)
==27628== If you believe this happened as a result of a stack
==27628== overflow in your program's main thread (unlikely but
==27628== possible), you can try to increase the size of the
==27628== main thread stack using the --main-stacksize= flag.
==27628== The main thread stack size used in this run was 8388608.
==27628== 1,024 bytes in 1 blocks are definitely lost in loss record 2,801 of 2,906
==27628== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27628== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27628== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27628== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27628== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27628== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27628== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27628== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27628== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27628== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27628== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27628== by 0x40BB675: trace_state (lj_trace.c:690)
==27628== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27628== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27628== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27628== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27628== by 0x407FA29: lua_resume (lj_api.c:1296)
==27628== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27628== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27628== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==27628== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27628== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27628== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27628== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27628== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27628== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27628== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27628== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27628== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27628== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27628== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27628== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27628== by 0x8062D5B: main (nginx.c:385)
==27628==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 24: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 24: escaping sequences - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-regex: (?:>[\w\s]*</?\w{2,}>)
-[>2</impact>]
'
034-match.t TEST 24: escaping sequences ==27649== Invalid read of size 4
==27649== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27649== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27649== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27649== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27649== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27649== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27649== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27649== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27649== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27649== by 0x8062D5B: main (nginx.c:385)
==27649== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27649==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 24: escaping sequences ==27649==
==27649== Process terminating with default action of signal 11 (SIGSEGV)
==27649== Access not within mapped region at address 0x0
==27649== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27649== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27649== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27649== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27649== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27649== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27649== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27649== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27649== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27649== by 0x8062D5B: main (nginx.c:385)
==27649== If you believe this happened as a result of a stack
==27649== overflow in your program's main thread (unlikely but
==27649== possible), you can try to increase the size of the
==27649== main thread stack using the --main-stacksize= flag.
==27649== The main thread stack size used in this run was 8388608.
==27649== 1,024 bytes in 1 blocks are definitely lost in loss record 2,801 of 2,906
==27649== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27649== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27649== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27649== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27649== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27649== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27649== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27649== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27649== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27649== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27649== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27649== by 0x40BB675: trace_state (lj_trace.c:690)
==27649== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27649== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27649== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27649== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27649== by 0x407FA29: lua_resume (lj_api.c:1296)
==27649== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27649== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27649== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==27649== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27649== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27649== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27649== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27649== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27649== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27649== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27649== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27649== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27649== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27649== by 0x8062D5B: main (nginx.c:385)
==27649==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 24: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 24: escaping sequences - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-regex: (?:>[\w\s]*</?\w{2,}>)
-[>2</impact>]
'
034-match.t TEST 30: named subpatterns w/ extraction ==27662== Invalid read of size 4
==27662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27662== by 0x8062D5B: main (nginx.c:385)
==27662== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27662==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 30: named subpatterns w/ extraction ==27662==
==27662== Process terminating with default action of signal 11 (SIGSEGV)
==27662== Access not within mapped region at address 0x0
==27662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27662== by 0x8062D5B: main (nginx.c:385)
==27662== If you believe this happened as a result of a stack
==27662== overflow in your program's main thread (unlikely but
==27662== possible), you can try to increase the size of the
==27662== main thread stack using the --main-stacksize= flag.
==27662== The main thread stack size used in this run was 8388608.
==27662== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,856
==27662== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27662== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27662== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27662== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27662== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27662== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27662== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27662== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27662== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27662== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27662== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27662== by 0x40BB675: trace_state (lj_trace.c:690)
==27662== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27662== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27662== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27662== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27662== by 0x407FA29: lua_resume (lj_api.c:1296)
==27662== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27662== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27662== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27662== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27662== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27662== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27662== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27662== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27662== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27662== by 0x8062D5B: main (nginx.c:385)
==27662==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 30: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 30: named subpatterns w/ extraction - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
034-match.t TEST 30: named subpatterns w/ extraction ==27683== Invalid read of size 4
==27683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27683== by 0x8062D5B: main (nginx.c:385)
==27683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 30: named subpatterns w/ extraction ==27683==
==27683== Process terminating with default action of signal 11 (SIGSEGV)
==27683== Access not within mapped region at address 0x0
==27683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27683== by 0x8062D5B: main (nginx.c:385)
==27683== If you believe this happened as a result of a stack
==27683== overflow in your program's main thread (unlikely but
==27683== possible), you can try to increase the size of the
==27683== main thread stack using the --main-stacksize= flag.
==27683== The main thread stack size used in this run was 8388608.
==27683== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,856
==27683== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27683== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27683== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27683== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27683== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27683== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27683== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27683== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27683== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27683== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27683== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27683== by 0x40BB675: trace_state (lj_trace.c:690)
==27683== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27683== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27683== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27683== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27683== by 0x407FA29: lua_resume (lj_api.c:1296)
==27683== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27683== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27683== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27683== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27683== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27683== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27683== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27683== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27683== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27683== by 0x8062D5B: main (nginx.c:385)
==27683==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 30: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 30: named subpatterns w/ extraction - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
034-match.t TEST 1: sanity ==27695== Invalid read of size 4
==27695== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27695== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27695== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27695== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27695== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27695== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27695== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27695== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27695== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27695== by 0x8062D5B: main (nginx.c:385)
==27695== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27695==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 1: sanity ==27695==
==27695== Process terminating with default action of signal 11 (SIGSEGV)
==27695== Access not within mapped region at address 0x0
==27695== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27695== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27695== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27695== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27695== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27695== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27695== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27695== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27695== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27695== by 0x8062D5B: main (nginx.c:385)
==27695== If you believe this happened as a result of a stack
==27695== overflow in your program's main thread (unlikely but
==27695== possible), you can try to increase the size of the
==27695== main thread stack using the --main-stacksize= flag.
==27695== The main thread stack size used in this run was 8388608.
==27695== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,862
==27695== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27695== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27695== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27695== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27695== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27695== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27695== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27695== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27695== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27695== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27695== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27695== by 0x40BB675: trace_state (lj_trace.c:690)
==27695== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27695== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27695== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27695== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27695== by 0x407FA29: lua_resume (lj_api.c:1296)
==27695== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27695== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27695== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27695== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27695== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27695== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27695== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27695== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27695== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27695== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27695== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27695== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27695== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27695== by 0x8062D5B: main (nginx.c:385)
==27695==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 1: sanity - status code ok got: ''
expected: '200'
034-match.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 1: sanity ==27716== Invalid read of size 4
==27716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27716== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27716== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27716== by 0x8062D5B: main (nginx.c:385)
==27716== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27716==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 1: sanity ==27716==
==27716== Process terminating with default action of signal 11 (SIGSEGV)
==27716== Access not within mapped region at address 0x0
==27716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27716== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27716== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27716== by 0x8062D5B: main (nginx.c:385)
==27716== If you believe this happened as a result of a stack
==27716== overflow in your program's main thread (unlikely but
==27716== possible), you can try to increase the size of the
==27716== main thread stack using the --main-stacksize= flag.
==27716== The main thread stack size used in this run was 8388608.
==27716== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,862
==27716== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27716== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27716== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27716== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27716== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27716== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27716== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27716== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27716== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27716== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27716== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27716== by 0x40BB675: trace_state (lj_trace.c:690)
==27716== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27716== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27716== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27716== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27716== by 0x407FA29: lua_resume (lj_api.c:1296)
==27716== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27716== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27716== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27716== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27716== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27716== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27716== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27716== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27716== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27716== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27716== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27716== by 0x8062D5B: main (nginx.c:385)
==27716==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
034-match.t TEST 1: sanity - status code ok got: ''
expected: '200'
034-match.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27725== Invalid read of size 4
==27725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27725== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==27725== by 0x8062D5B: main (nginx.c:385)
==27725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27725==
==27725== Process terminating with default action of signal 11 (SIGSEGV)
==27725== Access not within mapped region at address 0x0
==27725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27725== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==27725== by 0x8062D5B: main (nginx.c:385)
==27725== If you believe this happened as a result of a stack
==27725== overflow in your program's main thread (unlikely but
==27725== possible), you can try to increase the size of the
==27725== main thread stack using the --main-stacksize= flag.
==27725== The main thread stack size used in this run was 8388608.
==27725== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,860
==27725== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27725== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27725== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27725== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27725== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27725== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27725== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27725== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27725== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27725== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27725== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27725== by 0x40BB675: trace_state (lj_trace.c:690)
==27725== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27725== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27725== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27725== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27725== by 0x407FA29: lua_resume (lj_api.c:1296)
==27725== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27725== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27725== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27725== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27725== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27725== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27725== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27725== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27725== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27725== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==27725== by 0x8062D5B: main (nginx.c:385)
==27725==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27726== Invalid read of size 4
==27726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27726== by 0x8062D5B: main (nginx.c:385)
==27726== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27726==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27726==
==27726== Process terminating with default action of signal 11 (SIGSEGV)
==27726== Access not within mapped region at address 0x0
==27726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27726== by 0x8062D5B: main (nginx.c:385)
==27726== If you believe this happened as a result of a stack
==27726== overflow in your program's main thread (unlikely but
==27726== possible), you can try to increase the size of the
==27726== main thread stack using the --main-stacksize= flag.
==27726== The main thread stack size used in this run was 8388608.
==27726== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,860
==27726== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27726== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27726== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27726== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27726== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27726== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27726== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27726== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27726== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27726== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27726== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27726== by 0x40BB675: trace_state (lj_trace.c:690)
==27726== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27726== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27726== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27726== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27726== by 0x407FA29: lua_resume (lj_api.c:1296)
==27726== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27726== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27726== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27726== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27726== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27726== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27726== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27726== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27726== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27726== by 0x8062D5B: main (nginx.c:385)
==27726==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27727== Invalid read of size 4
==27727== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27727== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27727== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27727== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27727== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27727== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27727== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27727== by 0x8062D5B: main (nginx.c:385)
==27727== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27727==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27727==
==27727== Process terminating with default action of signal 11 (SIGSEGV)
==27727== Access not within mapped region at address 0x0
==27727== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27727== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27727== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27727== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27727== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27727== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27727== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27727== by 0x8062D5B: main (nginx.c:385)
==27727== If you believe this happened as a result of a stack
==27727== overflow in your program's main thread (unlikely but
==27727== possible), you can try to increase the size of the
==27727== main thread stack using the --main-stacksize= flag.
==27727== The main thread stack size used in this run was 8388608.
==27727== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,860
==27727== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27727== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27727== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27727== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27727== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27727== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27727== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27727== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27727== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27727== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27727== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27727== by 0x40BB675: trace_state (lj_trace.c:690)
==27727== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27727== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27727== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27727== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27727== by 0x407FA29: lua_resume (lj_api.c:1296)
==27727== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27727== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27727== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27727== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27727== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27727== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27727== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27727== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27727== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27727== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27727== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27727== by 0x8062D5B: main (nginx.c:385)
==27727==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27728== Invalid read of size 4
==27728== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27728== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27728== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27728== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27728== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27728== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27728== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27728== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27728== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27728== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27728== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27728== by 0x8062D5B: main (nginx.c:385)
==27728== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27728==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27728==
==27728== Process terminating with default action of signal 11 (SIGSEGV)
==27728== Access not within mapped region at address 0x0
==27728== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27728== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27728== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27728== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27728== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27728== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27728== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27728== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27728== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27728== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27728== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27728== by 0x8062D5B: main (nginx.c:385)
==27728== If you believe this happened as a result of a stack
==27728== overflow in your program's main thread (unlikely but
==27728== possible), you can try to increase the size of the
==27728== main thread stack using the --main-stacksize= flag.
==27728== The main thread stack size used in this run was 8388608.
==27728== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,860
==27728== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27728== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27728== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27728== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27728== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27728== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27728== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27728== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27728== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27728== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27728== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27728== by 0x40BB675: trace_state (lj_trace.c:690)
==27728== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27728== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27728== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27728== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27728== by 0x407FA29: lua_resume (lj_api.c:1296)
==27728== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27728== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27728== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27728== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27728== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27728== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27728== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27728== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27728== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27728== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27728== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27728== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27728== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27728== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27728== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27728== by 0x8062D5B: main (nginx.c:385)
==27728==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27729== Invalid read of size 4
==27729== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27729== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27729== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27729== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27729== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27729== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27729== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27729== by 0x8062D5B: main (nginx.c:385)
==27729== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27729==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==27729==
==27729== Process terminating with default action of signal 11 (SIGSEGV)
==27729== Access not within mapped region at address 0x0
==27729== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27729== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27729== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27729== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27729== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27729== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27729== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27729== by 0x8062D5B: main (nginx.c:385)
==27729== If you believe this happened as a result of a stack
==27729== overflow in your program's main thread (unlikely but
==27729== possible), you can try to increase the size of the
==27729== main thread stack using the --main-stacksize= flag.
==27729== The main thread stack size used in this run was 8388608.
==27729== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,860
==27729== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27729== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27729== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27729== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27729== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27729== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27729== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27729== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27729== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27729== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27729== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27729== by 0x40BB675: trace_state (lj_trace.c:690)
==27729== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27729== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27729== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27729== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27729== by 0x407FA29: lua_resume (lj_api.c:1296)
==27729== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27729== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27729== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27729== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27729== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27729== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27729== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27729== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27729== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27729== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27729== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27729== by 0x8062D5B: main (nginx.c:385)
==27729==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate ==27741== Invalid read of size 4
==27741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27741== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27741== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27741== by 0x8062D5B: main (nginx.c:385)
==27741== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27741==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate ==27741==
==27741== Process terminating with default action of signal 11 (SIGSEGV)
==27741== Access not within mapped region at address 0x0
==27741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27741== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27741== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27741== by 0x8062D5B: main (nginx.c:385)
==27741== If you believe this happened as a result of a stack
==27741== overflow in your program's main thread (unlikely but
==27741== possible), you can try to increase the size of the
==27741== main thread stack using the --main-stacksize= flag.
==27741== The main thread stack size used in this run was 8388608.
==27741== 1,024 bytes in 1 blocks are definitely lost in loss record 2,865 of 2,989
==27741== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27741== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27741== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27741== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27741== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27741== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27741== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27741== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27741== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27741== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27741== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27741== by 0x40BB675: trace_state (lj_trace.c:690)
==27741== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27741== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27741== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27741== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27741== by 0x407FA29: lua_resume (lj_api.c:1296)
==27741== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27741== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27741== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27741== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27741== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27741== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27741== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27741== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27741== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27741== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27741== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27741== by 0x8062D5B: main (nginx.c:385)
==27741==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate ==27762== Invalid read of size 4
==27762== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27762== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27762== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27762== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27762== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27762== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27762== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27762== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27762== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27762== by 0x8062D5B: main (nginx.c:385)
==27762== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27762==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate ==27762==
==27762== Process terminating with default action of signal 11 (SIGSEGV)
==27762== Access not within mapped region at address 0x0
==27762== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27762== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27762== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27762== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27762== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27762== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27762== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27762== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27762== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27762== by 0x8062D5B: main (nginx.c:385)
==27762== If you believe this happened as a result of a stack
==27762== overflow in your program's main thread (unlikely but
==27762== possible), you can try to increase the size of the
==27762== main thread stack using the --main-stacksize= flag.
==27762== The main thread stack size used in this run was 8388608.
==27762== 1,024 bytes in 1 blocks are definitely lost in loss record 2,865 of 2,989
==27762== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27762== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27762== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27762== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27762== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27762== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27762== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27762== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27762== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27762== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27762== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27762== by 0x40BB675: trace_state (lj_trace.c:690)
==27762== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27762== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27762== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27762== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27762== by 0x407FA29: lua_resume (lj_api.c:1296)
==27762== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27762== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27762== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27762== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27762== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27762== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27762== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27762== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27762== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27762== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27762== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27762== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27762== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27762== by 0x8062D5B: main (nginx.c:385)
==27762==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate ==27763== Invalid read of size 4
==27763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27763== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27763== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27763== by 0x8062D5B: main (nginx.c:385)
==27763== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27763==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate ==27763==
==27763== Process terminating with default action of signal 11 (SIGSEGV)
==27763== Access not within mapped region at address 0x0
==27763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27763== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27763== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27763== by 0x8062D5B: main (nginx.c:385)
==27763== If you believe this happened as a result of a stack
==27763== overflow in your program's main thread (unlikely but
==27763== possible), you can try to increase the size of the
==27763== main thread stack using the --main-stacksize= flag.
==27763== The main thread stack size used in this run was 8388608.
==27763== 1,024 bytes in 1 blocks are definitely lost in loss record 2,865 of 2,989
==27763== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27763== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27763== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27763== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27763== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27763== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27763== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27763== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27763== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27763== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27763== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27763== by 0x40BB675: trace_state (lj_trace.c:690)
==27763== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27763== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27763== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27763== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27763== by 0x407FA29: lua_resume (lj_api.c:1296)
==27763== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27763== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27763== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27763== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27763== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27763== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27763== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27763== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27763== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27763== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27763== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27763== by 0x8062D5B: main (nginx.c:385)
==27763==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate ==27764== Invalid read of size 4
==27764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27764== by 0x8062D5B: main (nginx.c:385)
==27764== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27764==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate ==27764==
==27764== Process terminating with default action of signal 11 (SIGSEGV)
==27764== Access not within mapped region at address 0x0
==27764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27764== by 0x8062D5B: main (nginx.c:385)
==27764== If you believe this happened as a result of a stack
==27764== overflow in your program's main thread (unlikely but
==27764== possible), you can try to increase the size of the
==27764== main thread stack using the --main-stacksize= flag.
==27764== The main thread stack size used in this run was 8388608.
==27764== 1,024 bytes in 1 blocks are definitely lost in loss record 2,865 of 2,989
==27764== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27764== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27764== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27764== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27764== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27764== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27764== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27764== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27764== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27764== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27764== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27764== by 0x40BB675: trace_state (lj_trace.c:690)
==27764== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27764== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27764== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27764== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27764== by 0x407FA29: lua_resume (lj_api.c:1296)
==27764== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27764== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27764== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27764== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27764== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27764== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27764== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27764== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27764== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27764== by 0x8062D5B: main (nginx.c:385)
==27764==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate ==27765== Invalid read of size 4
==27765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27765== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27765== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27765== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27765== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27765== by 0x8062D5B: main (nginx.c:385)
==27765== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27765==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate ==27765==
==27765== Process terminating with default action of signal 11 (SIGSEGV)
==27765== Access not within mapped region at address 0x0
==27765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27765== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27765== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27765== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27765== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27765== by 0x8062D5B: main (nginx.c:385)
==27765== If you believe this happened as a result of a stack
==27765== overflow in your program's main thread (unlikely but
==27765== possible), you can try to increase the size of the
==27765== main thread stack using the --main-stacksize= flag.
==27765== The main thread stack size used in this run was 8388608.
==27765== 1,024 bytes in 1 blocks are definitely lost in loss record 2,865 of 2,989
==27765== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27765== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27765== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27765== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27765== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27765== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27765== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27765== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27765== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27765== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27765== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27765== by 0x40BB675: trace_state (lj_trace.c:690)
==27765== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27765== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27765== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27765== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27765== by 0x407FA29: lua_resume (lj_api.c:1296)
==27765== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27765== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27765== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27765== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27765== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27765== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27765== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27765== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27765== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27765== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27765== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27765== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27765== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27765== by 0x8062D5B: main (nginx.c:385)
==27765==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27777== Invalid read of size 4
==27777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27777== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27777== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27777== by 0x8062D5B: main (nginx.c:385)
==27777== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27777==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27777==
==27777== Process terminating with default action of signal 11 (SIGSEGV)
==27777== Access not within mapped region at address 0x0
==27777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27777== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27777== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27777== by 0x8062D5B: main (nginx.c:385)
==27777== If you believe this happened as a result of a stack
==27777== overflow in your program's main thread (unlikely but
==27777== possible), you can try to increase the size of the
==27777== main thread stack using the --main-stacksize= flag.
==27777== The main thread stack size used in this run was 8388608.
==27777== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,884
==27777== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27777== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27777== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27777== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27777== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27777== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27777== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27777== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27777== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27777== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27777== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27777== by 0x40BB675: trace_state (lj_trace.c:690)
==27777== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27777== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27777== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27777== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27777== by 0x407FA29: lua_resume (lj_api.c:1296)
==27777== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27777== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27777== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27777== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27777== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27777== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27777== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27777== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27777== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27777== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27777== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27777== by 0x8062D5B: main (nginx.c:385)
==27777==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27798== Invalid read of size 4
==27798== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27798== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27798== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27798== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27798== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27798== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27798== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27798== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27798== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27798== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27798== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27798== by 0x8062D5B: main (nginx.c:385)
==27798== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27798==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27798==
==27798== Process terminating with default action of signal 11 (SIGSEGV)
==27798== Access not within mapped region at address 0x0
==27798== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27798== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27798== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27798== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27798== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27798== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27798== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27798== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27798== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27798== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27798== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27798== by 0x8062D5B: main (nginx.c:385)
==27798== If you believe this happened as a result of a stack
==27798== overflow in your program's main thread (unlikely but
==27798== possible), you can try to increase the size of the
==27798== main thread stack using the --main-stacksize= flag.
==27798== The main thread stack size used in this run was 8388608.
==27798== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,884
==27798== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27798== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27798== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27798== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27798== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27798== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27798== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27798== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27798== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27798== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27798== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27798== by 0x40BB675: trace_state (lj_trace.c:690)
==27798== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27798== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27798== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27798== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27798== by 0x407FA29: lua_resume (lj_api.c:1296)
==27798== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27798== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27798== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27798== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27798== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27798== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27798== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27798== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27798== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27798== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27798== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27798== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27798== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27798== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27798== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27798== by 0x8062D5B: main (nginx.c:385)
==27798==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27799== Invalid read of size 4
==27799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27799== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27799== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27799== by 0x8062D5B: main (nginx.c:385)
==27799== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27799==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27799==
==27799== Process terminating with default action of signal 11 (SIGSEGV)
==27799== Access not within mapped region at address 0x0
==27799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27799== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27799== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27799== by 0x8062D5B: main (nginx.c:385)
==27799== If you believe this happened as a result of a stack
==27799== overflow in your program's main thread (unlikely but
==27799== possible), you can try to increase the size of the
==27799== main thread stack using the --main-stacksize= flag.
==27799== The main thread stack size used in this run was 8388608.
==27799== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,884
==27799== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27799== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27799== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27799== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27799== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27799== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27799== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27799== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27799== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27799== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27799== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27799== by 0x40BB675: trace_state (lj_trace.c:690)
==27799== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27799== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27799== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27799== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27799== by 0x407FA29: lua_resume (lj_api.c:1296)
==27799== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27799== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27799== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27799== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27799== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27799== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27799== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27799== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27799== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27799== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27799== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27799== by 0x8062D5B: main (nginx.c:385)
==27799==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27800== Invalid read of size 4
==27800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27800== by 0x8062D5B: main (nginx.c:385)
==27800== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27800==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27800==
==27800== Process terminating with default action of signal 11 (SIGSEGV)
==27800== Access not within mapped region at address 0x0
==27800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27800== by 0x8062D5B: main (nginx.c:385)
==27800== If you believe this happened as a result of a stack
==27800== overflow in your program's main thread (unlikely but
==27800== possible), you can try to increase the size of the
==27800== main thread stack using the --main-stacksize= flag.
==27800== The main thread stack size used in this run was 8388608.
==27800== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,884
==27800== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27800== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27800== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27800== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27800== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27800== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27800== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27800== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27800== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27800== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27800== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27800== by 0x40BB675: trace_state (lj_trace.c:690)
==27800== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27800== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27800== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27800== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27800== by 0x407FA29: lua_resume (lj_api.c:1296)
==27800== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27800== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27800== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27800== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27800== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27800== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27800== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27800== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27800== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27800== by 0x8062D5B: main (nginx.c:385)
==27800==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27801== Invalid read of size 4
==27801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27801== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27801== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27801== by 0x8062D5B: main (nginx.c:385)
==27801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern ==27801==
==27801== Process terminating with default action of signal 11 (SIGSEGV)
==27801== Access not within mapped region at address 0x0
==27801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27801== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27801== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27801== by 0x8062D5B: main (nginx.c:385)
==27801== If you believe this happened as a result of a stack
==27801== overflow in your program's main thread (unlikely but
==27801== possible), you can try to increase the size of the
==27801== main thread stack using the --main-stacksize= flag.
==27801== The main thread stack size used in this run was 8388608.
==27801== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,884
==27801== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27801== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27801== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27801== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27801== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27801== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27801== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27801== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27801== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27801== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27801== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27801== by 0x40BB675: trace_state (lj_trace.c:690)
==27801== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27801== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27801== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27801== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27801== by 0x407FA29: lua_resume (lj_api.c:1296)
==27801== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27801== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27801== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27801== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27801== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27801== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27801== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27801== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27801== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27801== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27801== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27801== by 0x8062D5B: main (nginx.c:385)
==27801==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27813== Invalid read of size 4
==27813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27813== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27813== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27813== by 0x8062D5B: main (nginx.c:385)
==27813== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27813==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27813==
==27813== Process terminating with default action of signal 11 (SIGSEGV)
==27813== Access not within mapped region at address 0x0
==27813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27813== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27813== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27813== by 0x8062D5B: main (nginx.c:385)
==27813== If you believe this happened as a result of a stack
==27813== overflow in your program's main thread (unlikely but
==27813== possible), you can try to increase the size of the
==27813== main thread stack using the --main-stacksize= flag.
==27813== The main thread stack size used in this run was 8388608.
==27813== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==27813== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27813== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27813== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27813== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27813== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27813== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27813== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27813== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27813== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27813== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27813== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27813== by 0x40BB675: trace_state (lj_trace.c:690)
==27813== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27813== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27813== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27813== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27813== by 0x407FA29: lua_resume (lj_api.c:1296)
==27813== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27813== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27813== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27813== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27813== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27813== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27813== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27813== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27813== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27813== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27813== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27813== by 0x8062D5B: main (nginx.c:385)
==27813==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27834== Invalid read of size 4
==27834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27834== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27834== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27834== by 0x8062D5B: main (nginx.c:385)
==27834== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27834==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27834==
==27834== Process terminating with default action of signal 11 (SIGSEGV)
==27834== Access not within mapped region at address 0x0
==27834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27834== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27834== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27834== by 0x8062D5B: main (nginx.c:385)
==27834== If you believe this happened as a result of a stack
==27834== overflow in your program's main thread (unlikely but
==27834== possible), you can try to increase the size of the
==27834== main thread stack using the --main-stacksize= flag.
==27834== The main thread stack size used in this run was 8388608.
==27834== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==27834== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27834== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27834== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27834== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27834== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27834== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27834== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27834== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27834== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27834== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27834== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27834== by 0x40BB675: trace_state (lj_trace.c:690)
==27834== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27834== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27834== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27834== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27834== by 0x407FA29: lua_resume (lj_api.c:1296)
==27834== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27834== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27834== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27834== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27834== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27834== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27834== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27834== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27834== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27834== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27834== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27834== by 0x8062D5B: main (nginx.c:385)
==27834==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27835== Invalid read of size 4
==27835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27835== by 0x8062D5B: main (nginx.c:385)
==27835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27835==
==27835== Process terminating with default action of signal 11 (SIGSEGV)
==27835== Access not within mapped region at address 0x0
==27835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27835== by 0x8062D5B: main (nginx.c:385)
==27835== If you believe this happened as a result of a stack
==27835== overflow in your program's main thread (unlikely but
==27835== possible), you can try to increase the size of the
==27835== main thread stack using the --main-stacksize= flag.
==27835== The main thread stack size used in this run was 8388608.
==27835== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==27835== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27835== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27835== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27835== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27835== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27835== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27835== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27835== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27835== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27835== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27835== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27835== by 0x40BB675: trace_state (lj_trace.c:690)
==27835== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27835== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27835== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27835== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27835== by 0x407FA29: lua_resume (lj_api.c:1296)
==27835== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27835== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27835== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27835== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27835== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27835== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27835== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27835== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27835== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27835== by 0x8062D5B: main (nginx.c:385)
==27835==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27836== Invalid read of size 4
==27836== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27836== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27836== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27836== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27836== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27836== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27836== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27836== by 0x8062D5B: main (nginx.c:385)
==27836== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27836==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27836==
==27836== Process terminating with default action of signal 11 (SIGSEGV)
==27836== Access not within mapped region at address 0x0
==27836== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27836== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27836== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27836== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27836== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27836== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27836== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27836== by 0x8062D5B: main (nginx.c:385)
==27836== If you believe this happened as a result of a stack
==27836== overflow in your program's main thread (unlikely but
==27836== possible), you can try to increase the size of the
==27836== main thread stack using the --main-stacksize= flag.
==27836== The main thread stack size used in this run was 8388608.
==27836== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==27836== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27836== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27836== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27836== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27836== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27836== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27836== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27836== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27836== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27836== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27836== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27836== by 0x40BB675: trace_state (lj_trace.c:690)
==27836== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27836== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27836== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27836== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27836== by 0x407FA29: lua_resume (lj_api.c:1296)
==27836== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27836== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27836== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27836== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27836== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27836== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27836== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27836== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27836== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27836== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27836== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27836== by 0x8062D5B: main (nginx.c:385)
==27836==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27837== Invalid read of size 4
==27837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27837== by 0x8062D5B: main (nginx.c:385)
==27837== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27837==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) ==27837==
==27837== Process terminating with default action of signal 11 (SIGSEGV)
==27837== Access not within mapped region at address 0x0
==27837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27837== by 0x8062D5B: main (nginx.c:385)
==27837== If you believe this happened as a result of a stack
==27837== overflow in your program's main thread (unlikely but
==27837== possible), you can try to increase the size of the
==27837== main thread stack using the --main-stacksize= flag.
==27837== The main thread stack size used in this run was 8388608.
==27837== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==27837== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27837== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27837== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27837== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27837== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27837== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27837== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27837== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27837== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27837== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27837== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27837== by 0x40BB675: trace_state (lj_trace.c:690)
==27837== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27837== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27837== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27837== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27837== by 0x407FA29: lua_resume (lj_api.c:1296)
==27837== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27837== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27837== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27837== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27837== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27837== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27837== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27837== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27837== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27837== by 0x8062D5B: main (nginx.c:385)
==27837==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27849== Invalid read of size 4
==27849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27849== by 0x8062D5B: main (nginx.c:385)
==27849== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27849==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27849==
==27849== Process terminating with default action of signal 11 (SIGSEGV)
==27849== Access not within mapped region at address 0x0
==27849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27849== by 0x8062D5B: main (nginx.c:385)
==27849== If you believe this happened as a result of a stack
==27849== overflow in your program's main thread (unlikely but
==27849== possible), you can try to increase the size of the
==27849== main thread stack using the --main-stacksize= flag.
==27849== The main thread stack size used in this run was 8388608.
==27849== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,875
==27849== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27849== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27849== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27849== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27849== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27849== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27849== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27849== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27849== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27849== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27849== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27849== by 0x40BB675: trace_state (lj_trace.c:690)
==27849== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27849== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27849== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27849== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27849== by 0x407FA29: lua_resume (lj_api.c:1296)
==27849== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27849== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27849== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27849== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27849== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27849== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27849== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27849== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27849== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27849== by 0x8062D5B: main (nginx.c:385)
==27849==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27870== Invalid read of size 4
==27870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27870== by 0x8062D5B: main (nginx.c:385)
==27870== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27870==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27870==
==27870== Process terminating with default action of signal 11 (SIGSEGV)
==27870== Access not within mapped region at address 0x0
==27870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27870== by 0x8062D5B: main (nginx.c:385)
==27870== If you believe this happened as a result of a stack
==27870== overflow in your program's main thread (unlikely but
==27870== possible), you can try to increase the size of the
==27870== main thread stack using the --main-stacksize= flag.
==27870== The main thread stack size used in this run was 8388608.
==27870== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,875
==27870== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27870== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27870== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27870== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27870== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27870== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27870== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27870== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27870== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27870== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27870== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27870== by 0x40BB675: trace_state (lj_trace.c:690)
==27870== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27870== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27870== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27870== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27870== by 0x407FA29: lua_resume (lj_api.c:1296)
==27870== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27870== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27870== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27870== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27870== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27870== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27870== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27870== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27870== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27870== by 0x8062D5B: main (nginx.c:385)
==27870==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27871== Invalid read of size 4
==27871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27871== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27871== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27871== by 0x8062D5B: main (nginx.c:385)
==27871== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27871==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27871==
==27871== Process terminating with default action of signal 11 (SIGSEGV)
==27871== Access not within mapped region at address 0x0
==27871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27871== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27871== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27871== by 0x8062D5B: main (nginx.c:385)
==27871== If you believe this happened as a result of a stack
==27871== overflow in your program's main thread (unlikely but
==27871== possible), you can try to increase the size of the
==27871== main thread stack using the --main-stacksize= flag.
==27871== The main thread stack size used in this run was 8388608.
==27871== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,875
==27871== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27871== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27871== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27871== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27871== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27871== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27871== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27871== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27871== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27871== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27871== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27871== by 0x40BB675: trace_state (lj_trace.c:690)
==27871== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27871== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27871== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27871== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27871== by 0x407FA29: lua_resume (lj_api.c:1296)
==27871== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27871== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27871== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27871== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27871== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27871== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27871== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27871== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27871== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27871== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27871== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27871== by 0x8062D5B: main (nginx.c:385)
==27871==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27872== Invalid read of size 4
==27872== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27872== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27872== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27872== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27872== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27872== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27872== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27872== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27872== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27872== by 0x8062D5B: main (nginx.c:385)
==27872== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27872==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27872==
==27872== Process terminating with default action of signal 11 (SIGSEGV)
==27872== Access not within mapped region at address 0x0
==27872== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27872== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27872== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27872== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27872== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27872== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27872== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27872== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27872== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27872== by 0x8062D5B: main (nginx.c:385)
==27872== If you believe this happened as a result of a stack
==27872== overflow in your program's main thread (unlikely but
==27872== possible), you can try to increase the size of the
==27872== main thread stack using the --main-stacksize= flag.
==27872== The main thread stack size used in this run was 8388608.
==27872== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,875
==27872== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27872== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27872== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27872== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27872== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27872== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27872== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27872== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27872== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27872== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27872== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27872== by 0x40BB675: trace_state (lj_trace.c:690)
==27872== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27872== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27872== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27872== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27872== by 0x407FA29: lua_resume (lj_api.c:1296)
==27872== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27872== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27872== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27872== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27872== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27872== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27872== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27872== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27872== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27872== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27872== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27872== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27872== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27872== by 0x8062D5B: main (nginx.c:385)
==27872==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27873== Invalid read of size 4
==27873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27873== by 0x8062D5B: main (nginx.c:385)
==27873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain ==27873==
==27873== Process terminating with default action of signal 11 (SIGSEGV)
==27873== Access not within mapped region at address 0x0
==27873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27873== by 0x8062D5B: main (nginx.c:385)
==27873== If you believe this happened as a result of a stack
==27873== overflow in your program's main thread (unlikely but
==27873== possible), you can try to increase the size of the
==27873== main thread stack using the --main-stacksize= flag.
==27873== The main thread stack size used in this run was 8388608.
==27873== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,875
==27873== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27873== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27873== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27873== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27873== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27873== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27873== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27873== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27873== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27873== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27873== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27873== by 0x40BB675: trace_state (lj_trace.c:690)
==27873== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27873== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27873== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27873== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27873== by 0x407FA29: lua_resume (lj_api.c:1296)
==27873== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27873== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27873== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27873== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27873== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27873== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27873== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27873== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27873== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27873== by 0x8062D5B: main (nginx.c:385)
==27873==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty ==27885== Invalid read of size 4
==27885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27885== by 0x8062D5B: main (nginx.c:385)
==27885== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27885==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty ==27885==
==27885== Process terminating with default action of signal 11 (SIGSEGV)
==27885== Access not within mapped region at address 0x0
==27885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27885== by 0x8062D5B: main (nginx.c:385)
==27885== If you believe this happened as a result of a stack
==27885== overflow in your program's main thread (unlikely but
==27885== possible), you can try to increase the size of the
==27885== main thread stack using the --main-stacksize= flag.
==27885== The main thread stack size used in this run was 8388608.
==27885== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,872
==27885== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27885== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27885== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27885== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27885== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27885== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27885== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27885== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27885== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27885== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27885== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27885== by 0x40BB675: trace_state (lj_trace.c:690)
==27885== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27885== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27885== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27885== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27885== by 0x407FA29: lua_resume (lj_api.c:1296)
==27885== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27885== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27885== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27885== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27885== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27885== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27885== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27885== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27885== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27885== by 0x8062D5B: main (nginx.c:385)
==27885==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty ==27906== Invalid read of size 4
==27906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27906== by 0x8062D5B: main (nginx.c:385)
==27906== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27906==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty ==27906==
==27906== Process terminating with default action of signal 11 (SIGSEGV)
==27906== Access not within mapped region at address 0x0
==27906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27906== by 0x8062D5B: main (nginx.c:385)
==27906== If you believe this happened as a result of a stack
==27906== overflow in your program's main thread (unlikely but
==27906== possible), you can try to increase the size of the
==27906== main thread stack using the --main-stacksize= flag.
==27906== The main thread stack size used in this run was 8388608.
==27906== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,872
==27906== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27906== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27906== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27906== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27906== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27906== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27906== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27906== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27906== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27906== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27906== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27906== by 0x40BB675: trace_state (lj_trace.c:690)
==27906== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27906== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27906== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27906== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27906== by 0x407FA29: lua_resume (lj_api.c:1296)
==27906== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27906== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27906== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27906== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27906== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27906== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27906== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27906== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27906== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27906== by 0x8062D5B: main (nginx.c:385)
==27906==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty ==27907== Invalid read of size 4
==27907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27907== by 0x8062D5B: main (nginx.c:385)
==27907== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27907==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty ==27907==
==27907== Process terminating with default action of signal 11 (SIGSEGV)
==27907== Access not within mapped region at address 0x0
==27907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27907== by 0x8062D5B: main (nginx.c:385)
==27907== If you believe this happened as a result of a stack
==27907== overflow in your program's main thread (unlikely but
==27907== possible), you can try to increase the size of the
==27907== main thread stack using the --main-stacksize= flag.
==27907== The main thread stack size used in this run was 8388608.
==27907== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,872
==27907== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27907== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27907== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27907== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27907== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27907== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27907== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27907== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27907== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27907== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27907== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27907== by 0x40BB675: trace_state (lj_trace.c:690)
==27907== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27907== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27907== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27907== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27907== by 0x407FA29: lua_resume (lj_api.c:1296)
==27907== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27907== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27907== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27907== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27907== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27907== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27907== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27907== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27907== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27907== by 0x8062D5B: main (nginx.c:385)
==27907==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty ==27908== Invalid read of size 4
==27908== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27908== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27908== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27908== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27908== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27908== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27908== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27908== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27908== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27908== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27908== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27908== by 0x8062D5B: main (nginx.c:385)
==27908== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27908==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty ==27908==
==27908== Process terminating with default action of signal 11 (SIGSEGV)
==27908== Access not within mapped region at address 0x0
==27908== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27908== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27908== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27908== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27908== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27908== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27908== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27908== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27908== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27908== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27908== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27908== by 0x8062D5B: main (nginx.c:385)
==27908== If you believe this happened as a result of a stack
==27908== overflow in your program's main thread (unlikely but
==27908== possible), you can try to increase the size of the
==27908== main thread stack using the --main-stacksize= flag.
==27908== The main thread stack size used in this run was 8388608.
==27908== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,872
==27908== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27908== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27908== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27908== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27908== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27908== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27908== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27908== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27908== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27908== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27908== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27908== by 0x40BB675: trace_state (lj_trace.c:690)
==27908== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27908== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27908== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27908== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27908== by 0x407FA29: lua_resume (lj_api.c:1296)
==27908== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27908== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27908== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27908== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27908== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27908== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27908== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27908== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27908== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27908== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27908== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27908== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27908== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27908== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27908== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27908== by 0x8062D5B: main (nginx.c:385)
==27908==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty ==27909== Invalid read of size 4
==27909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27909== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27909== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27909== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27909== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27909== by 0x8062D5B: main (nginx.c:385)
==27909== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27909==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty ==27909==
==27909== Process terminating with default action of signal 11 (SIGSEGV)
==27909== Access not within mapped region at address 0x0
==27909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27909== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27909== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27909== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27909== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27909== by 0x8062D5B: main (nginx.c:385)
==27909== If you believe this happened as a result of a stack
==27909== overflow in your program's main thread (unlikely but
==27909== possible), you can try to increase the size of the
==27909== main thread stack using the --main-stacksize= flag.
==27909== The main thread stack size used in this run was 8388608.
==27909== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,872
==27909== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27909== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27909== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27909== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27909== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27909== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27909== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27909== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27909== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27909== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27909== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27909== by 0x40BB675: trace_state (lj_trace.c:690)
==27909== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27909== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27909== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27909== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27909== by 0x407FA29: lua_resume (lj_api.c:1296)
==27909== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27909== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27909== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27909== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27909== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27909== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27909== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27909== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27909== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27909== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27909== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27909== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27909== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27909== by 0x8062D5B: main (nginx.c:385)
==27909==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries ==27921== Invalid read of size 4
==27921== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27921== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27921== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27921== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27921== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27921== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27921== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27921== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27921== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27921== by 0x8062D5B: main (nginx.c:385)
==27921== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27921==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 13: exceeding regex cache max entries ==27921==
==27921== Process terminating with default action of signal 11 (SIGSEGV)
==27921== Access not within mapped region at address 0x0
==27921== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27921== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27921== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27921== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27921== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27921== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27921== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27921== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27921== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27921== by 0x8062D5B: main (nginx.c:385)
==27921== If you believe this happened as a result of a stack
==27921== overflow in your program's main thread (unlikely but
==27921== possible), you can try to increase the size of the
==27921== main thread stack using the --main-stacksize= flag.
==27921== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries ==27942== Invalid read of size 4
==27942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27942== by 0x8062D5B: main (nginx.c:385)
==27942== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27942==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 13: exceeding regex cache max entries ==27942==
==27942== Process terminating with default action of signal 11 (SIGSEGV)
==27942== Access not within mapped region at address 0x0
==27942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27942== by 0x8062D5B: main (nginx.c:385)
==27942== If you believe this happened as a result of a stack
==27942== overflow in your program's main thread (unlikely but
==27942== possible), you can try to increase the size of the
==27942== main thread stack using the --main-stacksize= flag.
==27942== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries ==27943== Invalid read of size 4
==27943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27943== by 0x8062D5B: main (nginx.c:385)
==27943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 13: exceeding regex cache max entries ==27943==
==27943== Process terminating with default action of signal 11 (SIGSEGV)
==27943== Access not within mapped region at address 0x0
==27943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27943== by 0x8062D5B: main (nginx.c:385)
==27943== If you believe this happened as a result of a stack
==27943== overflow in your program's main thread (unlikely but
==27943== possible), you can try to increase the size of the
==27943== main thread stack using the --main-stacksize= flag.
==27943== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries ==27944== Invalid read of size 4
==27944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27944== by 0x8062D5B: main (nginx.c:385)
==27944== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27944==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 13: exceeding regex cache max entries ==27944==
==27944== Process terminating with default action of signal 11 (SIGSEGV)
==27944== Access not within mapped region at address 0x0
==27944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27944== by 0x8062D5B: main (nginx.c:385)
==27944== If you believe this happened as a result of a stack
==27944== overflow in your program's main thread (unlikely but
==27944== possible), you can try to increase the size of the
==27944== main thread stack using the --main-stacksize= flag.
==27944== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries ==27945== Invalid read of size 4
==27945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27945== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27945== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27945== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27945== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27945== by 0x8062D5B: main (nginx.c:385)
==27945== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27945==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 13: exceeding regex cache max entries ==27945==
==27945== Process terminating with default action of signal 11 (SIGSEGV)
==27945== Access not within mapped region at address 0x0
==27945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27945== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27945== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27945== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27945== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27945== by 0x8062D5B: main (nginx.c:385)
==27945== If you believe this happened as a result of a stack
==27945== overflow in your program's main thread (unlikely but
==27945== possible), you can try to increase the size of the
==27945== main thread stack using the --main-stacksize= flag.
==27945== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) ==27957== Invalid read of size 4
==27957== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27957== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27957== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27957== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27957== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27957== by 0x8062D5B: main (nginx.c:385)
==27957== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27957==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) ==27957==
==27957== Process terminating with default action of signal 11 (SIGSEGV)
==27957== Access not within mapped region at address 0x0
==27957== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27957== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27957== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27957== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27957== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27957== by 0x8062D5B: main (nginx.c:385)
==27957== If you believe this happened as a result of a stack
==27957== overflow in your program's main thread (unlikely but
==27957== possible), you can try to increase the size of the
==27957== main thread stack using the --main-stacksize= flag.
==27957== The main thread stack size used in this run was 8388608.
==27957== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,864
==27957== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27957== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27957== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27957== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27957== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27957== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27957== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27957== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27957== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27957== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27957== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27957== by 0x40BB675: trace_state (lj_trace.c:690)
==27957== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27957== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27957== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27957== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27957== by 0x407FA29: lua_resume (lj_api.c:1296)
==27957== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27957== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27957== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27957== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27957== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27957== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27957== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27957== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27957== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27957== by 0x8062D5B: main (nginx.c:385)
==27957==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) ==27978== Invalid read of size 4
==27978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27978== by 0x8062D5B: main (nginx.c:385)
==27978== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27978==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) ==27978==
==27978== Process terminating with default action of signal 11 (SIGSEGV)
==27978== Access not within mapped region at address 0x0
==27978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27978== by 0x8062D5B: main (nginx.c:385)
==27978== If you believe this happened as a result of a stack
==27978== overflow in your program's main thread (unlikely but
==27978== possible), you can try to increase the size of the
==27978== main thread stack using the --main-stacksize= flag.
==27978== The main thread stack size used in this run was 8388608.
==27978== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,864
==27978== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27978== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27978== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27978== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27978== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27978== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27978== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27978== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27978== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27978== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27978== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27978== by 0x40BB675: trace_state (lj_trace.c:690)
==27978== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27978== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27978== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27978== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27978== by 0x407FA29: lua_resume (lj_api.c:1296)
==27978== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27978== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27978== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27978== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27978== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27978== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27978== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27978== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27978== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27978== by 0x8062D5B: main (nginx.c:385)
==27978==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) ==27979== Invalid read of size 4
==27979== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27979== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27979== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27979== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27979== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27979== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27979== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27979== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27979== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27979== by 0x8062D5B: main (nginx.c:385)
==27979== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27979==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) ==27979==
==27979== Process terminating with default action of signal 11 (SIGSEGV)
==27979== Access not within mapped region at address 0x0
==27979== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27979== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27979== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27979== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27979== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27979== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27979== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27979== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27979== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27979== by 0x8062D5B: main (nginx.c:385)
==27979== If you believe this happened as a result of a stack
==27979== overflow in your program's main thread (unlikely but
==27979== possible), you can try to increase the size of the
==27979== main thread stack using the --main-stacksize= flag.
==27979== The main thread stack size used in this run was 8388608.
==27979== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,864
==27979== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27979== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27979== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27979== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27979== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27979== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27979== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27979== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27979== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27979== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27979== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27979== by 0x40BB675: trace_state (lj_trace.c:690)
==27979== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27979== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27979== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27979== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27979== by 0x407FA29: lua_resume (lj_api.c:1296)
==27979== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27979== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27979== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27979== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27979== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27979== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27979== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27979== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27979== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27979== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27979== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27979== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27979== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27979== by 0x8062D5B: main (nginx.c:385)
==27979==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) ==27980== Invalid read of size 4
==27980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27980== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27980== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27980== by 0x8062D5B: main (nginx.c:385)
==27980== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27980==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) ==27980==
==27980== Process terminating with default action of signal 11 (SIGSEGV)
==27980== Access not within mapped region at address 0x0
==27980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27980== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27980== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27980== by 0x8062D5B: main (nginx.c:385)
==27980== If you believe this happened as a result of a stack
==27980== overflow in your program's main thread (unlikely but
==27980== possible), you can try to increase the size of the
==27980== main thread stack using the --main-stacksize= flag.
==27980== The main thread stack size used in this run was 8388608.
==27980== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,864
==27980== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27980== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27980== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27980== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27980== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27980== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27980== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27980== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27980== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27980== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27980== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27980== by 0x40BB675: trace_state (lj_trace.c:690)
==27980== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27980== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27980== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27980== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27980== by 0x407FA29: lua_resume (lj_api.c:1296)
==27980== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27980== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27980== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27980== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27980== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27980== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27980== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27980== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27980== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27980== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27980== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27980== by 0x8062D5B: main (nginx.c:385)
==27980==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) ==27981== Invalid read of size 4
==27981== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27981== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27981== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27981== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27981== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27981== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27981== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27981== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27981== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27981== by 0x8062D5B: main (nginx.c:385)
==27981== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27981==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) ==27981==
==27981== Process terminating with default action of signal 11 (SIGSEGV)
==27981== Access not within mapped region at address 0x0
==27981== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27981== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27981== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27981== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27981== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27981== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27981== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27981== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27981== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27981== by 0x8062D5B: main (nginx.c:385)
==27981== If you believe this happened as a result of a stack
==27981== overflow in your program's main thread (unlikely but
==27981== possible), you can try to increase the size of the
==27981== main thread stack using the --main-stacksize= flag.
==27981== The main thread stack size used in this run was 8388608.
==27981== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,864
==27981== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27981== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27981== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27981== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27981== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27981== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27981== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27981== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27981== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27981== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27981== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27981== by 0x40BB675: trace_state (lj_trace.c:690)
==27981== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27981== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27981== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27981== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27981== by 0x407FA29: lua_resume (lj_api.c:1296)
==27981== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27981== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27981== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27981== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27981== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27981== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27981== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27981== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27981== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27981== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27981== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27981== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==27981== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==27981== by 0x8062D5B: main (nginx.c:385)
==27981==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==27993== Invalid read of size 4
==27993== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27993== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27993== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27993== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27993== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27993== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27993== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27993== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27993== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27993== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27993== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27993== by 0x8062D5B: main (nginx.c:385)
==27993== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27993==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==27993==
==27993== Process terminating with default action of signal 11 (SIGSEGV)
==27993== Access not within mapped region at address 0x0
==27993== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==27993== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==27993== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==27993== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==27993== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==27993== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27993== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27993== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27993== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27993== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27993== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27993== by 0x8062D5B: main (nginx.c:385)
==27993== If you believe this happened as a result of a stack
==27993== overflow in your program's main thread (unlikely but
==27993== possible), you can try to increase the size of the
==27993== main thread stack using the --main-stacksize= flag.
==27993== The main thread stack size used in this run was 8388608.
==27993== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==27993== at 0x402C768: realloc (vg_replace_malloc.c:834)
==27993== by 0x40CC146: mem_alloc (lib_aux.c:335)
==27993== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==27993== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==27993== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==27993== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==27993== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==27993== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==27993== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==27993== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27993== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==27993== by 0x40BB675: trace_state (lj_trace.c:690)
==27993== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27993== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==27993== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==27993== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27993== by 0x407FA29: lua_resume (lj_api.c:1296)
==27993== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==27993== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==27993== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==27993== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==27993== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==27993== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==27993== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==27993== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==27993== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==27993== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27993== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==27993== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27993== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==27993== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27993== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27993== by 0x8062D5B: main (nginx.c:385)
==27993==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28016== Invalid read of size 4
==28016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28016== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28016== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28016== by 0x8062D5B: main (nginx.c:385)
==28016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28016==
==28016== Process terminating with default action of signal 11 (SIGSEGV)
==28016== Access not within mapped region at address 0x0
==28016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28016== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28016== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28016== by 0x8062D5B: main (nginx.c:385)
==28016== If you believe this happened as a result of a stack
==28016== overflow in your program's main thread (unlikely but
==28016== possible), you can try to increase the size of the
==28016== main thread stack using the --main-stacksize= flag.
==28016== The main thread stack size used in this run was 8388608.
==28016== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==28016== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28016== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28016== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28016== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28016== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28016== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28016== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28016== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28016== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28016== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28016== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28016== by 0x40BB675: trace_state (lj_trace.c:690)
==28016== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28016== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28016== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28016== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28016== by 0x407FA29: lua_resume (lj_api.c:1296)
==28016== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28016== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28016== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28016== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28016== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28016== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28016== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28016== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28016== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28016== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28016== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28016== by 0x8062D5B: main (nginx.c:385)
==28016==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28017== Invalid read of size 4
==28017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28017== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28017== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28017== by 0x8062D5B: main (nginx.c:385)
==28017== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28017==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28017==
==28017== Process terminating with default action of signal 11 (SIGSEGV)
==28017== Access not within mapped region at address 0x0
==28017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28017== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28017== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28017== by 0x8062D5B: main (nginx.c:385)
==28017== If you believe this happened as a result of a stack
==28017== overflow in your program's main thread (unlikely but
==28017== possible), you can try to increase the size of the
==28017== main thread stack using the --main-stacksize= flag.
==28017== The main thread stack size used in this run was 8388608.
==28017== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==28017== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28017== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28017== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28017== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28017== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28017== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28017== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28017== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28017== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28017== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28017== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28017== by 0x40BB675: trace_state (lj_trace.c:690)
==28017== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28017== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28017== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28017== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28017== by 0x407FA29: lua_resume (lj_api.c:1296)
==28017== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28017== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28017== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28017== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28017== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28017== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28017== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28017== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28017== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28017== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28017== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28017== by 0x8062D5B: main (nginx.c:385)
==28017==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28019== Invalid read of size 4
==28019== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28019== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28019== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28019== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28019== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28019== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28019== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28019== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28019== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28019== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28019== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28019== by 0x8062D5B: main (nginx.c:385)
==28019== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28019==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28019==
==28019== Process terminating with default action of signal 11 (SIGSEGV)
==28019== Access not within mapped region at address 0x0
==28019== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28019== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28019== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28019== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28019== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28019== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28019== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28019== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28019== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28019== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28019== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28019== by 0x8062D5B: main (nginx.c:385)
==28019== If you believe this happened as a result of a stack
==28019== overflow in your program's main thread (unlikely but
==28019== possible), you can try to increase the size of the
==28019== main thread stack using the --main-stacksize= flag.
==28019== The main thread stack size used in this run was 8388608.
==28019== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==28019== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28019== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28019== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28019== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28019== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28019== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28019== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28019== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28019== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28019== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28019== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28019== by 0x40BB675: trace_state (lj_trace.c:690)
==28019== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28019== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28019== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28019== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28019== by 0x407FA29: lua_resume (lj_api.c:1296)
==28019== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28019== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28019== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28019== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28019== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28019== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28019== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28019== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28019== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28019== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28019== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28019== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28019== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28019== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28019== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28019== by 0x8062D5B: main (nginx.c:385)
==28019==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28021== Invalid read of size 4
==28021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28021== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28021== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28021== by 0x8062D5B: main (nginx.c:385)
==28021== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28021==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) ==28021==
==28021== Process terminating with default action of signal 11 (SIGSEGV)
==28021== Access not within mapped region at address 0x0
==28021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28021== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28021== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28021== by 0x8062D5B: main (nginx.c:385)
==28021== If you believe this happened as a result of a stack
==28021== overflow in your program's main thread (unlikely but
==28021== possible), you can try to increase the size of the
==28021== main thread stack using the --main-stacksize= flag.
==28021== The main thread stack size used in this run was 8388608.
==28021== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,855
==28021== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28021== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28021== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28021== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28021== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28021== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28021== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28021== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28021== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28021== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28021== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28021== by 0x40BB675: trace_state (lj_trace.c:690)
==28021== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28021== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28021== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28021== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28021== by 0x407FA29: lua_resume (lj_api.c:1296)
==28021== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28021== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28021== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28021== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28021== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28021== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28021== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28021== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28021== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28021== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28021== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28021== by 0x8062D5B: main (nginx.c:385)
==28021==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28033== Invalid read of size 4
==28033== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28033== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28033== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28033== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28033== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28033== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28033== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28033== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28033== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28033== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28033== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28033== by 0x8062D5B: main (nginx.c:385)
==28033== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28033==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28033==
==28033== Process terminating with default action of signal 11 (SIGSEGV)
==28033== Access not within mapped region at address 0x0
==28033== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28033== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28033== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28033== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28033== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28033== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28033== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28033== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28033== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28033== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28033== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28033== by 0x8062D5B: main (nginx.c:385)
==28033== If you believe this happened as a result of a stack
==28033== overflow in your program's main thread (unlikely but
==28033== possible), you can try to increase the size of the
==28033== main thread stack using the --main-stacksize= flag.
==28033== The main thread stack size used in this run was 8388608.
==28033== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,854
==28033== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28033== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28033== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28033== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28033== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28033== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28033== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28033== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28033== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28033== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28033== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28033== by 0x40BB675: trace_state (lj_trace.c:690)
==28033== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28033== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28033== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28033== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28033== by 0x407FA29: lua_resume (lj_api.c:1296)
==28033== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28033== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28033== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28033== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28033== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28033== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28033== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28033== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28033== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28033== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28033== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28033== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28033== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28033== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28033== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28033== by 0x8062D5B: main (nginx.c:385)
==28033==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28054== Invalid read of size 4
==28054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28054== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28054== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28054== by 0x8062D5B: main (nginx.c:385)
==28054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28054==
==28054== Process terminating with default action of signal 11 (SIGSEGV)
==28054== Access not within mapped region at address 0x0
==28054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28054== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28054== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28054== by 0x8062D5B: main (nginx.c:385)
==28054== If you believe this happened as a result of a stack
==28054== overflow in your program's main thread (unlikely but
==28054== possible), you can try to increase the size of the
==28054== main thread stack using the --main-stacksize= flag.
==28054== The main thread stack size used in this run was 8388608.
==28054== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,854
==28054== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28054== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28054== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28054== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28054== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28054== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28054== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28054== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28054== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28054== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28054== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28054== by 0x40BB675: trace_state (lj_trace.c:690)
==28054== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28054== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28054== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28054== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28054== by 0x407FA29: lua_resume (lj_api.c:1296)
==28054== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28054== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28054== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28054== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28054== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28054== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28054== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28054== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28054== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28054== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28054== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28054== by 0x8062D5B: main (nginx.c:385)
==28054==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28055== Invalid read of size 4
==28055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28055== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28055== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28055== by 0x8062D5B: main (nginx.c:385)
==28055== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28055==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28055==
==28055== Process terminating with default action of signal 11 (SIGSEGV)
==28055== Access not within mapped region at address 0x0
==28055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28055== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28055== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28055== by 0x8062D5B: main (nginx.c:385)
==28055== If you believe this happened as a result of a stack
==28055== overflow in your program's main thread (unlikely but
==28055== possible), you can try to increase the size of the
==28055== main thread stack using the --main-stacksize= flag.
==28055== The main thread stack size used in this run was 8388608.
==28055== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,854
==28055== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28055== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28055== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28055== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28055== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28055== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28055== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28055== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28055== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28055== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28055== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28055== by 0x40BB675: trace_state (lj_trace.c:690)
==28055== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28055== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28055== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28055== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28055== by 0x407FA29: lua_resume (lj_api.c:1296)
==28055== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28055== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28055== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28055== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28055== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28055== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28055== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28055== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28055== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28055== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28055== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28055== by 0x8062D5B: main (nginx.c:385)
==28055==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28056== Invalid read of size 4
==28056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28056== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28056== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28056== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28056== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28056== by 0x8062D5B: main (nginx.c:385)
==28056== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28056==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28056==
==28056== Process terminating with default action of signal 11 (SIGSEGV)
==28056== Access not within mapped region at address 0x0
==28056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28056== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28056== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28056== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28056== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28056== by 0x8062D5B: main (nginx.c:385)
==28056== If you believe this happened as a result of a stack
==28056== overflow in your program's main thread (unlikely but
==28056== possible), you can try to increase the size of the
==28056== main thread stack using the --main-stacksize= flag.
==28056== The main thread stack size used in this run was 8388608.
==28056== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,854
==28056== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28056== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28056== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28056== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28056== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28056== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28056== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28056== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28056== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28056== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28056== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28056== by 0x40BB675: trace_state (lj_trace.c:690)
==28056== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28056== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28056== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28056== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28056== by 0x407FA29: lua_resume (lj_api.c:1296)
==28056== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28056== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28056== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28056== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28056== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28056== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28056== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28056== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28056== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28056== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28056== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28056== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28056== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28056== by 0x8062D5B: main (nginx.c:385)
==28056==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28057== Invalid read of size 4
==28057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28057== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28057== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28057== by 0x8062D5B: main (nginx.c:385)
==28057== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28057==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC ==28057==
==28057== Process terminating with default action of signal 11 (SIGSEGV)
==28057== Access not within mapped region at address 0x0
==28057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28057== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28057== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28057== by 0x8062D5B: main (nginx.c:385)
==28057== If you believe this happened as a result of a stack
==28057== overflow in your program's main thread (unlikely but
==28057== possible), you can try to increase the size of the
==28057== main thread stack using the --main-stacksize= flag.
==28057== The main thread stack size used in this run was 8388608.
==28057== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,854
==28057== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28057== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28057== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28057== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28057== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28057== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28057== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28057== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28057== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28057== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28057== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28057== by 0x40BB675: trace_state (lj_trace.c:690)
==28057== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28057== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28057== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28057== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28057== by 0x407FA29: lua_resume (lj_api.c:1296)
==28057== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28057== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28057== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28057== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28057== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28057== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28057== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28057== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28057== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28057== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28057== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28057== by 0x8062D5B: main (nginx.c:385)
==28057==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch ==28069== Invalid read of size 4
==28069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28069== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28069== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28069== by 0x8062D5B: main (nginx.c:385)
==28069== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28069==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch ==28069==
==28069== Process terminating with default action of signal 11 (SIGSEGV)
==28069== Access not within mapped region at address 0x0
==28069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28069== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28069== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28069== by 0x8062D5B: main (nginx.c:385)
==28069== If you believe this happened as a result of a stack
==28069== overflow in your program's main thread (unlikely but
==28069== possible), you can try to increase the size of the
==28069== main thread stack using the --main-stacksize= flag.
==28069== The main thread stack size used in this run was 8388608.
==28069== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,856
==28069== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28069== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28069== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28069== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28069== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28069== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28069== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28069== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28069== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28069== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28069== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28069== by 0x40BB675: trace_state (lj_trace.c:690)
==28069== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28069== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28069== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28069== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28069== by 0x407FA29: lua_resume (lj_api.c:1296)
==28069== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28069== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28069== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28069== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28069== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28069== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28069== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28069== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28069== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28069== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28069== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28069== by 0x8062D5B: main (nginx.c:385)
==28069==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch ==28090== Invalid read of size 4
==28090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28090== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28090== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28090== by 0x8062D5B: main (nginx.c:385)
==28090== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28090==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch ==28090==
==28090== Process terminating with default action of signal 11 (SIGSEGV)
==28090== Access not within mapped region at address 0x0
==28090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28090== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28090== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28090== by 0x8062D5B: main (nginx.c:385)
==28090== If you believe this happened as a result of a stack
==28090== overflow in your program's main thread (unlikely but
==28090== possible), you can try to increase the size of the
==28090== main thread stack using the --main-stacksize= flag.
==28090== The main thread stack size used in this run was 8388608.
==28090== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,856
==28090== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28090== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28090== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28090== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28090== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28090== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28090== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28090== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28090== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28090== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28090== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28090== by 0x40BB675: trace_state (lj_trace.c:690)
==28090== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28090== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28090== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28090== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28090== by 0x407FA29: lua_resume (lj_api.c:1296)
==28090== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28090== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28090== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28090== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28090== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28090== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28090== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28090== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28090== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28090== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28090== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28090== by 0x8062D5B: main (nginx.c:385)
==28090==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch ==28091== Invalid read of size 4
==28091== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28091== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28091== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28091== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28091== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28091== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28091== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28091== by 0x8062D5B: main (nginx.c:385)
==28091== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28091==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch ==28091==
==28091== Process terminating with default action of signal 11 (SIGSEGV)
==28091== Access not within mapped region at address 0x0
==28091== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28091== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28091== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28091== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28091== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28091== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28091== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28091== by 0x8062D5B: main (nginx.c:385)
==28091== If you believe this happened as a result of a stack
==28091== overflow in your program's main thread (unlikely but
==28091== possible), you can try to increase the size of the
==28091== main thread stack using the --main-stacksize= flag.
==28091== The main thread stack size used in this run was 8388608.
==28091== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,856
==28091== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28091== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28091== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28091== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28091== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28091== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28091== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28091== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28091== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28091== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28091== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28091== by 0x40BB675: trace_state (lj_trace.c:690)
==28091== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28091== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28091== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28091== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28091== by 0x407FA29: lua_resume (lj_api.c:1296)
==28091== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28091== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28091== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28091== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28091== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28091== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28091== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28091== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28091== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28091== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28091== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28091== by 0x8062D5B: main (nginx.c:385)
==28091==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch ==28092== Invalid read of size 4
==28092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28092== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28092== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28092== by 0x8062D5B: main (nginx.c:385)
==28092== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28092==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch ==28092==
==28092== Process terminating with default action of signal 11 (SIGSEGV)
==28092== Access not within mapped region at address 0x0
==28092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28092== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28092== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28092== by 0x8062D5B: main (nginx.c:385)
==28092== If you believe this happened as a result of a stack
==28092== overflow in your program's main thread (unlikely but
==28092== possible), you can try to increase the size of the
==28092== main thread stack using the --main-stacksize= flag.
==28092== The main thread stack size used in this run was 8388608.
==28092== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,856
==28092== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28092== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28092== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28092== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28092== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28092== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28092== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28092== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28092== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28092== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28092== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28092== by 0x40BB675: trace_state (lj_trace.c:690)
==28092== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28092== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28092== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28092== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28092== by 0x407FA29: lua_resume (lj_api.c:1296)
==28092== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28092== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28092== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28092== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28092== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28092== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28092== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28092== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28092== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28092== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28092== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28092== by 0x8062D5B: main (nginx.c:385)
==28092==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch ==28093== Invalid read of size 4
==28093== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28093== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28093== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28093== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28093== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28093== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28093== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28093== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28093== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28093== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28093== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28093== by 0x8062D5B: main (nginx.c:385)
==28093== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28093==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch ==28093==
==28093== Process terminating with default action of signal 11 (SIGSEGV)
==28093== Access not within mapped region at address 0x0
==28093== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28093== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28093== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28093== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28093== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28093== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28093== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28093== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28093== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28093== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28093== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28093== by 0x8062D5B: main (nginx.c:385)
==28093== If you believe this happened as a result of a stack
==28093== overflow in your program's main thread (unlikely but
==28093== possible), you can try to increase the size of the
==28093== main thread stack using the --main-stacksize= flag.
==28093== The main thread stack size used in this run was 8388608.
==28093== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,856
==28093== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28093== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28093== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28093== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28093== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28093== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28093== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28093== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28093== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28093== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28093== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28093== by 0x40BB675: trace_state (lj_trace.c:690)
==28093== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28093== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28093== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28093== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28093== by 0x407FA29: lua_resume (lj_api.c:1296)
==28093== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28093== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28093== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28093== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28093== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28093== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28093== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28093== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28093== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28093== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28093== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28093== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28093== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28093== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28093== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28093== by 0x8062D5B: main (nginx.c:385)
==28093==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28105== Invalid read of size 4
==28105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28105== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28105== by 0x8062D5B: main (nginx.c:385)
==28105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28105==
==28105== Process terminating with default action of signal 11 (SIGSEGV)
==28105== Access not within mapped region at address 0x0
==28105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28105== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28105== by 0x8062D5B: main (nginx.c:385)
==28105== If you believe this happened as a result of a stack
==28105== overflow in your program's main thread (unlikely but
==28105== possible), you can try to increase the size of the
==28105== main thread stack using the --main-stacksize= flag.
==28105== The main thread stack size used in this run was 8388608.
==28105== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==28105== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28105== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28105== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28105== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28105== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28105== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28105== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28105== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28105== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28105== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28105== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28105== by 0x40BB675: trace_state (lj_trace.c:690)
==28105== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28105== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28105== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28105== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28105== by 0x407FA29: lua_resume (lj_api.c:1296)
==28105== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28105== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28105== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28105== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28105== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28105== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28105== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28105== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28105== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28105== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28105== by 0x8062D5B: main (nginx.c:385)
==28105==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28126== Invalid read of size 4
==28126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28126== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28126== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28126== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28126== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28126== by 0x8062D5B: main (nginx.c:385)
==28126== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28126==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28126==
==28126== Process terminating with default action of signal 11 (SIGSEGV)
==28126== Access not within mapped region at address 0x0
==28126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28126== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28126== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28126== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28126== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28126== by 0x8062D5B: main (nginx.c:385)
==28126== If you believe this happened as a result of a stack
==28126== overflow in your program's main thread (unlikely but
==28126== possible), you can try to increase the size of the
==28126== main thread stack using the --main-stacksize= flag.
==28126== The main thread stack size used in this run was 8388608.
==28126== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==28126== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28126== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28126== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28126== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28126== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28126== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28126== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28126== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28126== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28126== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28126== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28126== by 0x40BB675: trace_state (lj_trace.c:690)
==28126== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28126== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28126== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28126== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28126== by 0x407FA29: lua_resume (lj_api.c:1296)
==28126== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28126== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28126== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28126== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28126== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28126== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28126== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28126== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28126== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28126== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28126== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28126== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28126== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28126== by 0x8062D5B: main (nginx.c:385)
==28126==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28127== Invalid read of size 4
==28127== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28127== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28127== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28127== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28127== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28127== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28127== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28127== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28127== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28127== by 0x8062D5B: main (nginx.c:385)
==28127== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28127==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28127==
==28127== Process terminating with default action of signal 11 (SIGSEGV)
==28127== Access not within mapped region at address 0x0
==28127== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28127== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28127== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28127== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28127== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28127== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28127== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28127== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28127== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28127== by 0x8062D5B: main (nginx.c:385)
==28127== If you believe this happened as a result of a stack
==28127== overflow in your program's main thread (unlikely but
==28127== possible), you can try to increase the size of the
==28127== main thread stack using the --main-stacksize= flag.
==28127== The main thread stack size used in this run was 8388608.
==28127== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==28127== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28127== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28127== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28127== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28127== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28127== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28127== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28127== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28127== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28127== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28127== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28127== by 0x40BB675: trace_state (lj_trace.c:690)
==28127== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28127== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28127== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28127== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28127== by 0x407FA29: lua_resume (lj_api.c:1296)
==28127== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28127== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28127== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28127== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28127== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28127== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28127== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28127== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28127== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28127== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28127== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28127== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28127== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28127== by 0x8062D5B: main (nginx.c:385)
==28127==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28128== Invalid read of size 4
==28128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28128== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28128== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28128== by 0x8062D5B: main (nginx.c:385)
==28128== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28128==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28128==
==28128== Process terminating with default action of signal 11 (SIGSEGV)
==28128== Access not within mapped region at address 0x0
==28128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28128== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28128== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28128== by 0x8062D5B: main (nginx.c:385)
==28128== If you believe this happened as a result of a stack
==28128== overflow in your program's main thread (unlikely but
==28128== possible), you can try to increase the size of the
==28128== main thread stack using the --main-stacksize= flag.
==28128== The main thread stack size used in this run was 8388608.
==28128== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==28128== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28128== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28128== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28128== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28128== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28128== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28128== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28128== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28128== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28128== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28128== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28128== by 0x40BB675: trace_state (lj_trace.c:690)
==28128== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28128== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28128== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28128== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28128== by 0x407FA29: lua_resume (lj_api.c:1296)
==28128== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28128== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28128== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28128== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28128== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28128== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28128== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28128== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28128== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28128== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28128== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28128== by 0x8062D5B: main (nginx.c:385)
==28128==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28129== Invalid read of size 4
==28129== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28129== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28129== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28129== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28129== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28129== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28129== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28129== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28129== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28129== by 0x8062D5B: main (nginx.c:385)
==28129== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28129==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks ==28129==
==28129== Process terminating with default action of signal 11 (SIGSEGV)
==28129== Access not within mapped region at address 0x0
==28129== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28129== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28129== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28129== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28129== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28129== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28129== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28129== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28129== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28129== by 0x8062D5B: main (nginx.c:385)
==28129== If you believe this happened as a result of a stack
==28129== overflow in your program's main thread (unlikely but
==28129== possible), you can try to increase the size of the
==28129== main thread stack using the --main-stacksize= flag.
==28129== The main thread stack size used in this run was 8388608.
==28129== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==28129== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28129== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28129== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28129== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28129== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28129== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28129== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28129== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28129== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28129== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28129== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28129== by 0x40BB675: trace_state (lj_trace.c:690)
==28129== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28129== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28129== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28129== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28129== by 0x407FA29: lua_resume (lj_api.c:1296)
==28129== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28129== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28129== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28129== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28129== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28129== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28129== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28129== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28129== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28129== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28129== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28129== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28129== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28129== by 0x8062D5B: main (nginx.c:385)
==28129==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache ==28141== Invalid read of size 4
==28141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28141== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28141== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28141== by 0x8062D5B: main (nginx.c:385)
==28141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache ==28141==
==28141== Process terminating with default action of signal 11 (SIGSEGV)
==28141== Access not within mapped region at address 0x0
==28141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28141== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28141== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28141== by 0x8062D5B: main (nginx.c:385)
==28141== If you believe this happened as a result of a stack
==28141== overflow in your program's main thread (unlikely but
==28141== possible), you can try to increase the size of the
==28141== main thread stack using the --main-stacksize= flag.
==28141== The main thread stack size used in this run was 8388608.
==28141== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,861
==28141== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28141== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28141== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28141== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28141== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28141== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28141== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28141== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28141== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28141== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28141== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28141== by 0x40BB675: trace_state (lj_trace.c:690)
==28141== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28141== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28141== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28141== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28141== by 0x407FA29: lua_resume (lj_api.c:1296)
==28141== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28141== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28141== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28141== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28141== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28141== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28141== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28141== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28141== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28141== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28141== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28141== by 0x8062D5B: main (nginx.c:385)
==28141==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache ==28162== Invalid read of size 4
==28162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28162== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28162== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28162== by 0x8062D5B: main (nginx.c:385)
==28162== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28162==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache ==28162==
==28162== Process terminating with default action of signal 11 (SIGSEGV)
==28162== Access not within mapped region at address 0x0
==28162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28162== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28162== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28162== by 0x8062D5B: main (nginx.c:385)
==28162== If you believe this happened as a result of a stack
==28162== overflow in your program's main thread (unlikely but
==28162== possible), you can try to increase the size of the
==28162== main thread stack using the --main-stacksize= flag.
==28162== The main thread stack size used in this run was 8388608.
==28162== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,861
==28162== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28162== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28162== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28162== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28162== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28162== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28162== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28162== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28162== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28162== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28162== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28162== by 0x40BB675: trace_state (lj_trace.c:690)
==28162== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28162== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28162== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28162== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28162== by 0x407FA29: lua_resume (lj_api.c:1296)
==28162== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28162== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28162== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28162== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28162== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28162== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28162== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28162== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28162== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28162== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28162== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28162== by 0x8062D5B: main (nginx.c:385)
==28162==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache ==28163== Invalid read of size 4
==28163== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28163== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28163== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28163== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28163== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28163== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28163== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28163== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28163== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28163== by 0x8062D5B: main (nginx.c:385)
==28163== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28163==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache ==28163==
==28163== Process terminating with default action of signal 11 (SIGSEGV)
==28163== Access not within mapped region at address 0x0
==28163== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28163== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28163== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28163== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28163== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28163== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28163== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28163== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28163== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28163== by 0x8062D5B: main (nginx.c:385)
==28163== If you believe this happened as a result of a stack
==28163== overflow in your program's main thread (unlikely but
==28163== possible), you can try to increase the size of the
==28163== main thread stack using the --main-stacksize= flag.
==28163== The main thread stack size used in this run was 8388608.
==28163== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,861
==28163== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28163== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28163== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28163== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28163== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28163== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28163== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28163== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28163== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28163== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28163== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28163== by 0x40BB675: trace_state (lj_trace.c:690)
==28163== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28163== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28163== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28163== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28163== by 0x407FA29: lua_resume (lj_api.c:1296)
==28163== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28163== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28163== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28163== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28163== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28163== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28163== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28163== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28163== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28163== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28163== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28163== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28163== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28163== by 0x8062D5B: main (nginx.c:385)
==28163==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache ==28164== Invalid read of size 4
==28164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28164== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28164== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28164== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28164== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28164== by 0x8062D5B: main (nginx.c:385)
==28164== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28164==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache ==28164==
==28164== Process terminating with default action of signal 11 (SIGSEGV)
==28164== Access not within mapped region at address 0x0
==28164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28164== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28164== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28164== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28164== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28164== by 0x8062D5B: main (nginx.c:385)
==28164== If you believe this happened as a result of a stack
==28164== overflow in your program's main thread (unlikely but
==28164== possible), you can try to increase the size of the
==28164== main thread stack using the --main-stacksize= flag.
==28164== The main thread stack size used in this run was 8388608.
==28164== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,861
==28164== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28164== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28164== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28164== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28164== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28164== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28164== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28164== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28164== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28164== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28164== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28164== by 0x40BB675: trace_state (lj_trace.c:690)
==28164== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28164== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28164== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28164== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28164== by 0x407FA29: lua_resume (lj_api.c:1296)
==28164== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28164== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28164== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28164== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28164== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28164== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28164== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28164== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28164== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28164== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28164== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28164== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28164== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28164== by 0x8062D5B: main (nginx.c:385)
==28164==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache ==28165== Invalid read of size 4
==28165== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28165== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28165== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28165== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28165== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28165== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28165== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28165== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28165== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28165== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28165== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28165== by 0x8062D5B: main (nginx.c:385)
==28165== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28165==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache ==28165==
==28165== Process terminating with default action of signal 11 (SIGSEGV)
==28165== Access not within mapped region at address 0x0
==28165== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28165== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28165== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28165== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28165== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28165== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28165== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28165== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28165== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28165== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28165== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28165== by 0x8062D5B: main (nginx.c:385)
==28165== If you believe this happened as a result of a stack
==28165== overflow in your program's main thread (unlikely but
==28165== possible), you can try to increase the size of the
==28165== main thread stack using the --main-stacksize= flag.
==28165== The main thread stack size used in this run was 8388608.
==28165== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,861
==28165== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28165== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28165== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28165== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28165== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28165== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28165== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28165== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28165== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28165== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28165== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28165== by 0x40BB675: trace_state (lj_trace.c:690)
==28165== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28165== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28165== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28165== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28165== by 0x407FA29: lua_resume (lj_api.c:1296)
==28165== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28165== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28165== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28165== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28165== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28165== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28165== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28165== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28165== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28165== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28165== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28165== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28165== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28165== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28165== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28165== by 0x8062D5B: main (nginx.c:385)
==28165==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 26: bad UTF-8 ==28177== Invalid read of size 4
==28177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28177== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28177== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28177== by 0x8062D5B: main (nginx.c:385)
==28177== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28177==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 ==28177==
==28177== Process terminating with default action of signal 11 (SIGSEGV)
==28177== Access not within mapped region at address 0x0
==28177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28177== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28177== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28177== by 0x8062D5B: main (nginx.c:385)
==28177== If you believe this happened as a result of a stack
==28177== overflow in your program's main thread (unlikely but
==28177== possible), you can try to increase the size of the
==28177== main thread stack using the --main-stacksize= flag.
==28177== The main thread stack size used in this run was 8388608.
==28177== 1,024 bytes in 1 blocks are definitely lost in loss record 2,894 of 3,022
==28177== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28177== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28177== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28177== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28177== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28177== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28177== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28177== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28177== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28177== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28177== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28177== by 0x40BB675: trace_state (lj_trace.c:690)
==28177== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28177== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28177== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28177== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28177== by 0x407FA29: lua_resume (lj_api.c:1296)
==28177== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28177== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28177== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28177== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28177== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28177== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28177== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28177== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28177== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28177== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28177== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28177== by 0x8062D5B: main (nginx.c:385)
==28177==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 ==28198== Invalid read of size 4
==28198== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28198== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28198== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28198== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28198== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28198== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28198== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28198== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28198== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28198== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28198== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28198== by 0x8062D5B: main (nginx.c:385)
==28198== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28198==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 ==28198==
==28198== Process terminating with default action of signal 11 (SIGSEGV)
==28198== Access not within mapped region at address 0x0
==28198== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28198== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28198== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28198== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28198== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28198== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28198== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28198== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28198== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28198== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28198== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28198== by 0x8062D5B: main (nginx.c:385)
==28198== If you believe this happened as a result of a stack
==28198== overflow in your program's main thread (unlikely but
==28198== possible), you can try to increase the size of the
==28198== main thread stack using the --main-stacksize= flag.
==28198== The main thread stack size used in this run was 8388608.
==28198== 1,024 bytes in 1 blocks are definitely lost in loss record 2,894 of 3,022
==28198== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28198== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28198== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28198== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28198== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28198== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28198== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28198== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28198== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28198== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28198== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28198== by 0x40BB675: trace_state (lj_trace.c:690)
==28198== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28198== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28198== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28198== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28198== by 0x407FA29: lua_resume (lj_api.c:1296)
==28198== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28198== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28198== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28198== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28198== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28198== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28198== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28198== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28198== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28198== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28198== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28198== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28198== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28198== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28198== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28198== by 0x8062D5B: main (nginx.c:385)
==28198==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 ==28199== Invalid read of size 4
==28199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28199== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28199== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28199== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28199== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28199== by 0x8062D5B: main (nginx.c:385)
==28199== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28199==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 ==28199==
==28199== Process terminating with default action of signal 11 (SIGSEGV)
==28199== Access not within mapped region at address 0x0
==28199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28199== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28199== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28199== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28199== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28199== by 0x8062D5B: main (nginx.c:385)
==28199== If you believe this happened as a result of a stack
==28199== overflow in your program's main thread (unlikely but
==28199== possible), you can try to increase the size of the
==28199== main thread stack using the --main-stacksize= flag.
==28199== The main thread stack size used in this run was 8388608.
==28199== 1,024 bytes in 1 blocks are definitely lost in loss record 2,894 of 3,022
==28199== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28199== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28199== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28199== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28199== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28199== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28199== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28199== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28199== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28199== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28199== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28199== by 0x40BB675: trace_state (lj_trace.c:690)
==28199== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28199== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28199== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28199== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28199== by 0x407FA29: lua_resume (lj_api.c:1296)
==28199== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28199== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28199== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28199== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28199== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28199== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28199== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28199== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28199== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28199== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28199== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28199== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28199== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28199== by 0x8062D5B: main (nginx.c:385)
==28199==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 ==28200== Invalid read of size 4
==28200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28200== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28200== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28200== by 0x8062D5B: main (nginx.c:385)
==28200== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28200==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 ==28200==
==28200== Process terminating with default action of signal 11 (SIGSEGV)
==28200== Access not within mapped region at address 0x0
==28200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28200== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28200== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28200== by 0x8062D5B: main (nginx.c:385)
==28200== If you believe this happened as a result of a stack
==28200== overflow in your program's main thread (unlikely but
==28200== possible), you can try to increase the size of the
==28200== main thread stack using the --main-stacksize= flag.
==28200== The main thread stack size used in this run was 8388608.
==28200== 1,024 bytes in 1 blocks are definitely lost in loss record 2,894 of 3,022
==28200== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28200== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28200== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28200== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28200== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28200== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28200== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28200== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28200== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28200== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28200== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28200== by 0x40BB675: trace_state (lj_trace.c:690)
==28200== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28200== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28200== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28200== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28200== by 0x407FA29: lua_resume (lj_api.c:1296)
==28200== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28200== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28200== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28200== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28200== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28200== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28200== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28200== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28200== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28200== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28200== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28200== by 0x8062D5B: main (nginx.c:385)
==28200==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 ==28201== Invalid read of size 4
==28201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28201== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28201== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28201== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28201== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28201== by 0x8062D5B: main (nginx.c:385)
==28201== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28201==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 ==28201==
==28201== Process terminating with default action of signal 11 (SIGSEGV)
==28201== Access not within mapped region at address 0x0
==28201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28201== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28201== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28201== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28201== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28201== by 0x8062D5B: main (nginx.c:385)
==28201== If you believe this happened as a result of a stack
==28201== overflow in your program's main thread (unlikely but
==28201== possible), you can try to increase the size of the
==28201== main thread stack using the --main-stacksize= flag.
==28201== The main thread stack size used in this run was 8388608.
==28201== 1,024 bytes in 1 blocks are definitely lost in loss record 2,894 of 3,022
==28201== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28201== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28201== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28201== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28201== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28201== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28201== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28201== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28201== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28201== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28201== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28201== by 0x40BB675: trace_state (lj_trace.c:690)
==28201== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28201== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28201== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28201== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28201== by 0x407FA29: lua_resume (lj_api.c:1296)
==28201== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28201== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28201== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28201== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28201== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28201== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28201== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28201== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28201== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28201== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28201== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28201== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28201== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28201== by 0x8062D5B: main (nginx.c:385)
==28201==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28213== Invalid read of size 4
==28213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28213== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28213== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28213== by 0x8062D5B: main (nginx.c:385)
==28213== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28213==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28213==
==28213== Process terminating with default action of signal 11 (SIGSEGV)
==28213== Access not within mapped region at address 0x0
==28213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28213== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28213== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28213== by 0x8062D5B: main (nginx.c:385)
==28213== If you believe this happened as a result of a stack
==28213== overflow in your program's main thread (unlikely but
==28213== possible), you can try to increase the size of the
==28213== main thread stack using the --main-stacksize= flag.
==28213== The main thread stack size used in this run was 8388608.
==28213== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==28213== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28213== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28213== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28213== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28213== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28213== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28213== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28213== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28213== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28213== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28213== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28213== by 0x40BB675: trace_state (lj_trace.c:690)
==28213== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28213== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28213== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28213== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28213== by 0x407FA29: lua_resume (lj_api.c:1296)
==28213== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28213== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28213== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28213== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28213== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28213== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28213== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28213== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28213== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28213== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28213== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28213== by 0x8062D5B: main (nginx.c:385)
==28213==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28234== Invalid read of size 4
==28234== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28234== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28234== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28234== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28234== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28234== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28234== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28234== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28234== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28234== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28234== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28234== by 0x8062D5B: main (nginx.c:385)
==28234== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28234==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28234==
==28234== Process terminating with default action of signal 11 (SIGSEGV)
==28234== Access not within mapped region at address 0x0
==28234== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28234== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28234== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28234== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28234== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28234== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28234== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28234== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28234== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28234== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28234== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28234== by 0x8062D5B: main (nginx.c:385)
==28234== If you believe this happened as a result of a stack
==28234== overflow in your program's main thread (unlikely but
==28234== possible), you can try to increase the size of the
==28234== main thread stack using the --main-stacksize= flag.
==28234== The main thread stack size used in this run was 8388608.
==28234== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==28234== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28234== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28234== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28234== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28234== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28234== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28234== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28234== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28234== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28234== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28234== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28234== by 0x40BB675: trace_state (lj_trace.c:690)
==28234== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28234== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28234== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28234== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28234== by 0x407FA29: lua_resume (lj_api.c:1296)
==28234== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28234== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28234== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28234== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28234== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28234== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28234== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28234== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28234== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28234== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28234== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28234== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28234== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28234== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28234== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28234== by 0x8062D5B: main (nginx.c:385)
==28234==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28235== Invalid read of size 4
==28235== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28235== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28235== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28235== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28235== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28235== by 0x8062D5B: main (nginx.c:385)
==28235== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28235==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28235==
==28235== Process terminating with default action of signal 11 (SIGSEGV)
==28235== Access not within mapped region at address 0x0
==28235== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28235== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28235== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28235== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28235== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28235== by 0x8062D5B: main (nginx.c:385)
==28235== If you believe this happened as a result of a stack
==28235== overflow in your program's main thread (unlikely but
==28235== possible), you can try to increase the size of the
==28235== main thread stack using the --main-stacksize= flag.
==28235== The main thread stack size used in this run was 8388608.
==28235== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==28235== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28235== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28235== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28235== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28235== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28235== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28235== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28235== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28235== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28235== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28235== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28235== by 0x40BB675: trace_state (lj_trace.c:690)
==28235== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28235== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28235== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28235== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28235== by 0x407FA29: lua_resume (lj_api.c:1296)
==28235== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28235== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28235== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28235== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28235== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28235== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28235== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28235== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28235== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28235== by 0x8062D5B: main (nginx.c:385)
==28235==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28236== Invalid read of size 4
==28236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28236== by 0x8062D5B: main (nginx.c:385)
==28236== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28236==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28236==
==28236== Process terminating with default action of signal 11 (SIGSEGV)
==28236== Access not within mapped region at address 0x0
==28236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28236== by 0x8062D5B: main (nginx.c:385)
==28236== If you believe this happened as a result of a stack
==28236== overflow in your program's main thread (unlikely but
==28236== possible), you can try to increase the size of the
==28236== main thread stack using the --main-stacksize= flag.
==28236== The main thread stack size used in this run was 8388608.
==28236== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==28236== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28236== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28236== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28236== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28236== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28236== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28236== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28236== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28236== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28236== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28236== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28236== by 0x40BB675: trace_state (lj_trace.c:690)
==28236== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28236== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28236== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28236== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28236== by 0x407FA29: lua_resume (lj_api.c:1296)
==28236== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28236== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28236== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28236== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28236== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28236== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28236== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28236== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28236== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28236== by 0x8062D5B: main (nginx.c:385)
==28236==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28237== Invalid read of size 4
==28237== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28237== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28237== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28237== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28237== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28237== by 0x8062D5B: main (nginx.c:385)
==28237== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28237==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) ==28237==
==28237== Process terminating with default action of signal 11 (SIGSEGV)
==28237== Access not within mapped region at address 0x0
==28237== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28237== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28237== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28237== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28237== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28237== by 0x8062D5B: main (nginx.c:385)
==28237== If you believe this happened as a result of a stack
==28237== overflow in your program's main thread (unlikely but
==28237== possible), you can try to increase the size of the
==28237== main thread stack using the --main-stacksize= flag.
==28237== The main thread stack size used in this run was 8388608.
==28237== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==28237== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28237== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28237== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28237== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28237== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28237== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28237== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28237== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28237== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28237== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28237== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28237== by 0x40BB675: trace_state (lj_trace.c:690)
==28237== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28237== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28237== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28237== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28237== by 0x407FA29: lua_resume (lj_api.c:1296)
==28237== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28237== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28237== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28237== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28237== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28237== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28237== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28237== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28237== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28237== by 0x8062D5B: main (nginx.c:385)
==28237==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28249== Invalid read of size 4
==28249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28249== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28249== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28249== by 0x8062D5B: main (nginx.c:385)
==28249== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28249==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28249==
==28249== Process terminating with default action of signal 11 (SIGSEGV)
==28249== Access not within mapped region at address 0x0
==28249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28249== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28249== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28249== by 0x8062D5B: main (nginx.c:385)
==28249== If you believe this happened as a result of a stack
==28249== overflow in your program's main thread (unlikely but
==28249== possible), you can try to increase the size of the
==28249== main thread stack using the --main-stacksize= flag.
==28249== The main thread stack size used in this run was 8388608.
==28249== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,865
==28249== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28249== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28249== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28249== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28249== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28249== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28249== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28249== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28249== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28249== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28249== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28249== by 0x40BB675: trace_state (lj_trace.c:690)
==28249== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28249== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28249== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28249== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28249== by 0x407FA29: lua_resume (lj_api.c:1296)
==28249== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28249== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28249== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28249== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28249== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28249== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28249== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28249== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28249== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28249== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28249== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28249== by 0x8062D5B: main (nginx.c:385)
==28249==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28270== Invalid read of size 4
==28270== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28270== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28270== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28270== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28270== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28270== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28270== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28270== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28270== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28270== by 0x8062D5B: main (nginx.c:385)
==28270== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28270==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28270==
==28270== Process terminating with default action of signal 11 (SIGSEGV)
==28270== Access not within mapped region at address 0x0
==28270== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28270== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28270== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28270== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28270== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28270== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28270== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28270== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28270== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28270== by 0x8062D5B: main (nginx.c:385)
==28270== If you believe this happened as a result of a stack
==28270== overflow in your program's main thread (unlikely but
==28270== possible), you can try to increase the size of the
==28270== main thread stack using the --main-stacksize= flag.
==28270== The main thread stack size used in this run was 8388608.
==28270== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,865
==28270== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28270== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28270== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28270== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28270== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28270== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28270== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28270== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28270== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28270== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28270== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28270== by 0x40BB675: trace_state (lj_trace.c:690)
==28270== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28270== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28270== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28270== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28270== by 0x407FA29: lua_resume (lj_api.c:1296)
==28270== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28270== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28270== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28270== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28270== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28270== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28270== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28270== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28270== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28270== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28270== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28270== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28270== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28270== by 0x8062D5B: main (nginx.c:385)
==28270==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28271== Invalid read of size 4
==28271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28271== by 0x8062D5B: main (nginx.c:385)
==28271== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28271==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28271==
==28271== Process terminating with default action of signal 11 (SIGSEGV)
==28271== Access not within mapped region at address 0x0
==28271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28271== by 0x8062D5B: main (nginx.c:385)
==28271== If you believe this happened as a result of a stack
==28271== overflow in your program's main thread (unlikely but
==28271== possible), you can try to increase the size of the
==28271== main thread stack using the --main-stacksize= flag.
==28271== The main thread stack size used in this run was 8388608.
==28271== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,865
==28271== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28271== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28271== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28271== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28271== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28271== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28271== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28271== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28271== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28271== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28271== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28271== by 0x40BB675: trace_state (lj_trace.c:690)
==28271== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28271== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28271== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28271== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28271== by 0x407FA29: lua_resume (lj_api.c:1296)
==28271== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28271== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28271== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28271== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28271== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28271== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28271== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28271== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28271== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28271== by 0x8062D5B: main (nginx.c:385)
==28271==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28272== Invalid read of size 4
==28272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28272== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28272== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28272== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28272== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28272== by 0x8062D5B: main (nginx.c:385)
==28272== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28272==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28272==
==28272== Process terminating with default action of signal 11 (SIGSEGV)
==28272== Access not within mapped region at address 0x0
==28272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28272== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28272== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28272== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28272== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28272== by 0x8062D5B: main (nginx.c:385)
==28272== If you believe this happened as a result of a stack
==28272== overflow in your program's main thread (unlikely but
==28272== possible), you can try to increase the size of the
==28272== main thread stack using the --main-stacksize= flag.
==28272== The main thread stack size used in this run was 8388608.
==28272== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,865
==28272== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28272== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28272== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28272== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28272== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28272== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28272== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28272== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28272== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28272== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28272== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28272== by 0x40BB675: trace_state (lj_trace.c:690)
==28272== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28272== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28272== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28272== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28272== by 0x407FA29: lua_resume (lj_api.c:1296)
==28272== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28272== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28272== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28272== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28272== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28272== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28272== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28272== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28272== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28272== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28272== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28272== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28272== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28272== by 0x8062D5B: main (nginx.c:385)
==28272==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28273== Invalid read of size 4
==28273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28273== by 0x8062D5B: main (nginx.c:385)
==28273== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28273==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) ==28273==
==28273== Process terminating with default action of signal 11 (SIGSEGV)
==28273== Access not within mapped region at address 0x0
==28273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28273== by 0x8062D5B: main (nginx.c:385)
==28273== If you believe this happened as a result of a stack
==28273== overflow in your program's main thread (unlikely but
==28273== possible), you can try to increase the size of the
==28273== main thread stack using the --main-stacksize= flag.
==28273== The main thread stack size used in this run was 8388608.
==28273== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,865
==28273== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28273== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28273== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28273== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28273== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28273== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28273== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28273== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28273== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28273== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28273== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28273== by 0x40BB675: trace_state (lj_trace.c:690)
==28273== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28273== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28273== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28273== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28273== by 0x407FA29: lua_resume (lj_api.c:1296)
==28273== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28273== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28273== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28273== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28273== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28273== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28273== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28273== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28273== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28273== by 0x8062D5B: main (nginx.c:385)
==28273==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern ==28285== Invalid read of size 4
==28285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28285== by 0x8062D5B: main (nginx.c:385)
==28285== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28285==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern ==28285==
==28285== Process terminating with default action of signal 11 (SIGSEGV)
==28285== Access not within mapped region at address 0x0
==28285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28285== by 0x8062D5B: main (nginx.c:385)
==28285== If you believe this happened as a result of a stack
==28285== overflow in your program's main thread (unlikely but
==28285== possible), you can try to increase the size of the
==28285== main thread stack using the --main-stacksize= flag.
==28285== The main thread stack size used in this run was 8388608.
==28285== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,009
==28285== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28285== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28285== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28285== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28285== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28285== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28285== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28285== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28285== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28285== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28285== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28285== by 0x40BB675: trace_state (lj_trace.c:690)
==28285== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28285== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28285== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28285== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28285== by 0x407FA29: lua_resume (lj_api.c:1296)
==28285== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28285== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28285== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28285== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28285== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28285== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28285== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28285== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28285== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28285== by 0x8062D5B: main (nginx.c:385)
==28285==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern ==28306== Invalid read of size 4
==28306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28306== by 0x8062D5B: main (nginx.c:385)
==28306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern ==28306==
==28306== Process terminating with default action of signal 11 (SIGSEGV)
==28306== Access not within mapped region at address 0x0
==28306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28306== by 0x8062D5B: main (nginx.c:385)
==28306== If you believe this happened as a result of a stack
==28306== overflow in your program's main thread (unlikely but
==28306== possible), you can try to increase the size of the
==28306== main thread stack using the --main-stacksize= flag.
==28306== The main thread stack size used in this run was 8388608.
==28306== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,009
==28306== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28306== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28306== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28306== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28306== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28306== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28306== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28306== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28306== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28306== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28306== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28306== by 0x40BB675: trace_state (lj_trace.c:690)
==28306== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28306== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28306== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28306== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28306== by 0x407FA29: lua_resume (lj_api.c:1296)
==28306== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28306== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28306== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28306== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28306== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28306== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28306== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28306== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28306== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28306== by 0x8062D5B: main (nginx.c:385)
==28306==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern ==28307== Invalid read of size 4
==28307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28307== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28307== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28307== by 0x8062D5B: main (nginx.c:385)
==28307== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28307==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern ==28307==
==28307== Process terminating with default action of signal 11 (SIGSEGV)
==28307== Access not within mapped region at address 0x0
==28307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28307== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28307== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28307== by 0x8062D5B: main (nginx.c:385)
==28307== If you believe this happened as a result of a stack
==28307== overflow in your program's main thread (unlikely but
==28307== possible), you can try to increase the size of the
==28307== main thread stack using the --main-stacksize= flag.
==28307== The main thread stack size used in this run was 8388608.
==28307== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,009
==28307== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28307== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28307== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28307== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28307== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28307== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28307== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28307== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28307== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28307== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28307== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28307== by 0x40BB675: trace_state (lj_trace.c:690)
==28307== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28307== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28307== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28307== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28307== by 0x407FA29: lua_resume (lj_api.c:1296)
==28307== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28307== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28307== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28307== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28307== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28307== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28307== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28307== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28307== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28307== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28307== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28307== by 0x8062D5B: main (nginx.c:385)
==28307==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern ==28308== Invalid read of size 4
==28308== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28308== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28308== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28308== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28308== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28308== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28308== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28308== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28308== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28308== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28308== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28308== by 0x8062D5B: main (nginx.c:385)
==28308== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28308==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern ==28308==
==28308== Process terminating with default action of signal 11 (SIGSEGV)
==28308== Access not within mapped region at address 0x0
==28308== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28308== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28308== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28308== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28308== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28308== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28308== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28308== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28308== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28308== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28308== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28308== by 0x8062D5B: main (nginx.c:385)
==28308== If you believe this happened as a result of a stack
==28308== overflow in your program's main thread (unlikely but
==28308== possible), you can try to increase the size of the
==28308== main thread stack using the --main-stacksize= flag.
==28308== The main thread stack size used in this run was 8388608.
==28308== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,009
==28308== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28308== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28308== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28308== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28308== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28308== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28308== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28308== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28308== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28308== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28308== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28308== by 0x40BB675: trace_state (lj_trace.c:690)
==28308== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28308== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28308== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28308== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28308== by 0x407FA29: lua_resume (lj_api.c:1296)
==28308== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28308== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28308== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28308== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28308== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28308== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28308== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28308== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28308== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28308== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28308== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28308== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28308== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28308== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28308== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28308== by 0x8062D5B: main (nginx.c:385)
==28308==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern ==28309== Invalid read of size 4
==28309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28309== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28309== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28309== by 0x8062D5B: main (nginx.c:385)
==28309== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28309==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern ==28309==
==28309== Process terminating with default action of signal 11 (SIGSEGV)
==28309== Access not within mapped region at address 0x0
==28309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28309== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28309== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28309== by 0x8062D5B: main (nginx.c:385)
==28309== If you believe this happened as a result of a stack
==28309== overflow in your program's main thread (unlikely but
==28309== possible), you can try to increase the size of the
==28309== main thread stack using the --main-stacksize= flag.
==28309== The main thread stack size used in this run was 8388608.
==28309== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,009
==28309== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28309== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28309== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28309== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28309== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28309== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28309== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28309== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28309== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28309== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28309== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28309== by 0x40BB675: trace_state (lj_trace.c:690)
==28309== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28309== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28309== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28309== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28309== by 0x407FA29: lua_resume (lj_api.c:1296)
==28309== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28309== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28309== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28309== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28309== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28309== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28309== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28309== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28309== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28309== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28309== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28309== by 0x8062D5B: main (nginx.c:385)
==28309==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) ==28321== Invalid read of size 4
==28321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28321== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28321== by 0x8062D5B: main (nginx.c:385)
==28321== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28321==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) ==28321==
==28321== Process terminating with default action of signal 11 (SIGSEGV)
==28321== Access not within mapped region at address 0x0
==28321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28321== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28321== by 0x8062D5B: main (nginx.c:385)
==28321== If you believe this happened as a result of a stack
==28321== overflow in your program's main thread (unlikely but
==28321== possible), you can try to increase the size of the
==28321== main thread stack using the --main-stacksize= flag.
==28321== The main thread stack size used in this run was 8388608.
==28321== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,882
==28321== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28321== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28321== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28321== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28321== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28321== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28321== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28321== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28321== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28321== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28321== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28321== by 0x40BB675: trace_state (lj_trace.c:690)
==28321== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28321== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28321== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28321== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28321== by 0x407FA29: lua_resume (lj_api.c:1296)
==28321== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28321== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28321== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28321== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28321== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28321== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28321== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28321== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28321== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28321== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28321== by 0x8062D5B: main (nginx.c:385)
==28321==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) ==28342== Invalid read of size 4
==28342== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28342== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28342== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28342== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28342== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28342== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28342== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28342== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28342== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28342== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28342== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28342== by 0x8062D5B: main (nginx.c:385)
==28342== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28342==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) ==28342==
==28342== Process terminating with default action of signal 11 (SIGSEGV)
==28342== Access not within mapped region at address 0x0
==28342== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28342== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28342== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28342== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28342== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28342== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28342== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28342== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28342== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28342== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28342== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28342== by 0x8062D5B: main (nginx.c:385)
==28342== If you believe this happened as a result of a stack
==28342== overflow in your program's main thread (unlikely but
==28342== possible), you can try to increase the size of the
==28342== main thread stack using the --main-stacksize= flag.
==28342== The main thread stack size used in this run was 8388608.
==28342== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,882
==28342== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28342== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28342== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28342== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28342== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28342== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28342== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28342== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28342== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28342== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28342== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28342== by 0x40BB675: trace_state (lj_trace.c:690)
==28342== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28342== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28342== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28342== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28342== by 0x407FA29: lua_resume (lj_api.c:1296)
==28342== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28342== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28342== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28342== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28342== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28342== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28342== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28342== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28342== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28342== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28342== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28342== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28342== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28342== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28342== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28342== by 0x8062D5B: main (nginx.c:385)
==28342==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) ==28343== Invalid read of size 4
==28343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28343== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28343== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28343== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28343== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28343== by 0x8062D5B: main (nginx.c:385)
==28343== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28343==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) ==28343==
==28343== Process terminating with default action of signal 11 (SIGSEGV)
==28343== Access not within mapped region at address 0x0
==28343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28343== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28343== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28343== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28343== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28343== by 0x8062D5B: main (nginx.c:385)
==28343== If you believe this happened as a result of a stack
==28343== overflow in your program's main thread (unlikely but
==28343== possible), you can try to increase the size of the
==28343== main thread stack using the --main-stacksize= flag.
==28343== The main thread stack size used in this run was 8388608.
==28343== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,882
==28343== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28343== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28343== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28343== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28343== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28343== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28343== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28343== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28343== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28343== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28343== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28343== by 0x40BB675: trace_state (lj_trace.c:690)
==28343== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28343== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28343== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28343== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28343== by 0x407FA29: lua_resume (lj_api.c:1296)
==28343== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28343== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28343== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28343== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28343== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28343== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28343== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28343== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28343== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28343== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28343== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28343== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28343== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28343== by 0x8062D5B: main (nginx.c:385)
==28343==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) ==28344== Invalid read of size 4
==28344== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28344== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28344== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28344== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28344== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28344== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28344== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28344== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28344== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28344== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28344== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28344== by 0x8062D5B: main (nginx.c:385)
==28344== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28344==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) ==28344==
==28344== Process terminating with default action of signal 11 (SIGSEGV)
==28344== Access not within mapped region at address 0x0
==28344== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28344== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28344== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28344== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28344== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28344== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28344== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28344== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28344== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28344== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28344== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28344== by 0x8062D5B: main (nginx.c:385)
==28344== If you believe this happened as a result of a stack
==28344== overflow in your program's main thread (unlikely but
==28344== possible), you can try to increase the size of the
==28344== main thread stack using the --main-stacksize= flag.
==28344== The main thread stack size used in this run was 8388608.
==28344== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,882
==28344== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28344== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28344== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28344== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28344== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28344== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28344== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28344== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28344== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28344== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28344== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28344== by 0x40BB675: trace_state (lj_trace.c:690)
==28344== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28344== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28344== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28344== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28344== by 0x407FA29: lua_resume (lj_api.c:1296)
==28344== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28344== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28344== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28344== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28344== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28344== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28344== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28344== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28344== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28344== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28344== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28344== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28344== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28344== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28344== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28344== by 0x8062D5B: main (nginx.c:385)
==28344==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) ==28345== Invalid read of size 4
==28345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28345== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28345== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28345== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28345== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28345== by 0x8062D5B: main (nginx.c:385)
==28345== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28345==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) ==28345==
==28345== Process terminating with default action of signal 11 (SIGSEGV)
==28345== Access not within mapped region at address 0x0
==28345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28345== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28345== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28345== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28345== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28345== by 0x8062D5B: main (nginx.c:385)
==28345== If you believe this happened as a result of a stack
==28345== overflow in your program's main thread (unlikely but
==28345== possible), you can try to increase the size of the
==28345== main thread stack using the --main-stacksize= flag.
==28345== The main thread stack size used in this run was 8388608.
==28345== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,882
==28345== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28345== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28345== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28345== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28345== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28345== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28345== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28345== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28345== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28345== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28345== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28345== by 0x40BB675: trace_state (lj_trace.c:690)
==28345== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28345== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28345== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28345== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28345== by 0x407FA29: lua_resume (lj_api.c:1296)
==28345== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28345== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28345== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28345== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28345== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28345== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28345== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28345== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28345== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28345== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28345== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28345== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28345== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28345== by 0x8062D5B: main (nginx.c:385)
==28345==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28357== Invalid read of size 4
==28357== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28357== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28357== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28357== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28357== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28357== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28357== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28357== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28357== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28357== by 0x8062D5B: main (nginx.c:385)
==28357== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28357==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28357==
==28357== Process terminating with default action of signal 11 (SIGSEGV)
==28357== Access not within mapped region at address 0x0
==28357== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28357== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28357== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28357== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28357== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28357== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28357== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28357== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28357== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28357== by 0x8062D5B: main (nginx.c:385)
==28357== If you believe this happened as a result of a stack
==28357== overflow in your program's main thread (unlikely but
==28357== possible), you can try to increase the size of the
==28357== main thread stack using the --main-stacksize= flag.
==28357== The main thread stack size used in this run was 8388608.
==28357== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,023
==28357== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28357== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28357== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28357== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28357== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28357== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28357== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28357== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28357== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28357== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28357== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28357== by 0x40BB675: trace_state (lj_trace.c:690)
==28357== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28357== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28357== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28357== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28357== by 0x407FA29: lua_resume (lj_api.c:1296)
==28357== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28357== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28357== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28357== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28357== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28357== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28357== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28357== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28357== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28357== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28357== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28357== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28357== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28357== by 0x8062D5B: main (nginx.c:385)
==28357==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28378== Invalid read of size 4
==28378== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28378== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28378== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28378== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28378== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28378== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28378== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28378== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28378== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28378== by 0x8062D5B: main (nginx.c:385)
==28378== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28378==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28378==
==28378== Process terminating with default action of signal 11 (SIGSEGV)
==28378== Access not within mapped region at address 0x0
==28378== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28378== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28378== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28378== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28378== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28378== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28378== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28378== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28378== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28378== by 0x8062D5B: main (nginx.c:385)
==28378== If you believe this happened as a result of a stack
==28378== overflow in your program's main thread (unlikely but
==28378== possible), you can try to increase the size of the
==28378== main thread stack using the --main-stacksize= flag.
==28378== The main thread stack size used in this run was 8388608.
==28378== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,023
==28378== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28378== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28378== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28378== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28378== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28378== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28378== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28378== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28378== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28378== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28378== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28378== by 0x40BB675: trace_state (lj_trace.c:690)
==28378== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28378== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28378== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28378== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28378== by 0x407FA29: lua_resume (lj_api.c:1296)
==28378== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28378== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28378== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28378== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28378== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28378== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28378== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28378== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28378== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28378== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28378== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28378== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28378== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28378== by 0x8062D5B: main (nginx.c:385)
==28378==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28379== Invalid read of size 4
==28379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28379== by 0x8062D5B: main (nginx.c:385)
==28379== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28379==
==28379== Process terminating with default action of signal 11 (SIGSEGV)
==28379== Access not within mapped region at address 0x0
==28379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28379== by 0x8062D5B: main (nginx.c:385)
==28379== If you believe this happened as a result of a stack
==28379== overflow in your program's main thread (unlikely but
==28379== possible), you can try to increase the size of the
==28379== main thread stack using the --main-stacksize= flag.
==28379== The main thread stack size used in this run was 8388608.
==28379== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,023
==28379== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28379== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28379== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28379== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28379== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28379== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28379== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28379== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28379== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28379== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28379== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28379== by 0x40BB675: trace_state (lj_trace.c:690)
==28379== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28379== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28379== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28379== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28379== by 0x407FA29: lua_resume (lj_api.c:1296)
==28379== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28379== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28379== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28379== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28379== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28379== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28379== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28379== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28379== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28379== by 0x8062D5B: main (nginx.c:385)
==28379==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28380== Invalid read of size 4
==28380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28380== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28380== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28380== by 0x8062D5B: main (nginx.c:385)
==28380== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28380==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28380==
==28380== Process terminating with default action of signal 11 (SIGSEGV)
==28380== Access not within mapped region at address 0x0
==28380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28380== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28380== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28380== by 0x8062D5B: main (nginx.c:385)
==28380== If you believe this happened as a result of a stack
==28380== overflow in your program's main thread (unlikely but
==28380== possible), you can try to increase the size of the
==28380== main thread stack using the --main-stacksize= flag.
==28380== The main thread stack size used in this run was 8388608.
==28380== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,023
==28380== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28380== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28380== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28380== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28380== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28380== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28380== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28380== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28380== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28380== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28380== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28380== by 0x40BB675: trace_state (lj_trace.c:690)
==28380== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28380== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28380== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28380== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28380== by 0x407FA29: lua_resume (lj_api.c:1296)
==28380== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28380== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28380== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28380== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28380== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28380== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28380== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28380== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28380== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28380== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28380== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28380== by 0x8062D5B: main (nginx.c:385)
==28380==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28381== Invalid read of size 4
==28381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28381== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28381== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28381== by 0x8062D5B: main (nginx.c:385)
==28381== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28381==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks ==28381==
==28381== Process terminating with default action of signal 11 (SIGSEGV)
==28381== Access not within mapped region at address 0x0
==28381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28381== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28381== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28381== by 0x8062D5B: main (nginx.c:385)
==28381== If you believe this happened as a result of a stack
==28381== overflow in your program's main thread (unlikely but
==28381== possible), you can try to increase the size of the
==28381== main thread stack using the --main-stacksize= flag.
==28381== The main thread stack size used in this run was 8388608.
==28381== 1,024 bytes in 1 blocks are definitely lost in loss record 2,895 of 3,023
==28381== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28381== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28381== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28381== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28381== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28381== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28381== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28381== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28381== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28381== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28381== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28381== by 0x40BB675: trace_state (lj_trace.c:690)
==28381== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28381== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28381== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28381== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28381== by 0x407FA29: lua_resume (lj_api.c:1296)
==28381== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28381== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28381== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28381== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28381== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28381== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28381== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28381== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28381== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28381== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28381== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28381== by 0x8062D5B: main (nginx.c:385)
==28381==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28393== Invalid read of size 4
==28393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28393== by 0x8062D5B: main (nginx.c:385)
==28393== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28393==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28393==
==28393== Process terminating with default action of signal 11 (SIGSEGV)
==28393== Access not within mapped region at address 0x0
==28393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28393== by 0x8062D5B: main (nginx.c:385)
==28393== If you believe this happened as a result of a stack
==28393== overflow in your program's main thread (unlikely but
==28393== possible), you can try to increase the size of the
==28393== main thread stack using the --main-stacksize= flag.
==28393== The main thread stack size used in this run was 8388608.
==28393== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,864
==28393== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28393== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28393== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28393== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28393== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28393== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28393== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28393== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28393== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28393== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28393== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28393== by 0x40BB675: trace_state (lj_trace.c:690)
==28393== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28393== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28393== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28393== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28393== by 0x407FA29: lua_resume (lj_api.c:1296)
==28393== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28393== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28393== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28393== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28393== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28393== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28393== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28393== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28393== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28393== by 0x8062D5B: main (nginx.c:385)
==28393==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28414== Invalid read of size 4
==28414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28414== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28414== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28414== by 0x8062D5B: main (nginx.c:385)
==28414== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28414==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28414==
==28414== Process terminating with default action of signal 11 (SIGSEGV)
==28414== Access not within mapped region at address 0x0
==28414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28414== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28414== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28414== by 0x8062D5B: main (nginx.c:385)
==28414== If you believe this happened as a result of a stack
==28414== overflow in your program's main thread (unlikely but
==28414== possible), you can try to increase the size of the
==28414== main thread stack using the --main-stacksize= flag.
==28414== The main thread stack size used in this run was 8388608.
==28414== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,864
==28414== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28414== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28414== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28414== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28414== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28414== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28414== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28414== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28414== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28414== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28414== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28414== by 0x40BB675: trace_state (lj_trace.c:690)
==28414== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28414== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28414== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28414== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28414== by 0x407FA29: lua_resume (lj_api.c:1296)
==28414== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28414== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28414== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28414== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28414== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28414== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28414== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28414== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28414== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28414== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28414== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28414== by 0x8062D5B: main (nginx.c:385)
==28414==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28415== Invalid read of size 4
==28415== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28415== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28415== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28415== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28415== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28415== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28415== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28415== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28415== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28415== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28415== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28415== by 0x8062D5B: main (nginx.c:385)
==28415== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28415==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28415==
==28415== Process terminating with default action of signal 11 (SIGSEGV)
==28415== Access not within mapped region at address 0x0
==28415== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28415== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28415== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28415== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28415== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28415== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28415== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28415== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28415== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28415== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28415== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28415== by 0x8062D5B: main (nginx.c:385)
==28415== If you believe this happened as a result of a stack
==28415== overflow in your program's main thread (unlikely but
==28415== possible), you can try to increase the size of the
==28415== main thread stack using the --main-stacksize= flag.
==28415== The main thread stack size used in this run was 8388608.
==28415== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,864
==28415== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28415== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28415== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28415== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28415== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28415== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28415== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28415== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28415== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28415== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28415== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28415== by 0x40BB675: trace_state (lj_trace.c:690)
==28415== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28415== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28415== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28415== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28415== by 0x407FA29: lua_resume (lj_api.c:1296)
==28415== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28415== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28415== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28415== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28415== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28415== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28415== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28415== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28415== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28415== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28415== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28415== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28415== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28415== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28415== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28415== by 0x8062D5B: main (nginx.c:385)
==28415==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28416== Invalid read of size 4
==28416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28416== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28416== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28416== by 0x8062D5B: main (nginx.c:385)
==28416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28416==
==28416== Process terminating with default action of signal 11 (SIGSEGV)
==28416== Access not within mapped region at address 0x0
==28416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28416== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28416== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28416== by 0x8062D5B: main (nginx.c:385)
==28416== If you believe this happened as a result of a stack
==28416== overflow in your program's main thread (unlikely but
==28416== possible), you can try to increase the size of the
==28416== main thread stack using the --main-stacksize= flag.
==28416== The main thread stack size used in this run was 8388608.
==28416== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,864
==28416== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28416== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28416== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28416== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28416== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28416== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28416== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28416== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28416== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28416== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28416== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28416== by 0x40BB675: trace_state (lj_trace.c:690)
==28416== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28416== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28416== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28416== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28416== by 0x407FA29: lua_resume (lj_api.c:1296)
==28416== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28416== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28416== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28416== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28416== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28416== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28416== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28416== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28416== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28416== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28416== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28416== by 0x8062D5B: main (nginx.c:385)
==28416==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28417== Invalid read of size 4
==28417== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28417== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28417== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28417== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28417== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28417== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28417== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28417== by 0x8062D5B: main (nginx.c:385)
==28417== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28417==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) ==28417==
==28417== Process terminating with default action of signal 11 (SIGSEGV)
==28417== Access not within mapped region at address 0x0
==28417== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28417== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28417== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28417== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28417== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28417== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28417== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28417== by 0x8062D5B: main (nginx.c:385)
==28417== If you believe this happened as a result of a stack
==28417== overflow in your program's main thread (unlikely but
==28417== possible), you can try to increase the size of the
==28417== main thread stack using the --main-stacksize= flag.
==28417== The main thread stack size used in this run was 8388608.
==28417== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,864
==28417== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28417== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28417== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28417== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28417== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28417== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28417== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28417== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28417== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28417== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28417== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28417== by 0x40BB675: trace_state (lj_trace.c:690)
==28417== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28417== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28417== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28417== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28417== by 0x407FA29: lua_resume (lj_api.c:1296)
==28417== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28417== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28417== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28417== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28417== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28417== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28417== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28417== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28417== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28417== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28417== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28417== by 0x8062D5B: main (nginx.c:385)
==28417==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern ==28429== Invalid read of size 4
==28429== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28429== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28429== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28429== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28429== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28429== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28429== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28429== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28429== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28429== by 0x8062D5B: main (nginx.c:385)
==28429== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28429==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern ==28429==
==28429== Process terminating with default action of signal 11 (SIGSEGV)
==28429== Access not within mapped region at address 0x0
==28429== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28429== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28429== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28429== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28429== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28429== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28429== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28429== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28429== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28429== by 0x8062D5B: main (nginx.c:385)
==28429== If you believe this happened as a result of a stack
==28429== overflow in your program's main thread (unlikely but
==28429== possible), you can try to increase the size of the
==28429== main thread stack using the --main-stacksize= flag.
==28429== The main thread stack size used in this run was 8388608.
==28429== 1,024 bytes in 1 blocks are definitely lost in loss record 2,776 of 2,887
==28429== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28429== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28429== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28429== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28429== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28429== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28429== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28429== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28429== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28429== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28429== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28429== by 0x40BB675: trace_state (lj_trace.c:690)
==28429== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28429== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28429== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28429== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28429== by 0x407FA29: lua_resume (lj_api.c:1296)
==28429== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28429== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28429== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28429== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28429== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28429== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28429== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28429== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28429== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28429== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28429== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28429== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28429== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28429== by 0x8062D5B: main (nginx.c:385)
==28429==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern ==28450== Invalid read of size 4
==28450== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28450== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28450== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28450== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28450== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28450== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28450== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28450== by 0x8062D5B: main (nginx.c:385)
==28450== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28450==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern ==28450==
==28450== Process terminating with default action of signal 11 (SIGSEGV)
==28450== Access not within mapped region at address 0x0
==28450== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28450== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28450== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28450== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28450== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28450== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28450== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28450== by 0x8062D5B: main (nginx.c:385)
==28450== If you believe this happened as a result of a stack
==28450== overflow in your program's main thread (unlikely but
==28450== possible), you can try to increase the size of the
==28450== main thread stack using the --main-stacksize= flag.
==28450== The main thread stack size used in this run was 8388608.
==28450== 1,024 bytes in 1 blocks are definitely lost in loss record 2,776 of 2,887
==28450== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28450== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28450== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28450== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28450== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28450== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28450== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28450== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28450== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28450== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28450== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28450== by 0x40BB675: trace_state (lj_trace.c:690)
==28450== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28450== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28450== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28450== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28450== by 0x407FA29: lua_resume (lj_api.c:1296)
==28450== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28450== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28450== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28450== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28450== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28450== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28450== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28450== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28450== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28450== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28450== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28450== by 0x8062D5B: main (nginx.c:385)
==28450==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern ==28451== Invalid read of size 4
==28451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28451== by 0x8062D5B: main (nginx.c:385)
==28451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern ==28451==
==28451== Process terminating with default action of signal 11 (SIGSEGV)
==28451== Access not within mapped region at address 0x0
==28451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28451== by 0x8062D5B: main (nginx.c:385)
==28451== If you believe this happened as a result of a stack
==28451== overflow in your program's main thread (unlikely but
==28451== possible), you can try to increase the size of the
==28451== main thread stack using the --main-stacksize= flag.
==28451== The main thread stack size used in this run was 8388608.
==28451== 1,024 bytes in 1 blocks are definitely lost in loss record 2,776 of 2,887
==28451== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28451== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28451== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28451== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28451== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28451== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28451== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28451== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28451== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28451== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28451== by 0x40BB675: trace_state (lj_trace.c:690)
==28451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28451== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28451== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28451== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28451== by 0x407FA29: lua_resume (lj_api.c:1296)
==28451== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28451== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28451== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28451== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28451== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28451== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28451== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28451== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28451== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28451== by 0x8062D5B: main (nginx.c:385)
==28451==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern ==28452== Invalid read of size 4
==28452== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28452== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28452== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28452== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28452== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28452== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28452== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28452== by 0x8062D5B: main (nginx.c:385)
==28452== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28452==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern ==28452==
==28452== Process terminating with default action of signal 11 (SIGSEGV)
==28452== Access not within mapped region at address 0x0
==28452== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28452== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28452== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28452== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28452== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28452== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28452== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28452== by 0x8062D5B: main (nginx.c:385)
==28452== If you believe this happened as a result of a stack
==28452== overflow in your program's main thread (unlikely but
==28452== possible), you can try to increase the size of the
==28452== main thread stack using the --main-stacksize= flag.
==28452== The main thread stack size used in this run was 8388608.
==28452== 1,024 bytes in 1 blocks are definitely lost in loss record 2,776 of 2,887
==28452== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28452== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28452== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28452== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28452== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28452== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28452== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28452== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28452== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28452== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28452== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28452== by 0x40BB675: trace_state (lj_trace.c:690)
==28452== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28452== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28452== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28452== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28452== by 0x407FA29: lua_resume (lj_api.c:1296)
==28452== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28452== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28452== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28452== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28452== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28452== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28452== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28452== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28452== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28452== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28452== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28452== by 0x8062D5B: main (nginx.c:385)
==28452==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern ==28453== Invalid read of size 4
==28453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28453== by 0x8062D5B: main (nginx.c:385)
==28453== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28453==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern ==28453==
==28453== Process terminating with default action of signal 11 (SIGSEGV)
==28453== Access not within mapped region at address 0x0
==28453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28453== by 0x8062D5B: main (nginx.c:385)
==28453== If you believe this happened as a result of a stack
==28453== overflow in your program's main thread (unlikely but
==28453== possible), you can try to increase the size of the
==28453== main thread stack using the --main-stacksize= flag.
==28453== The main thread stack size used in this run was 8388608.
==28453== 1,024 bytes in 1 blocks are definitely lost in loss record 2,776 of 2,887
==28453== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28453== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28453== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28453== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28453== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28453== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28453== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28453== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28453== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28453== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28453== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28453== by 0x40BB675: trace_state (lj_trace.c:690)
==28453== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28453== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28453== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28453== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28453== by 0x407FA29: lua_resume (lj_api.c:1296)
==28453== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28453== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28453== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28453== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28453== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28453== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28453== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28453== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28453== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28453== by 0x8062D5B: main (nginx.c:385)
==28453==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28465== Invalid read of size 4
==28465== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28465== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28465== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28465== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28465== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28465== by 0x8062D5B: main (nginx.c:385)
==28465== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28465==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28465==
==28465== Process terminating with default action of signal 11 (SIGSEGV)
==28465== Access not within mapped region at address 0x0
==28465== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28465== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28465== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28465== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28465== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28465== by 0x8062D5B: main (nginx.c:385)
==28465== If you believe this happened as a result of a stack
==28465== overflow in your program's main thread (unlikely but
==28465== possible), you can try to increase the size of the
==28465== main thread stack using the --main-stacksize= flag.
==28465== The main thread stack size used in this run was 8388608.
==28465== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==28465== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28465== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28465== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28465== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28465== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28465== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28465== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28465== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28465== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28465== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28465== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28465== by 0x40BB675: trace_state (lj_trace.c:690)
==28465== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28465== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28465== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28465== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28465== by 0x407FA29: lua_resume (lj_api.c:1296)
==28465== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28465== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28465== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28465== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28465== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28465== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28465== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28465== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28465== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28465== by 0x8062D5B: main (nginx.c:385)
==28465==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28486== Invalid read of size 4
==28486== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28486== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28486== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28486== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28486== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28486== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28486== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28486== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28486== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28486== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28486== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28486== by 0x8062D5B: main (nginx.c:385)
==28486== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28486==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28486==
==28486== Process terminating with default action of signal 11 (SIGSEGV)
==28486== Access not within mapped region at address 0x0
==28486== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28486== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28486== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28486== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28486== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28486== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28486== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28486== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28486== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28486== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28486== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28486== by 0x8062D5B: main (nginx.c:385)
==28486== If you believe this happened as a result of a stack
==28486== overflow in your program's main thread (unlikely but
==28486== possible), you can try to increase the size of the
==28486== main thread stack using the --main-stacksize= flag.
==28486== The main thread stack size used in this run was 8388608.
==28486== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==28486== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28486== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28486== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28486== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28486== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28486== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28486== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28486== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28486== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28486== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28486== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28486== by 0x40BB675: trace_state (lj_trace.c:690)
==28486== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28486== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28486== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28486== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28486== by 0x407FA29: lua_resume (lj_api.c:1296)
==28486== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28486== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28486== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28486== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28486== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28486== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28486== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28486== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28486== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28486== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28486== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28486== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28486== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28486== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28486== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28486== by 0x8062D5B: main (nginx.c:385)
==28486==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28487== Invalid read of size 4
==28487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28487== by 0x8062D5B: main (nginx.c:385)
==28487== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28487==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28487==
==28487== Process terminating with default action of signal 11 (SIGSEGV)
==28487== Access not within mapped region at address 0x0
==28487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28487== by 0x8062D5B: main (nginx.c:385)
==28487== If you believe this happened as a result of a stack
==28487== overflow in your program's main thread (unlikely but
==28487== possible), you can try to increase the size of the
==28487== main thread stack using the --main-stacksize= flag.
==28487== The main thread stack size used in this run was 8388608.
==28487== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==28487== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28487== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28487== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28487== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28487== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28487== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28487== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28487== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28487== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28487== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28487== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28487== by 0x40BB675: trace_state (lj_trace.c:690)
==28487== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28487== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28487== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28487== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28487== by 0x407FA29: lua_resume (lj_api.c:1296)
==28487== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28487== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28487== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28487== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28487== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28487== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28487== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28487== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28487== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28487== by 0x8062D5B: main (nginx.c:385)
==28487==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28488== Invalid read of size 4
==28488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28488== by 0x8062D5B: main (nginx.c:385)
==28488== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28488==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28488==
==28488== Process terminating with default action of signal 11 (SIGSEGV)
==28488== Access not within mapped region at address 0x0
==28488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28488== by 0x8062D5B: main (nginx.c:385)
==28488== If you believe this happened as a result of a stack
==28488== overflow in your program's main thread (unlikely but
==28488== possible), you can try to increase the size of the
==28488== main thread stack using the --main-stacksize= flag.
==28488== The main thread stack size used in this run was 8388608.
==28488== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==28488== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28488== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28488== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28488== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28488== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28488== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28488== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28488== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28488== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28488== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28488== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28488== by 0x40BB675: trace_state (lj_trace.c:690)
==28488== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28488== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28488== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28488== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28488== by 0x407FA29: lua_resume (lj_api.c:1296)
==28488== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28488== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28488== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28488== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28488== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28488== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28488== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28488== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28488== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28488== by 0x8062D5B: main (nginx.c:385)
==28488==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28489== Invalid read of size 4
==28489== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28489== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28489== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28489== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28489== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28489== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28489== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28489== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28489== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28489== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28489== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28489== by 0x8062D5B: main (nginx.c:385)
==28489== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28489==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) ==28489==
==28489== Process terminating with default action of signal 11 (SIGSEGV)
==28489== Access not within mapped region at address 0x0
==28489== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28489== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28489== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28489== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28489== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28489== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28489== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28489== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28489== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28489== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28489== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28489== by 0x8062D5B: main (nginx.c:385)
==28489== If you believe this happened as a result of a stack
==28489== overflow in your program's main thread (unlikely but
==28489== possible), you can try to increase the size of the
==28489== main thread stack using the --main-stacksize= flag.
==28489== The main thread stack size used in this run was 8388608.
==28489== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==28489== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28489== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28489== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28489== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28489== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28489== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28489== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28489== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28489== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28489== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28489== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28489== by 0x40BB675: trace_state (lj_trace.c:690)
==28489== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28489== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28489== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28489== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28489== by 0x407FA29: lua_resume (lj_api.c:1296)
==28489== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28489== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28489== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28489== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28489== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28489== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28489== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28489== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28489== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28489== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28489== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28489== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28489== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28489== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28489== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28489== by 0x8062D5B: main (nginx.c:385)
==28489==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit ==28501== Invalid read of size 4
==28501== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28501== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28501== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28501== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28501== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28501== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28501== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28501== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28501== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28501== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28501== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28501== by 0x8062D5B: main (nginx.c:385)
==28501== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28501==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit ==28501==
==28501== Process terminating with default action of signal 11 (SIGSEGV)
==28501== Access not within mapped region at address 0x0
==28501== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28501== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28501== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28501== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28501== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28501== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28501== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28501== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28501== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28501== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28501== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28501== by 0x8062D5B: main (nginx.c:385)
==28501== If you believe this happened as a result of a stack
==28501== overflow in your program's main thread (unlikely but
==28501== possible), you can try to increase the size of the
==28501== main thread stack using the --main-stacksize= flag.
==28501== The main thread stack size used in this run was 8388608.
==28501== 1,024 bytes in 1 blocks are definitely lost in loss record 2,784 of 2,892
==28501== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28501== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28501== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28501== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28501== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28501== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28501== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28501== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28501== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28501== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28501== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28501== by 0x40BB675: trace_state (lj_trace.c:690)
==28501== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28501== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28501== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28501== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28501== by 0x407FA29: lua_resume (lj_api.c:1296)
==28501== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28501== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28501== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28501== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28501== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28501== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28501== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28501== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28501== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28501== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28501== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28501== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28501== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28501== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28501== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28501== by 0x8062D5B: main (nginx.c:385)
==28501==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit ==28522== Invalid read of size 4
==28522== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28522== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28522== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28522== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28522== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28522== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28522== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28522== by 0x8062D5B: main (nginx.c:385)
==28522== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28522==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit ==28522==
==28522== Process terminating with default action of signal 11 (SIGSEGV)
==28522== Access not within mapped region at address 0x0
==28522== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28522== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28522== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28522== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28522== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28522== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28522== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28522== by 0x8062D5B: main (nginx.c:385)
==28522== If you believe this happened as a result of a stack
==28522== overflow in your program's main thread (unlikely but
==28522== possible), you can try to increase the size of the
==28522== main thread stack using the --main-stacksize= flag.
==28522== The main thread stack size used in this run was 8388608.
==28522== 1,024 bytes in 1 blocks are definitely lost in loss record 2,784 of 2,892
==28522== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28522== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28522== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28522== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28522== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28522== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28522== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28522== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28522== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28522== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28522== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28522== by 0x40BB675: trace_state (lj_trace.c:690)
==28522== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28522== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28522== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28522== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28522== by 0x407FA29: lua_resume (lj_api.c:1296)
==28522== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28522== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28522== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28522== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28522== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28522== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28522== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28522== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28522== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28522== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28522== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28522== by 0x8062D5B: main (nginx.c:385)
==28522==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit ==28523== Invalid read of size 4
==28523== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28523== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28523== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28523== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28523== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28523== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28523== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28523== by 0x8062D5B: main (nginx.c:385)
==28523== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28523==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit ==28523==
==28523== Process terminating with default action of signal 11 (SIGSEGV)
==28523== Access not within mapped region at address 0x0
==28523== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28523== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28523== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28523== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28523== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28523== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28523== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28523== by 0x8062D5B: main (nginx.c:385)
==28523== If you believe this happened as a result of a stack
==28523== overflow in your program's main thread (unlikely but
==28523== possible), you can try to increase the size of the
==28523== main thread stack using the --main-stacksize= flag.
==28523== The main thread stack size used in this run was 8388608.
==28523== 1,024 bytes in 1 blocks are definitely lost in loss record 2,784 of 2,892
==28523== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28523== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28523== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28523== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28523== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28523== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28523== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28523== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28523== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28523== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28523== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28523== by 0x40BB675: trace_state (lj_trace.c:690)
==28523== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28523== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28523== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28523== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28523== by 0x407FA29: lua_resume (lj_api.c:1296)
==28523== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28523== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28523== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28523== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28523== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28523== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28523== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28523== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28523== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28523== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28523== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28523== by 0x8062D5B: main (nginx.c:385)
==28523==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit ==28524== Invalid read of size 4
==28524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28524== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28524== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28524== by 0x8062D5B: main (nginx.c:385)
==28524== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28524==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit ==28524==
==28524== Process terminating with default action of signal 11 (SIGSEGV)
==28524== Access not within mapped region at address 0x0
==28524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28524== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28524== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28524== by 0x8062D5B: main (nginx.c:385)
==28524== If you believe this happened as a result of a stack
==28524== overflow in your program's main thread (unlikely but
==28524== possible), you can try to increase the size of the
==28524== main thread stack using the --main-stacksize= flag.
==28524== The main thread stack size used in this run was 8388608.
==28524== 1,024 bytes in 1 blocks are definitely lost in loss record 2,784 of 2,892
==28524== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28524== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28524== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28524== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28524== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28524== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28524== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28524== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28524== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28524== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28524== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28524== by 0x40BB675: trace_state (lj_trace.c:690)
==28524== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28524== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28524== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28524== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28524== by 0x407FA29: lua_resume (lj_api.c:1296)
==28524== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28524== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28524== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28524== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28524== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28524== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28524== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28524== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28524== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28524== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28524== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28524== by 0x8062D5B: main (nginx.c:385)
==28524==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit ==28525== Invalid read of size 4
==28525== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28525== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28525== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28525== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28525== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28525== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28525== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28525== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28525== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28525== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28525== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28525== by 0x8062D5B: main (nginx.c:385)
==28525== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28525==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit ==28525==
==28525== Process terminating with default action of signal 11 (SIGSEGV)
==28525== Access not within mapped region at address 0x0
==28525== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28525== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28525== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28525== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28525== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28525== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28525== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28525== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28525== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28525== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28525== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28525== by 0x8062D5B: main (nginx.c:385)
==28525== If you believe this happened as a result of a stack
==28525== overflow in your program's main thread (unlikely but
==28525== possible), you can try to increase the size of the
==28525== main thread stack using the --main-stacksize= flag.
==28525== The main thread stack size used in this run was 8388608.
==28525== 1,024 bytes in 1 blocks are definitely lost in loss record 2,784 of 2,892
==28525== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28525== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28525== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28525== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28525== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28525== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28525== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28525== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28525== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28525== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28525== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28525== by 0x40BB675: trace_state (lj_trace.c:690)
==28525== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28525== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28525== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28525== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28525== by 0x407FA29: lua_resume (lj_api.c:1296)
==28525== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28525== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28525== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28525== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28525== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28525== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28525== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28525== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28525== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28525== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28525== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28525== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28525== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28525== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28525== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28525== by 0x8062D5B: main (nginx.c:385)
==28525==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely ==28538== Invalid read of size 4
==28538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28538== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28538== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28538== by 0x8062D5B: main (nginx.c:385)
==28538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 14: disable regex cache completely ==28538==
==28538== Process terminating with default action of signal 11 (SIGSEGV)
==28538== Access not within mapped region at address 0x0
==28538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28538== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28538== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28538== by 0x8062D5B: main (nginx.c:385)
==28538== If you believe this happened as a result of a stack
==28538== overflow in your program's main thread (unlikely but
==28538== possible), you can try to increase the size of the
==28538== main thread stack using the --main-stacksize= flag.
==28538== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely ==28559== Invalid read of size 4
==28559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28559== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28559== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28559== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28559== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28559== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28559== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28559== by 0x8062D5B: main (nginx.c:385)
==28559== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28559==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 14: disable regex cache completely ==28559==
==28559== Process terminating with default action of signal 11 (SIGSEGV)
==28559== Access not within mapped region at address 0x0
==28559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28559== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28559== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28559== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28559== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28559== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28559== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28559== by 0x8062D5B: main (nginx.c:385)
==28559== If you believe this happened as a result of a stack
==28559== overflow in your program's main thread (unlikely but
==28559== possible), you can try to increase the size of the
==28559== main thread stack using the --main-stacksize= flag.
==28559== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely ==28560== Invalid read of size 4
==28560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28560== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28560== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28560== by 0x8062D5B: main (nginx.c:385)
==28560== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28560==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 14: disable regex cache completely ==28560==
==28560== Process terminating with default action of signal 11 (SIGSEGV)
==28560== Access not within mapped region at address 0x0
==28560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28560== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28560== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28560== by 0x8062D5B: main (nginx.c:385)
==28560== If you believe this happened as a result of a stack
==28560== overflow in your program's main thread (unlikely but
==28560== possible), you can try to increase the size of the
==28560== main thread stack using the --main-stacksize= flag.
==28560== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely ==28561== Invalid read of size 4
==28561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28561== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28561== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28561== by 0x8062D5B: main (nginx.c:385)
==28561== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28561==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 14: disable regex cache completely ==28561==
==28561== Process terminating with default action of signal 11 (SIGSEGV)
==28561== Access not within mapped region at address 0x0
==28561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28561== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28561== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28561== by 0x8062D5B: main (nginx.c:385)
==28561== If you believe this happened as a result of a stack
==28561== overflow in your program's main thread (unlikely but
==28561== possible), you can try to increase the size of the
==28561== main thread stack using the --main-stacksize= flag.
==28561== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely ==28562== Invalid read of size 4
==28562== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28562== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28562== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28562== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28562== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28562== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28562== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28562== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28562== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28562== by 0x8062D5B: main (nginx.c:385)
==28562== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28562==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 14: disable regex cache completely ==28562==
==28562== Process terminating with default action of signal 11 (SIGSEGV)
==28562== Access not within mapped region at address 0x0
==28562== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28562== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28562== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28562== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28562== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28562== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28562== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28562== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28562== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28562== by 0x8062D5B: main (nginx.c:385)
==28562== If you believe this happened as a result of a stack
==28562== overflow in your program's main thread (unlikely but
==28562== possible), you can try to increase the size of the
==28562== main thread stack using the --main-stacksize= flag.
==28562== The main thread stack size used in this run was 8388608.

035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) ==28574== Invalid read of size 4
==28574== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28574== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28574== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28574== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28574== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28574== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28574== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28574== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28574== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28574== by 0x8062D5B: main (nginx.c:385)
==28574== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28574==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) ==28574==
==28574== Process terminating with default action of signal 11 (SIGSEGV)
==28574== Access not within mapped region at address 0x0
==28574== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28574== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28574== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28574== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28574== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28574== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28574== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28574== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28574== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28574== by 0x8062D5B: main (nginx.c:385)
==28574== If you believe this happened as a result of a stack
==28574== overflow in your program's main thread (unlikely but
==28574== possible), you can try to increase the size of the
==28574== main thread stack using the --main-stacksize= flag.
==28574== The main thread stack size used in this run was 8388608.
==28574== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,873
==28574== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28574== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28574== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28574== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28574== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28574== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28574== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28574== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28574== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28574== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28574== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28574== by 0x40BB675: trace_state (lj_trace.c:690)
==28574== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28574== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28574== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28574== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28574== by 0x407FA29: lua_resume (lj_api.c:1296)
==28574== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28574== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28574== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28574== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28574== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28574== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28574== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28574== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28574== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28574== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28574== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28574== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28574== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28574== by 0x8062D5B: main (nginx.c:385)
==28574==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) ==28595== Invalid read of size 4
==28595== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28595== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28595== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28595== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28595== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28595== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28595== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28595== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28595== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28595== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28595== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28595== by 0x8062D5B: main (nginx.c:385)
==28595== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28595==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) ==28595==
==28595== Process terminating with default action of signal 11 (SIGSEGV)
==28595== Access not within mapped region at address 0x0
==28595== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28595== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28595== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28595== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28595== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28595== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28595== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28595== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28595== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28595== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28595== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28595== by 0x8062D5B: main (nginx.c:385)
==28595== If you believe this happened as a result of a stack
==28595== overflow in your program's main thread (unlikely but
==28595== possible), you can try to increase the size of the
==28595== main thread stack using the --main-stacksize= flag.
==28595== The main thread stack size used in this run was 8388608.
==28595== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,873
==28595== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28595== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28595== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28595== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28595== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28595== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28595== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28595== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28595== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28595== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28595== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28595== by 0x40BB675: trace_state (lj_trace.c:690)
==28595== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28595== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28595== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28595== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28595== by 0x407FA29: lua_resume (lj_api.c:1296)
==28595== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28595== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28595== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28595== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28595== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28595== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28595== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28595== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28595== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28595== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28595== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28595== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28595== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28595== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28595== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28595== by 0x8062D5B: main (nginx.c:385)
==28595==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) ==28596== Invalid read of size 4
==28596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28596== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28596== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28596== by 0x8062D5B: main (nginx.c:385)
==28596== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28596==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) ==28596==
==28596== Process terminating with default action of signal 11 (SIGSEGV)
==28596== Access not within mapped region at address 0x0
==28596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28596== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28596== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28596== by 0x8062D5B: main (nginx.c:385)
==28596== If you believe this happened as a result of a stack
==28596== overflow in your program's main thread (unlikely but
==28596== possible), you can try to increase the size of the
==28596== main thread stack using the --main-stacksize= flag.
==28596== The main thread stack size used in this run was 8388608.
==28596== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,873
==28596== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28596== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28596== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28596== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28596== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28596== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28596== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28596== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28596== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28596== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28596== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28596== by 0x40BB675: trace_state (lj_trace.c:690)
==28596== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28596== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28596== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28596== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28596== by 0x407FA29: lua_resume (lj_api.c:1296)
==28596== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28596== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28596== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28596== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28596== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28596== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28596== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28596== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28596== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28596== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28596== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28596== by 0x8062D5B: main (nginx.c:385)
==28596==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) ==28597== Invalid read of size 4
==28597== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28597== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28597== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28597== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28597== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28597== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28597== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28597== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28597== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28597== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28597== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28597== by 0x8062D5B: main (nginx.c:385)
==28597== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28597==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) ==28597==
==28597== Process terminating with default action of signal 11 (SIGSEGV)
==28597== Access not within mapped region at address 0x0
==28597== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28597== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28597== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28597== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28597== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28597== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28597== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28597== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28597== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28597== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28597== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28597== by 0x8062D5B: main (nginx.c:385)
==28597== If you believe this happened as a result of a stack
==28597== overflow in your program's main thread (unlikely but
==28597== possible), you can try to increase the size of the
==28597== main thread stack using the --main-stacksize= flag.
==28597== The main thread stack size used in this run was 8388608.
==28597== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,873
==28597== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28597== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28597== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28597== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28597== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28597== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28597== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28597== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28597== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28597== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28597== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28597== by 0x40BB675: trace_state (lj_trace.c:690)
==28597== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28597== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28597== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28597== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28597== by 0x407FA29: lua_resume (lj_api.c:1296)
==28597== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28597== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28597== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28597== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28597== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28597== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28597== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28597== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28597== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28597== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28597== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28597== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28597== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28597== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28597== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28597== by 0x8062D5B: main (nginx.c:385)
==28597==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) ==28598== Invalid read of size 4
==28598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28598== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28598== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28598== by 0x8062D5B: main (nginx.c:385)
==28598== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28598==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) ==28598==
==28598== Process terminating with default action of signal 11 (SIGSEGV)
==28598== Access not within mapped region at address 0x0
==28598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28598== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28598== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28598== by 0x8062D5B: main (nginx.c:385)
==28598== If you believe this happened as a result of a stack
==28598== overflow in your program's main thread (unlikely but
==28598== possible), you can try to increase the size of the
==28598== main thread stack using the --main-stacksize= flag.
==28598== The main thread stack size used in this run was 8388608.
==28598== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,873
==28598== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28598== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28598== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28598== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28598== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28598== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28598== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28598== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28598== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28598== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28598== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28598== by 0x40BB675: trace_state (lj_trace.c:690)
==28598== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28598== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28598== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28598== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28598== by 0x407FA29: lua_resume (lj_api.c:1296)
==28598== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28598== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28598== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28598== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28598== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28598== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28598== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28598== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28598== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28598== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28598== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28598== by 0x8062D5B: main (nginx.c:385)
==28598==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28610== Invalid read of size 4
==28610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28610== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28610== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28610== by 0x8062D5B: main (nginx.c:385)
==28610== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28610==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28610==
==28610== Process terminating with default action of signal 11 (SIGSEGV)
==28610== Access not within mapped region at address 0x0
==28610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28610== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28610== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28610== by 0x8062D5B: main (nginx.c:385)
==28610== If you believe this happened as a result of a stack
==28610== overflow in your program's main thread (unlikely but
==28610== possible), you can try to increase the size of the
==28610== main thread stack using the --main-stacksize= flag.
==28610== The main thread stack size used in this run was 8388608.
==28610== 1,024 bytes in 1 blocks are definitely lost in loss record 2,903 of 3,031
==28610== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28610== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28610== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28610== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28610== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28610== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28610== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28610== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28610== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28610== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28610== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28610== by 0x40BB675: trace_state (lj_trace.c:690)
==28610== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28610== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28610== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28610== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28610== by 0x407FA29: lua_resume (lj_api.c:1296)
==28610== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28610== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28610== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28610== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28610== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28610== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28610== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28610== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28610== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28610== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28610== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28610== by 0x8062D5B: main (nginx.c:385)
==28610==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28631== Invalid read of size 4
==28631== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28631== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28631== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28631== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28631== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28631== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28631== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28631== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28631== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28631== by 0x8062D5B: main (nginx.c:385)
==28631== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28631==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28631==
==28631== Process terminating with default action of signal 11 (SIGSEGV)
==28631== Access not within mapped region at address 0x0
==28631== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28631== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28631== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28631== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28631== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28631== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28631== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28631== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28631== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28631== by 0x8062D5B: main (nginx.c:385)
==28631== If you believe this happened as a result of a stack
==28631== overflow in your program's main thread (unlikely but
==28631== possible), you can try to increase the size of the
==28631== main thread stack using the --main-stacksize= flag.
==28631== The main thread stack size used in this run was 8388608.
==28631== 1,024 bytes in 1 blocks are definitely lost in loss record 2,903 of 3,031
==28631== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28631== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28631== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28631== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28631== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28631== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28631== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28631== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28631== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28631== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28631== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28631== by 0x40BB675: trace_state (lj_trace.c:690)
==28631== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28631== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28631== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28631== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28631== by 0x407FA29: lua_resume (lj_api.c:1296)
==28631== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28631== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28631== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28631== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28631== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28631== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28631== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28631== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28631== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28631== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28631== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28631== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28631== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28631== by 0x8062D5B: main (nginx.c:385)
==28631==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28632== Invalid read of size 4
==28632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28632== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28632== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28632== by 0x8062D5B: main (nginx.c:385)
==28632== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28632==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28632==
==28632== Process terminating with default action of signal 11 (SIGSEGV)
==28632== Access not within mapped region at address 0x0
==28632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28632== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28632== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28632== by 0x8062D5B: main (nginx.c:385)
==28632== If you believe this happened as a result of a stack
==28632== overflow in your program's main thread (unlikely but
==28632== possible), you can try to increase the size of the
==28632== main thread stack using the --main-stacksize= flag.
==28632== The main thread stack size used in this run was 8388608.
==28632== 1,024 bytes in 1 blocks are definitely lost in loss record 2,903 of 3,031
==28632== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28632== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28632== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28632== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28632== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28632== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28632== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28632== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28632== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28632== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28632== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28632== by 0x40BB675: trace_state (lj_trace.c:690)
==28632== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28632== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28632== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28632== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28632== by 0x407FA29: lua_resume (lj_api.c:1296)
==28632== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28632== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28632== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28632== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28632== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28632== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28632== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28632== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28632== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28632== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28632== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28632== by 0x8062D5B: main (nginx.c:385)
==28632==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28633== Invalid read of size 4
==28633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28633== by 0x8062D5B: main (nginx.c:385)
==28633== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28633==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28633==
==28633== Process terminating with default action of signal 11 (SIGSEGV)
==28633== Access not within mapped region at address 0x0
==28633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28633== by 0x8062D5B: main (nginx.c:385)
==28633== If you believe this happened as a result of a stack
==28633== overflow in your program's main thread (unlikely but
==28633== possible), you can try to increase the size of the
==28633== main thread stack using the --main-stacksize= flag.
==28633== The main thread stack size used in this run was 8388608.
==28633== 1,024 bytes in 1 blocks are definitely lost in loss record 2,903 of 3,031
==28633== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28633== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28633== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28633== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28633== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28633== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28633== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28633== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28633== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28633== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28633== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28633== by 0x40BB675: trace_state (lj_trace.c:690)
==28633== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28633== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28633== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28633== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28633== by 0x407FA29: lua_resume (lj_api.c:1296)
==28633== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28633== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28633== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28633== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28633== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28633== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28633== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28633== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28633== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28633== by 0x8062D5B: main (nginx.c:385)
==28633==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28634== Invalid read of size 4
==28634== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28634== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28634== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28634== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28634== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28634== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28634== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28634== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28634== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28634== by 0x8062D5B: main (nginx.c:385)
==28634== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28634==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) ==28634==
==28634== Process terminating with default action of signal 11 (SIGSEGV)
==28634== Access not within mapped region at address 0x0
==28634== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28634== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28634== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28634== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28634== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28634== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28634== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28634== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28634== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28634== by 0x8062D5B: main (nginx.c:385)
==28634== If you believe this happened as a result of a stack
==28634== overflow in your program's main thread (unlikely but
==28634== possible), you can try to increase the size of the
==28634== main thread stack using the --main-stacksize= flag.
==28634== The main thread stack size used in this run was 8388608.
==28634== 1,024 bytes in 1 blocks are definitely lost in loss record 2,903 of 3,031
==28634== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28634== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28634== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28634== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28634== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28634== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28634== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28634== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28634== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28634== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28634== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28634== by 0x40BB675: trace_state (lj_trace.c:690)
==28634== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28634== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28634== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28634== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28634== by 0x407FA29: lua_resume (lj_api.c:1296)
==28634== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28634== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28634== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28634== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28634== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28634== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28634== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28634== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28634== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28634== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28634== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28634== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28634== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28634== by 0x8062D5B: main (nginx.c:385)
==28634==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request ==28646== Invalid read of size 4
==28646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28646== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28646== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28646== by 0x8062D5B: main (nginx.c:385)
==28646== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28646==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request ==28646==
==28646== Process terminating with default action of signal 11 (SIGSEGV)
==28646== Access not within mapped region at address 0x0
==28646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28646== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28646== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28646== by 0x8062D5B: main (nginx.c:385)
==28646== If you believe this happened as a result of a stack
==28646== overflow in your program's main thread (unlikely but
==28646== possible), you can try to increase the size of the
==28646== main thread stack using the --main-stacksize= flag.
==28646== The main thread stack size used in this run was 8388608.
==28646== 1,024 bytes in 1 blocks are definitely lost in loss record 2,794 of 2,903
==28646== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28646== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28646== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28646== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28646== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28646== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28646== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28646== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28646== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28646== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28646== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28646== by 0x40BB675: trace_state (lj_trace.c:690)
==28646== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28646== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28646== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28646== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28646== by 0x407FA29: lua_resume (lj_api.c:1296)
==28646== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28646== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28646== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28646== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28646== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28646== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28646== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28646== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28646== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28646== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28646== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28646== by 0x8062D5B: main (nginx.c:385)
==28646==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request ==28667== Invalid read of size 4
==28667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28667== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28667== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28667== by 0x8062D5B: main (nginx.c:385)
==28667== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28667==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request ==28667==
==28667== Process terminating with default action of signal 11 (SIGSEGV)
==28667== Access not within mapped region at address 0x0
==28667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28667== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28667== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28667== by 0x8062D5B: main (nginx.c:385)
==28667== If you believe this happened as a result of a stack
==28667== overflow in your program's main thread (unlikely but
==28667== possible), you can try to increase the size of the
==28667== main thread stack using the --main-stacksize= flag.
==28667== The main thread stack size used in this run was 8388608.
==28667== 1,024 bytes in 1 blocks are definitely lost in loss record 2,794 of 2,903
==28667== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28667== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28667== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28667== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28667== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28667== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28667== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28667== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28667== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28667== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28667== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28667== by 0x40BB675: trace_state (lj_trace.c:690)
==28667== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28667== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28667== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28667== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28667== by 0x407FA29: lua_resume (lj_api.c:1296)
==28667== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28667== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28667== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28667== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28667== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28667== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28667== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28667== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28667== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28667== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28667== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28667== by 0x8062D5B: main (nginx.c:385)
==28667==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request ==28668== Invalid read of size 4
==28668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28668== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28668== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28668== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28668== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28668== by 0x8062D5B: main (nginx.c:385)
==28668== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28668==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request ==28668==
==28668== Process terminating with default action of signal 11 (SIGSEGV)
==28668== Access not within mapped region at address 0x0
==28668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28668== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28668== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28668== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28668== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28668== by 0x8062D5B: main (nginx.c:385)
==28668== If you believe this happened as a result of a stack
==28668== overflow in your program's main thread (unlikely but
==28668== possible), you can try to increase the size of the
==28668== main thread stack using the --main-stacksize= flag.
==28668== The main thread stack size used in this run was 8388608.
==28668== 1,024 bytes in 1 blocks are definitely lost in loss record 2,794 of 2,903
==28668== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28668== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28668== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28668== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28668== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28668== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28668== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28668== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28668== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28668== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28668== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28668== by 0x40BB675: trace_state (lj_trace.c:690)
==28668== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28668== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28668== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28668== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28668== by 0x407FA29: lua_resume (lj_api.c:1296)
==28668== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28668== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28668== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28668== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28668== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28668== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28668== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28668== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28668== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28668== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28668== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28668== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28668== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28668== by 0x8062D5B: main (nginx.c:385)
==28668==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request ==28669== Invalid read of size 4
==28669== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28669== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28669== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28669== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28669== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28669== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28669== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28669== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28669== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28669== by 0x8062D5B: main (nginx.c:385)
==28669== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28669==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request ==28669==
==28669== Process terminating with default action of signal 11 (SIGSEGV)
==28669== Access not within mapped region at address 0x0
==28669== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28669== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28669== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28669== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28669== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28669== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28669== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28669== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28669== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28669== by 0x8062D5B: main (nginx.c:385)
==28669== If you believe this happened as a result of a stack
==28669== overflow in your program's main thread (unlikely but
==28669== possible), you can try to increase the size of the
==28669== main thread stack using the --main-stacksize= flag.
==28669== The main thread stack size used in this run was 8388608.
==28669== 1,024 bytes in 1 blocks are definitely lost in loss record 2,794 of 2,903
==28669== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28669== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28669== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28669== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28669== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28669== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28669== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28669== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28669== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28669== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28669== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28669== by 0x40BB675: trace_state (lj_trace.c:690)
==28669== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28669== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28669== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28669== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28669== by 0x407FA29: lua_resume (lj_api.c:1296)
==28669== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28669== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28669== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28669== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28669== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28669== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28669== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28669== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28669== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28669== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28669== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28669== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28669== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28669== by 0x8062D5B: main (nginx.c:385)
==28669==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request ==28670== Invalid read of size 4
==28670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28670== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28670== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28670== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28670== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28670== by 0x8062D5B: main (nginx.c:385)
==28670== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28670==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request ==28670==
==28670== Process terminating with default action of signal 11 (SIGSEGV)
==28670== Access not within mapped region at address 0x0
==28670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28670== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28670== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28670== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28670== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28670== by 0x8062D5B: main (nginx.c:385)
==28670== If you believe this happened as a result of a stack
==28670== overflow in your program's main thread (unlikely but
==28670== possible), you can try to increase the size of the
==28670== main thread stack using the --main-stacksize= flag.
==28670== The main thread stack size used in this run was 8388608.
==28670== 1,024 bytes in 1 blocks are definitely lost in loss record 2,794 of 2,903
==28670== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28670== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28670== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28670== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28670== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28670== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28670== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28670== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28670== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28670== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28670== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28670== by 0x40BB675: trace_state (lj_trace.c:690)
==28670== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28670== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28670== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28670== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28670== by 0x407FA29: lua_resume (lj_api.c:1296)
==28670== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28670== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28670== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28670== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28670== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28670== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28670== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28670== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28670== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28670== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28670== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28670== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28670== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28670== by 0x8062D5B: main (nginx.c:385)
==28670==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match ==28683== Invalid read of size 4
==28683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28683== by 0x8062D5B: main (nginx.c:385)
==28683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match ==28683==
==28683== Process terminating with default action of signal 11 (SIGSEGV)
==28683== Access not within mapped region at address 0x0
==28683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28683== by 0x8062D5B: main (nginx.c:385)
==28683== If you believe this happened as a result of a stack
==28683== overflow in your program's main thread (unlikely but
==28683== possible), you can try to increase the size of the
==28683== main thread stack using the --main-stacksize= flag.
==28683== The main thread stack size used in this run was 8388608.
==28683== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==28683== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28683== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28683== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28683== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28683== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28683== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28683== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28683== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28683== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28683== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28683== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28683== by 0x40BB675: trace_state (lj_trace.c:690)
==28683== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28683== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28683== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28683== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28683== by 0x407FA29: lua_resume (lj_api.c:1296)
==28683== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28683== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28683== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28683== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28683== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28683== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28683== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28683== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28683== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28683== by 0x8062D5B: main (nginx.c:385)
==28683==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match ==28704== Invalid read of size 4
==28704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28704== by 0x8062D5B: main (nginx.c:385)
==28704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match ==28704==
==28704== Process terminating with default action of signal 11 (SIGSEGV)
==28704== Access not within mapped region at address 0x0
==28704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28704== by 0x8062D5B: main (nginx.c:385)
==28704== If you believe this happened as a result of a stack
==28704== overflow in your program's main thread (unlikely but
==28704== possible), you can try to increase the size of the
==28704== main thread stack using the --main-stacksize= flag.
==28704== The main thread stack size used in this run was 8388608.
==28704== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==28704== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28704== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28704== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28704== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28704== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28704== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28704== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28704== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28704== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28704== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28704== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28704== by 0x40BB675: trace_state (lj_trace.c:690)
==28704== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28704== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28704== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28704== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28704== by 0x407FA29: lua_resume (lj_api.c:1296)
==28704== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28704== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28704== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28704== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28704== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28704== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28704== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28704== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28704== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28704== by 0x8062D5B: main (nginx.c:385)
==28704==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match ==28705== Invalid read of size 4
==28705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28705== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28705== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28705== by 0x8062D5B: main (nginx.c:385)
==28705== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28705==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match ==28705==
==28705== Process terminating with default action of signal 11 (SIGSEGV)
==28705== Access not within mapped region at address 0x0
==28705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28705== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28705== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28705== by 0x8062D5B: main (nginx.c:385)
==28705== If you believe this happened as a result of a stack
==28705== overflow in your program's main thread (unlikely but
==28705== possible), you can try to increase the size of the
==28705== main thread stack using the --main-stacksize= flag.
==28705== The main thread stack size used in this run was 8388608.
==28705== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==28705== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28705== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28705== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28705== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28705== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28705== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28705== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28705== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28705== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28705== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28705== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28705== by 0x40BB675: trace_state (lj_trace.c:690)
==28705== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28705== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28705== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28705== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28705== by 0x407FA29: lua_resume (lj_api.c:1296)
==28705== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28705== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28705== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28705== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28705== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28705== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28705== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28705== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28705== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28705== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28705== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28705== by 0x8062D5B: main (nginx.c:385)
==28705==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match ==28706== Invalid read of size 4
==28706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28706== by 0x8062D5B: main (nginx.c:385)
==28706== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28706==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match ==28706==
==28706== Process terminating with default action of signal 11 (SIGSEGV)
==28706== Access not within mapped region at address 0x0
==28706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28706== by 0x8062D5B: main (nginx.c:385)
==28706== If you believe this happened as a result of a stack
==28706== overflow in your program's main thread (unlikely but
==28706== possible), you can try to increase the size of the
==28706== main thread stack using the --main-stacksize= flag.
==28706== The main thread stack size used in this run was 8388608.
==28706== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==28706== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28706== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28706== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28706== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28706== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28706== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28706== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28706== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28706== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28706== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28706== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28706== by 0x40BB675: trace_state (lj_trace.c:690)
==28706== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28706== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28706== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28706== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28706== by 0x407FA29: lua_resume (lj_api.c:1296)
==28706== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28706== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28706== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28706== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28706== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28706== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28706== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28706== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28706== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28706== by 0x8062D5B: main (nginx.c:385)
==28706==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match ==28707== Invalid read of size 4
==28707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28707== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28707== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28707== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28707== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28707== by 0x8062D5B: main (nginx.c:385)
==28707== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28707==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match ==28707==
==28707== Process terminating with default action of signal 11 (SIGSEGV)
==28707== Access not within mapped region at address 0x0
==28707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28707== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28707== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28707== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28707== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28707== by 0x8062D5B: main (nginx.c:385)
==28707== If you believe this happened as a result of a stack
==28707== overflow in your program's main thread (unlikely but
==28707== possible), you can try to increase the size of the
==28707== main thread stack using the --main-stacksize= flag.
==28707== The main thread stack size used in this run was 8388608.
==28707== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,859
==28707== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28707== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28707== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28707== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28707== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28707== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28707== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28707== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28707== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28707== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28707== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28707== by 0x40BB675: trace_state (lj_trace.c:690)
==28707== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28707== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28707== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28707== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28707== by 0x407FA29: lua_resume (lj_api.c:1296)
==28707== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28707== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28707== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28707== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28707== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28707== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28707== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28707== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28707== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28707== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28707== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28707== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28707== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28707== by 0x8062D5B: main (nginx.c:385)
==28707==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) ==28719== Invalid read of size 4
==28719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28719== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28719== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28719== by 0x8062D5B: main (nginx.c:385)
==28719== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28719==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) ==28719==
==28719== Process terminating with default action of signal 11 (SIGSEGV)
==28719== Access not within mapped region at address 0x0
==28719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28719== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28719== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28719== by 0x8062D5B: main (nginx.c:385)
==28719== If you believe this happened as a result of a stack
==28719== overflow in your program's main thread (unlikely but
==28719== possible), you can try to increase the size of the
==28719== main thread stack using the --main-stacksize= flag.
==28719== The main thread stack size used in this run was 8388608.
==28719== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,873
==28719== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28719== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28719== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28719== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28719== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28719== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28719== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28719== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28719== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28719== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28719== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28719== by 0x40BB675: trace_state (lj_trace.c:690)
==28719== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28719== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28719== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28719== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28719== by 0x407FA29: lua_resume (lj_api.c:1296)
==28719== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28719== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28719== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28719== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28719== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28719== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28719== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28719== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28719== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28719== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28719== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28719== by 0x8062D5B: main (nginx.c:385)
==28719==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) ==28740== Invalid read of size 4
==28740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28740== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28740== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28740== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28740== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28740== by 0x8062D5B: main (nginx.c:385)
==28740== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28740==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) ==28740==
==28740== Process terminating with default action of signal 11 (SIGSEGV)
==28740== Access not within mapped region at address 0x0
==28740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28740== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28740== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28740== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28740== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28740== by 0x8062D5B: main (nginx.c:385)
==28740== If you believe this happened as a result of a stack
==28740== overflow in your program's main thread (unlikely but
==28740== possible), you can try to increase the size of the
==28740== main thread stack using the --main-stacksize= flag.
==28740== The main thread stack size used in this run was 8388608.
==28740== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,873
==28740== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28740== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28740== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28740== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28740== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28740== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28740== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28740== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28740== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28740== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28740== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28740== by 0x40BB675: trace_state (lj_trace.c:690)
==28740== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28740== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28740== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28740== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28740== by 0x407FA29: lua_resume (lj_api.c:1296)
==28740== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28740== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28740== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28740== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28740== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28740== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28740== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28740== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28740== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28740== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28740== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28740== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28740== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28740== by 0x8062D5B: main (nginx.c:385)
==28740==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) ==28741== Invalid read of size 4
==28741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28741== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28741== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28741== by 0x8062D5B: main (nginx.c:385)
==28741== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28741==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) ==28741==
==28741== Process terminating with default action of signal 11 (SIGSEGV)
==28741== Access not within mapped region at address 0x0
==28741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28741== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28741== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28741== by 0x8062D5B: main (nginx.c:385)
==28741== If you believe this happened as a result of a stack
==28741== overflow in your program's main thread (unlikely but
==28741== possible), you can try to increase the size of the
==28741== main thread stack using the --main-stacksize= flag.
==28741== The main thread stack size used in this run was 8388608.
==28741== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,873
==28741== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28741== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28741== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28741== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28741== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28741== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28741== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28741== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28741== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28741== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28741== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28741== by 0x40BB675: trace_state (lj_trace.c:690)
==28741== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28741== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28741== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28741== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28741== by 0x407FA29: lua_resume (lj_api.c:1296)
==28741== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28741== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28741== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28741== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28741== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28741== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28741== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28741== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28741== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28741== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28741== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28741== by 0x8062D5B: main (nginx.c:385)
==28741==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) ==28742== Invalid read of size 4
==28742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28742== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28742== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28742== by 0x8062D5B: main (nginx.c:385)
==28742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) ==28742==
==28742== Process terminating with default action of signal 11 (SIGSEGV)
==28742== Access not within mapped region at address 0x0
==28742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28742== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28742== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28742== by 0x8062D5B: main (nginx.c:385)
==28742== If you believe this happened as a result of a stack
==28742== overflow in your program's main thread (unlikely but
==28742== possible), you can try to increase the size of the
==28742== main thread stack using the --main-stacksize= flag.
==28742== The main thread stack size used in this run was 8388608.
==28742== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,873
==28742== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28742== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28742== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28742== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28742== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28742== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28742== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28742== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28742== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28742== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28742== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28742== by 0x40BB675: trace_state (lj_trace.c:690)
==28742== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28742== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28742== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28742== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28742== by 0x407FA29: lua_resume (lj_api.c:1296)
==28742== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28742== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28742== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28742== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28742== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28742== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28742== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28742== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28742== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28742== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28742== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28742== by 0x8062D5B: main (nginx.c:385)
==28742==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) ==28743== Invalid read of size 4
==28743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28743== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28743== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28743== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28743== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28743== by 0x8062D5B: main (nginx.c:385)
==28743== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28743==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) ==28743==
==28743== Process terminating with default action of signal 11 (SIGSEGV)
==28743== Access not within mapped region at address 0x0
==28743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28743== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28743== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28743== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28743== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28743== by 0x8062D5B: main (nginx.c:385)
==28743== If you believe this happened as a result of a stack
==28743== overflow in your program's main thread (unlikely but
==28743== possible), you can try to increase the size of the
==28743== main thread stack using the --main-stacksize= flag.
==28743== The main thread stack size used in this run was 8388608.
==28743== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,873
==28743== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28743== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28743== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28743== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28743== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28743== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28743== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28743== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28743== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28743== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28743== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28743== by 0x40BB675: trace_state (lj_trace.c:690)
==28743== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28743== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28743== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28743== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28743== by 0x407FA29: lua_resume (lj_api.c:1296)
==28743== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28743== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28743== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==28743== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28743== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28743== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28743== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28743== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28743== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28743== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28743== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28743== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28743== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28743== by 0x8062D5B: main (nginx.c:385)
==28743==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit ==28755== Invalid read of size 4
==28755== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28755== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28755== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28755== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28755== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28755== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28755== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28755== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28755== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28755== by 0x8062D5B: main (nginx.c:385)
==28755== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28755==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit ==28755==
==28755== Process terminating with default action of signal 11 (SIGSEGV)
==28755== Access not within mapped region at address 0x0
==28755== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28755== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28755== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28755== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28755== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28755== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28755== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28755== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28755== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28755== by 0x8062D5B: main (nginx.c:385)
==28755== If you believe this happened as a result of a stack
==28755== overflow in your program's main thread (unlikely but
==28755== possible), you can try to increase the size of the
==28755== main thread stack using the --main-stacksize= flag.
==28755== The main thread stack size used in this run was 8388608.
==28755== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==28755== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28755== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28755== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28755== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28755== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28755== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28755== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28755== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28755== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28755== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28755== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28755== by 0x40BB675: trace_state (lj_trace.c:690)
==28755== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28755== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28755== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28755== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28755== by 0x407FA29: lua_resume (lj_api.c:1296)
==28755== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28755== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28755== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28755== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28755== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28755== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28755== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28755== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28755== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28755== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28755== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28755== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28755== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28755== by 0x8062D5B: main (nginx.c:385)
==28755==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit ==28776== Invalid read of size 4
==28776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28776== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28776== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28776== by 0x8062D5B: main (nginx.c:385)
==28776== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28776==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit ==28776==
==28776== Process terminating with default action of signal 11 (SIGSEGV)
==28776== Access not within mapped region at address 0x0
==28776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28776== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28776== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28776== by 0x8062D5B: main (nginx.c:385)
==28776== If you believe this happened as a result of a stack
==28776== overflow in your program's main thread (unlikely but
==28776== possible), you can try to increase the size of the
==28776== main thread stack using the --main-stacksize= flag.
==28776== The main thread stack size used in this run was 8388608.
==28776== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==28776== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28776== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28776== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28776== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28776== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28776== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28776== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28776== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28776== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28776== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28776== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28776== by 0x40BB675: trace_state (lj_trace.c:690)
==28776== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28776== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28776== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28776== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28776== by 0x407FA29: lua_resume (lj_api.c:1296)
==28776== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28776== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28776== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28776== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28776== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28776== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28776== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28776== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28776== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28776== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28776== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28776== by 0x8062D5B: main (nginx.c:385)
==28776==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit ==28777== Invalid read of size 4
==28777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28777== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28777== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28777== by 0x8062D5B: main (nginx.c:385)
==28777== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28777==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit ==28777==
==28777== Process terminating with default action of signal 11 (SIGSEGV)
==28777== Access not within mapped region at address 0x0
==28777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28777== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28777== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28777== by 0x8062D5B: main (nginx.c:385)
==28777== If you believe this happened as a result of a stack
==28777== overflow in your program's main thread (unlikely but
==28777== possible), you can try to increase the size of the
==28777== main thread stack using the --main-stacksize= flag.
==28777== The main thread stack size used in this run was 8388608.
==28777== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==28777== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28777== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28777== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28777== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28777== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28777== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28777== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28777== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28777== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28777== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28777== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28777== by 0x40BB675: trace_state (lj_trace.c:690)
==28777== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28777== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28777== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28777== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28777== by 0x407FA29: lua_resume (lj_api.c:1296)
==28777== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28777== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28777== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28777== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28777== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28777== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28777== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28777== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28777== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28777== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28777== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28777== by 0x8062D5B: main (nginx.c:385)
==28777==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit ==28778== Invalid read of size 4
==28778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28778== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28778== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28778== by 0x8062D5B: main (nginx.c:385)
==28778== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28778==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit ==28778==
==28778== Process terminating with default action of signal 11 (SIGSEGV)
==28778== Access not within mapped region at address 0x0
==28778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28778== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28778== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28778== by 0x8062D5B: main (nginx.c:385)
==28778== If you believe this happened as a result of a stack
==28778== overflow in your program's main thread (unlikely but
==28778== possible), you can try to increase the size of the
==28778== main thread stack using the --main-stacksize= flag.
==28778== The main thread stack size used in this run was 8388608.
==28778== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==28778== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28778== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28778== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28778== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28778== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28778== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28778== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28778== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28778== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28778== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28778== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28778== by 0x40BB675: trace_state (lj_trace.c:690)
==28778== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28778== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28778== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28778== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28778== by 0x407FA29: lua_resume (lj_api.c:1296)
==28778== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28778== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28778== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28778== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28778== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28778== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28778== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28778== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28778== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28778== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28778== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28778== by 0x8062D5B: main (nginx.c:385)
==28778==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit ==28779== Invalid read of size 4
==28779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28779== by 0x8062D5B: main (nginx.c:385)
==28779== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28779==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit ==28779==
==28779== Process terminating with default action of signal 11 (SIGSEGV)
==28779== Access not within mapped region at address 0x0
==28779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28779== by 0x8062D5B: main (nginx.c:385)
==28779== If you believe this happened as a result of a stack
==28779== overflow in your program's main thread (unlikely but
==28779== possible), you can try to increase the size of the
==28779== main thread stack using the --main-stacksize= flag.
==28779== The main thread stack size used in this run was 8388608.
==28779== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==28779== at 0x402C768: realloc (vg_replace_malloc.c:834)
==28779== by 0x40CC146: mem_alloc (lib_aux.c:335)
==28779== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==28779== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==28779== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==28779== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==28779== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==28779== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==28779== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==28779== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28779== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==28779== by 0x40BB675: trace_state (lj_trace.c:690)
==28779== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28779== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==28779== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==28779== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==28779== by 0x407FA29: lua_resume (lj_api.c:1296)
==28779== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==28779== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==28779== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==28779== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==28779== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==28779== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==28779== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==28779== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==28779== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==28779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28779== by 0x8062D5B: main (nginx.c:385)
==28779==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
036-sub.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==28789== Invalid read of size 4
==28789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28789== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28789== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==28789== by 0x8062D5B: main (nginx.c:385)
==28789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==28789==
==28789== Process terminating with default action of signal 11 (SIGSEGV)
==28789== Access not within mapped region at address 0x0
==28789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28789== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28789== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==28789== by 0x8062D5B: main (nginx.c:385)
==28789== If you believe this happened as a result of a stack
==28789== overflow in your program's main thread (unlikely but
==28789== possible), you can try to increase the size of the
==28789== main thread stack using the --main-stacksize= flag.
==28789== The main thread stack size used in this run was 8388608.

036-sub.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
036-sub.t TEST 3: matched and with variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==28790== Invalid read of size 4
==28790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28790== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28790== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28790== by 0x8062D5B: main (nginx.c:385)
==28790== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28790==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==28790==
==28790== Process terminating with default action of signal 11 (SIGSEGV)
==28790== Access not within mapped region at address 0x0
==28790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28790== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28790== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28790== by 0x8062D5B: main (nginx.c:385)
==28790== If you believe this happened as a result of a stack
==28790== overflow in your program's main thread (unlikely but
==28790== possible), you can try to increase the size of the
==28790== main thread stack using the --main-stacksize= flag.
==28790== The main thread stack size used in this run was 8388608.

036-sub.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
036-sub.t TEST 3: matched and with variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 12: non-anchored match ==28802== Invalid read of size 4
==28802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28802== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28802== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28802== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28802== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28802== by 0x8062D5B: main (nginx.c:385)
==28802== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28802==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 12: non-anchored match ==28802==
==28802== Process terminating with default action of signal 11 (SIGSEGV)
==28802== Access not within mapped region at address 0x0
==28802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28802== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28802== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28802== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28802== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28802== by 0x8062D5B: main (nginx.c:385)
==28802== If you believe this happened as a result of a stack
==28802== overflow in your program's main thread (unlikely but
==28802== possible), you can try to increase the size of the
==28802== main thread stack using the --main-stacksize= flag.
==28802== The main thread stack size used in this run was 8388608.

036-sub.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 12: non-anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
036-sub.t TEST 12: non-anchored match ==28823== Invalid read of size 4
==28823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28823== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28823== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28823== by 0x8062D5B: main (nginx.c:385)
==28823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 12: non-anchored match ==28823==
==28823== Process terminating with default action of signal 11 (SIGSEGV)
==28823== Access not within mapped region at address 0x0
==28823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28823== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28823== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28823== by 0x8062D5B: main (nginx.c:385)
==28823== If you believe this happened as a result of a stack
==28823== overflow in your program's main thread (unlikely but
==28823== possible), you can try to increase the size of the
==28823== main thread stack using the --main-stacksize= flag.
==28823== The main thread stack size used in this run was 8388608.

036-sub.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 12: non-anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github #445) ==28835== Invalid read of size 4
==28835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28835== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28835== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28835== by 0x8062D5B: main (nginx.c:385)
==28835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github #445) ==28835==
==28835== Process terminating with default action of signal 11 (SIGSEGV)
==28835== Access not within mapped region at address 0x0
==28835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28835== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28835== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28835== by 0x8062D5B: main (nginx.c:385)
==28835== If you believe this happened as a result of a stack
==28835== overflow in your program's main thread (unlikely but
==28835== possible), you can try to increase the size of the
==28835== main thread stack using the --main-stacksize= flag.
==28835== The main thread stack size used in this run was 8388608.

036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - status code ok got: ''
expected: '200'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github #445) ==28856== Invalid read of size 4
==28856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28856== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28856== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28856== by 0x8062D5B: main (nginx.c:385)
==28856== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28856==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github #445) ==28856==
==28856== Process terminating with default action of signal 11 (SIGSEGV)
==28856== Access not within mapped region at address 0x0
==28856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28856== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28856== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28856== by 0x8062D5B: main (nginx.c:385)
==28856== If you believe this happened as a result of a stack
==28856== overflow in your program's main thread (unlikely but
==28856== possible), you can try to increase the size of the
==28856== main thread stack using the --main-stacksize= flag.
==28856== The main thread stack size used in this run was 8388608.

036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - status code ok got: ''
expected: '200'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
036-sub.t TEST 27: just hit match limit ==28868== Invalid read of size 4
==28868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28868== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28868== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28868== by 0x8062D5B: main (nginx.c:385)
==28868== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28868==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 27: just hit match limit ==28868==
==28868== Process terminating with default action of signal 11 (SIGSEGV)
==28868== Access not within mapped region at address 0x0
==28868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28868== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28868== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28868== by 0x8062D5B: main (nginx.c:385)
==28868== If you believe this happened as a result of a stack
==28868== overflow in your program's main thread (unlikely but
==28868== possible), you can try to increase the size of the
==28868== main thread stack using the --main-stacksize= flag.
==28868== The main thread stack size used in this run was 8388608.

036-sub.t TEST 27: just hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 27: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
036-sub.t TEST 27: just hit match limit ==28889== Invalid read of size 4
==28889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28889== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28889== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28889== by 0x8062D5B: main (nginx.c:385)
==28889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 27: just hit match limit ==28889==
==28889== Process terminating with default action of signal 11 (SIGSEGV)
==28889== Access not within mapped region at address 0x0
==28889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28889== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28889== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28889== by 0x8062D5B: main (nginx.c:385)
==28889== If you believe this happened as a result of a stack
==28889== overflow in your program's main thread (unlikely but
==28889== possible), you can try to increase the size of the
==28889== main thread stack using the --main-stacksize= flag.
==28889== The main thread stack size used in this run was 8388608.

036-sub.t TEST 27: just hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 27: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
036-sub.t TEST 22: $0 without parens ==28902== Invalid read of size 4
==28902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28902== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28902== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28902== by 0x8062D5B: main (nginx.c:385)
==28902== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28902==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 22: $0 without parens ==28902==
==28902== Process terminating with default action of signal 11 (SIGSEGV)
==28902== Access not within mapped region at address 0x0
==28902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28902== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28902== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28902== by 0x8062D5B: main (nginx.c:385)
==28902== If you believe this happened as a result of a stack
==28902== overflow in your program's main thread (unlikely but
==28902== possible), you can try to increase the size of the
==28902== main thread stack using the --main-stacksize= flag.
==28902== The main thread stack size used in this run was 8388608.

036-sub.t TEST 22: $0 without parens - status code ok got: ''
expected: '200'
036-sub.t TEST 22: $0 without parens - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[a] b c d
-1
'
036-sub.t TEST 22: $0 without parens ==28923== Invalid read of size 4
==28923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28923== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28923== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28923== by 0x8062D5B: main (nginx.c:385)
==28923== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28923==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 22: $0 without parens ==28923==
==28923== Process terminating with default action of signal 11 (SIGSEGV)
==28923== Access not within mapped region at address 0x0
==28923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28923== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28923== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28923== by 0x8062D5B: main (nginx.c:385)
==28923== If you believe this happened as a result of a stack
==28923== overflow in your program's main thread (unlikely but
==28923== possible), you can try to increase the size of the
==28923== main thread stack using the --main-stacksize= flag.
==28923== The main thread stack size used in this run was 8388608.

036-sub.t TEST 22: $0 without parens - status code ok got: ''
expected: '200'
036-sub.t TEST 22: $0 without parens - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[a] b c d
-1
'
036-sub.t TEST 11: matched but w/o variables and with literal $ ==28935== Invalid read of size 4
==28935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28935== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28935== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28935== by 0x8062D5B: main (nginx.c:385)
==28935== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28935==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 11: matched but w/o variables and with literal $ ==28935==
==28935== Process terminating with default action of signal 11 (SIGSEGV)
==28935== Access not within mapped region at address 0x0
==28935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28935== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28935== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28935== by 0x8062D5B: main (nginx.c:385)
==28935== If you believe this happened as a result of a stack
==28935== overflow in your program's main thread (unlikely but
==28935== possible), you can try to increase the size of the
==28935== main thread stack using the --main-stacksize= flag.
==28935== The main thread stack size used in this run was 8388608.

036-sub.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
036-sub.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
036-sub.t TEST 11: matched but w/o variables and with literal $ ==28956== Invalid read of size 4
==28956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28956== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28956== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28956== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28956== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28956== by 0x8062D5B: main (nginx.c:385)
==28956== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28956==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 11: matched but w/o variables and with literal $ ==28956==
==28956== Process terminating with default action of signal 11 (SIGSEGV)
==28956== Access not within mapped region at address 0x0
==28956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28956== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28956== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28956== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28956== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28956== by 0x8062D5B: main (nginx.c:385)
==28956== If you believe this happened as a result of a stack
==28956== overflow in your program's main thread (unlikely but
==28956== possible), you can try to increase the size of the
==28956== main thread stack using the --main-stacksize= flag.
==28956== The main thread stack size used in this run was 8388608.

036-sub.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
036-sub.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks ==28968== Invalid read of size 4
==28968== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28968== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28968== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28968== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28968== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28968== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28968== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28968== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28968== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28968== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28968== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28968== by 0x8062D5B: main (nginx.c:385)
==28968== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28968==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks ==28968==
==28968== Process terminating with default action of signal 11 (SIGSEGV)
==28968== Access not within mapped region at address 0x0
==28968== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28968== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28968== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28968== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28968== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28968== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28968== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28968== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28968== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28968== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==28968== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==28968== by 0x8062D5B: main (nginx.c:385)
==28968== If you believe this happened as a result of a stack
==28968== overflow in your program's main thread (unlikely but
==28968== possible), you can try to increase the size of the
==28968== main thread stack using the --main-stacksize= flag.
==28968== The main thread stack size used in this run was 8388608.

036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks ==28989== Invalid read of size 4
==28989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28989== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28989== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28989== by 0x8062D5B: main (nginx.c:385)
==28989== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28989==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks ==28989==
==28989== Process terminating with default action of signal 11 (SIGSEGV)
==28989== Access not within mapped region at address 0x0
==28989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==28989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==28989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==28989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==28989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==28989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==28989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==28989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==28989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==28989== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==28989== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==28989== by 0x8062D5B: main (nginx.c:385)
==28989== If you believe this happened as a result of a stack
==28989== overflow in your program's main thread (unlikely but
==28989== possible), you can try to increase the size of the
==28989== main thread stack using the --main-stacksize= flag.
==28989== The main thread stack size used in this run was 8388608.

036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character ==29001== Invalid read of size 4
==29001== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29001== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29001== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29001== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29001== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29001== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29001== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29001== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29001== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29001== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29001== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29001== by 0x8062D5B: main (nginx.c:385)
==29001== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29001==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character ==29001==
==29001== Process terminating with default action of signal 11 (SIGSEGV)
==29001== Access not within mapped region at address 0x0
==29001== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29001== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29001== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29001== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29001== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29001== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29001== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29001== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29001== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29001== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29001== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29001== by 0x8062D5B: main (nginx.c:385)
==29001== If you believe this happened as a result of a stack
==29001== overflow in your program's main thread (unlikely but
==29001== possible), you can try to increase the size of the
==29001== main thread stack using the --main-stacksize= flag.
==29001== The main thread stack size used in this run was 8388608.

036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab.cd
'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character ==29022== Invalid read of size 4
==29022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29022== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29022== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29022== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29022== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29022== by 0x8062D5B: main (nginx.c:385)
==29022== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29022==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character ==29022==
==29022== Process terminating with default action of signal 11 (SIGSEGV)
==29022== Access not within mapped region at address 0x0
==29022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29022== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29022== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29022== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29022== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29022== by 0x8062D5B: main (nginx.c:385)
==29022== If you believe this happened as a result of a stack
==29022== overflow in your program's main thread (unlikely but
==29022== possible), you can try to increase the size of the
==29022== main thread stack using the --main-stacksize= flag.
==29022== The main thread stack size used in this run was 8388608.

036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab.cd
'
036-sub.t TEST 2: not matched ==29034== Invalid read of size 4
==29034== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29034== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29034== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29034== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29034== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29034== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29034== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29034== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29034== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29034== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29034== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29034== by 0x8062D5B: main (nginx.c:385)
==29034== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29034==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 2: not matched ==29034==
==29034== Process terminating with default action of signal 11 (SIGSEGV)
==29034== Access not within mapped region at address 0x0
==29034== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29034== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29034== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29034== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29034== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29034== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29034== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29034== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29034== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29034== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29034== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29034== by 0x8062D5B: main (nginx.c:385)
==29034== If you believe this happened as a result of a stack
==29034== overflow in your program's main thread (unlikely but
==29034== possible), you can try to increase the size of the
==29034== main thread stack using the --main-stacksize= flag.
==29034== The main thread stack size used in this run was 8388608.

036-sub.t TEST 2: not matched - status code ok got: ''
expected: '200'
036-sub.t TEST 2: not matched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
036-sub.t TEST 2: not matched ==29055== Invalid read of size 4
==29055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29055== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29055== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29055== by 0x8062D5B: main (nginx.c:385)
==29055== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29055==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 2: not matched ==29055==
==29055== Process terminating with default action of signal 11 (SIGSEGV)
==29055== Access not within mapped region at address 0x0
==29055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29055== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29055== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29055== by 0x8062D5B: main (nginx.c:385)
==29055== If you believe this happened as a result of a stack
==29055== overflow in your program's main thread (unlikely but
==29055== possible), you can try to increase the size of the
==29055== main thread stack using the --main-stacksize= flag.
==29055== The main thread stack size used in this run was 8388608.

036-sub.t TEST 2: not matched - status code ok got: ''
expected: '200'
036-sub.t TEST 2: not matched - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks ==29067== Invalid read of size 4
==29067== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29067== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29067== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29067== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29067== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29067== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29067== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29067== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29067== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29067== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29067== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29067== by 0x8062D5B: main (nginx.c:385)
==29067== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29067==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks ==29067==
==29067== Process terminating with default action of signal 11 (SIGSEGV)
==29067== Access not within mapped region at address 0x0
==29067== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29067== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29067== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29067== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29067== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29067== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29067== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29067== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29067== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29067== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29067== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29067== by 0x8062D5B: main (nginx.c:385)
==29067== If you believe this happened as a result of a stack
==29067== overflow in your program's main thread (unlikely but
==29067== possible), you can try to increase the size of the
==29067== main thread stack using the --main-stacksize= flag.
==29067== The main thread stack size used in this run was 8388608.

036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks ==29088== Invalid read of size 4
==29088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29088== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29088== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29088== by 0x8062D5B: main (nginx.c:385)
==29088== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29088==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks ==29088==
==29088== Process terminating with default action of signal 11 (SIGSEGV)
==29088== Access not within mapped region at address 0x0
==29088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29088== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29088== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29088== by 0x8062D5B: main (nginx.c:385)
==29088== If you believe this happened as a result of a stack
==29088== overflow in your program's main thread (unlikely but
==29088== possible), you can try to increase the size of the
==29088== main thread stack using the --main-stacksize= flag.
==29088== The main thread stack size used in this run was 8388608.

036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character ==29100== Invalid read of size 4
==29100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29100== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29100== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29100== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29100== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29100== by 0x8062D5B: main (nginx.c:385)
==29100== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29100==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character ==29100==
==29100== Process terminating with default action of signal 11 (SIGSEGV)
==29100== Access not within mapped region at address 0x0
==29100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29100== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29100== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29100== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29100== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29100== by 0x8062D5B: main (nginx.c:385)
==29100== If you believe this happened as a result of a stack
==29100== overflow in your program's main thread (unlikely but
==29100== possible), you can try to increase the size of the
==29100== main thread stack using the --main-stacksize= flag.
==29100== The main thread stack size used in this run was 8388608.

036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'TestCase
'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character ==29121== Invalid read of size 4
==29121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29121== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29121== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29121== by 0x8062D5B: main (nginx.c:385)
==29121== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29121==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character ==29121==
==29121== Process terminating with default action of signal 11 (SIGSEGV)
==29121== Access not within mapped region at address 0x0
==29121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29121== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29121== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29121== by 0x8062D5B: main (nginx.c:385)
==29121== If you believe this happened as a result of a stack
==29121== overflow in your program's main thread (unlikely but
==29121== possible), you can try to increase the size of the
==29121== main thread stack using the --main-stacksize= flag.
==29121== The main thread stack size used in this run was 8388608.

036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'TestCase
'
036-sub.t TEST 15: function replace (failed) ==29133== Invalid read of size 4
==29133== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29133== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29133== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29133== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29133== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29133== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29133== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29133== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29133== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29133== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29133== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29133== by 0x8062D5B: main (nginx.c:385)
==29133== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29133==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 15: function replace (failed) ==29133==
==29133== Process terminating with default action of signal 11 (SIGSEGV)
==29133== Access not within mapped region at address 0x0
==29133== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29133== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29133== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29133== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29133== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29133== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29133== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29133== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29133== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29133== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29133== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29133== by 0x8062D5B: main (nginx.c:385)
==29133== If you believe this happened as a result of a stack
==29133== overflow in your program's main thread (unlikely but
==29133== possible), you can try to increase the size of the
==29133== main thread stack using the --main-stacksize= flag.
==29133== The main thread stack size used in this run was 8388608.

036-sub.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
036-sub.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
036-sub.t TEST 15: function replace (failed) ==29154== Invalid read of size 4
==29154== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29154== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29154== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29154== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29154== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29154== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29154== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29154== by 0x8062D5B: main (nginx.c:385)
==29154== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29154==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 15: function replace (failed) ==29154==
==29154== Process terminating with default action of signal 11 (SIGSEGV)
==29154== Access not within mapped region at address 0x0
==29154== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29154== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29154== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29154== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29154== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29154== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29154== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29154== by 0x8062D5B: main (nginx.c:385)
==29154== If you believe this happened as a result of a stack
==29154== overflow in your program's main thread (unlikely but
==29154== possible), you can try to increase the size of the
==29154== main thread stack using the --main-stacksize= flag.
==29154== The main thread stack size used in this run was 8388608.

036-sub.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
036-sub.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
036-sub.t TEST 28: just not hit match limit ==29166== Invalid read of size 4
==29166== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29166== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29166== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29166== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29166== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29166== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29166== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29166== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29166== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29166== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29166== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29166== by 0x8062D5B: main (nginx.c:385)
==29166== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29166==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 28: just not hit match limit ==29166==
==29166== Process terminating with default action of signal 11 (SIGSEGV)
==29166== Access not within mapped region at address 0x0
==29166== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29166== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29166== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29166== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29166== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29166== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29166== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29166== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29166== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29166== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29166== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29166== by 0x8062D5B: main (nginx.c:385)
==29166== If you believe this happened as a result of a stack
==29166== overflow in your program's main thread (unlikely but
==29166== possible), you can try to increase the size of the
==29166== main thread stack using the --main-stacksize= flag.
==29166== The main thread stack size used in this run was 8388608.

036-sub.t TEST 28: just not hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 28: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'sub: 0
'
036-sub.t TEST 28: just not hit match limit ==29187== Invalid read of size 4
==29187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29187== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29187== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29187== by 0x8062D5B: main (nginx.c:385)
==29187== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29187==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 28: just not hit match limit ==29187==
==29187== Process terminating with default action of signal 11 (SIGSEGV)
==29187== Access not within mapped region at address 0x0
==29187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29187== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29187== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29187== by 0x8062D5B: main (nginx.c:385)
==29187== If you believe this happened as a result of a stack
==29187== overflow in your program's main thread (unlikely but
==29187== possible), you can try to increase the size of the
==29187== main thread stack using the --main-stacksize= flag.
==29187== The main thread stack size used in this run was 8388608.

036-sub.t TEST 28: just not hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 28: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'sub: 0
'
036-sub.t TEST 24: bad UTF-8 ==29200== Invalid read of size 4
==29200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29200== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29200== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29200== by 0x8062D5B: main (nginx.c:385)
==29200== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29200==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 24: bad UTF-8 ==29200==
==29200== Process terminating with default action of signal 11 (SIGSEGV)
==29200== Access not within mapped region at address 0x0
==29200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29200== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29200== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29200== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29200== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29200== by 0x8062D5B: main (nginx.c:385)
==29200== If you believe this happened as a result of a stack
==29200== overflow in your program's main thread (unlikely but
==29200== possible), you can try to increase the size of the
==29200== main thread stack using the --main-stacksize= flag.
==29200== The main thread stack size used in this run was 8388608.

036-sub.t TEST 24: bad UTF-8 - status code ok got: ''
expected: '200'
036-sub.t TEST 24: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
036-sub.t TEST 24: bad UTF-8 ==29221== Invalid read of size 4
==29221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29221== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29221== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29221== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29221== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29221== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29221== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29221== by 0x8062D5B: main (nginx.c:385)
==29221== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29221==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 24: bad UTF-8 ==29221==
==29221== Process terminating with default action of signal 11 (SIGSEGV)
==29221== Access not within mapped region at address 0x0
==29221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29221== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29221== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29221== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29221== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29221== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29221== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29221== by 0x8062D5B: main (nginx.c:385)
==29221== If you believe this happened as a result of a stack
==29221== overflow in your program's main thread (unlikely but
==29221== possible), you can try to increase the size of the
==29221== main thread stack using the --main-stacksize= flag.
==29221== The main thread stack size used in this run was 8388608.

036-sub.t TEST 24: bad UTF-8 - status code ok got: ''
expected: '200'
036-sub.t TEST 24: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
036-sub.t TEST 6: matched and with bracketed variables ==29233== Invalid read of size 4
==29233== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29233== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29233== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29233== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29233== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29233== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29233== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29233== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29233== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29233== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29233== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29233== by 0x8062D5B: main (nginx.c:385)
==29233== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29233==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 6: matched and with bracketed variables ==29233==
==29233== Process terminating with default action of signal 11 (SIGSEGV)
==29233== Access not within mapped region at address 0x0
==29233== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29233== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29233== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29233== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29233== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29233== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29233== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29233== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29233== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29233== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29233== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29233== by 0x8062D5B: main (nginx.c:385)
==29233== If you believe this happened as a result of a stack
==29233== overflow in your program's main thread (unlikely but
==29233== possible), you can try to increase the size of the
==29233== main thread stack using the --main-stacksize= flag.
==29233== The main thread stack size used in this run was 8388608.

036-sub.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
036-sub.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 6: matched and with bracketed variables ==29254== Invalid read of size 4
==29254== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29254== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29254== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29254== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29254== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29254== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29254== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29254== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29254== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29254== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29254== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29254== by 0x8062D5B: main (nginx.c:385)
==29254== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29254==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 6: matched and with bracketed variables ==29254==
==29254== Process terminating with default action of signal 11 (SIGSEGV)
==29254== Access not within mapped region at address 0x0
==29254== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29254== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29254== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29254== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29254== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29254== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29254== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29254== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29254== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29254== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29254== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29254== by 0x8062D5B: main (nginx.c:385)
==29254== If you believe this happened as a result of a stack
==29254== overflow in your program's main thread (unlikely but
==29254== possible), you can try to increase the size of the
==29254== main thread stack using the --main-stacksize= flag.
==29254== The main thread stack size used in this run was 8388608.

036-sub.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
036-sub.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) ==29266== Invalid read of size 4
==29266== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29266== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29266== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29266== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29266== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29266== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29266== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29266== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29266== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29266== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29266== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29266== by 0x8062D5B: main (nginx.c:385)
==29266== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29266==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) ==29266==
==29266== Process terminating with default action of signal 11 (SIGSEGV)
==29266== Access not within mapped region at address 0x0
==29266== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29266== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29266== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29266== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29266== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29266== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29266== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29266== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29266== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29266== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29266== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29266== by 0x8062D5B: main (nginx.c:385)
==29266== If you believe this happened as a result of a stack
==29266== overflow in your program's main thread (unlikely but
==29266== possible), you can try to increase the size of the
==29266== main thread stack using the --main-stacksize= flag.
==29266== The main thread stack size used in this run was 8388608.

036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) ==29287== Invalid read of size 4
==29287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29287== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29287== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29287== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29287== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29287== by 0x8062D5B: main (nginx.c:385)
==29287== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29287==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) ==29287==
==29287== Process terminating with default action of signal 11 (SIGSEGV)
==29287== Access not within mapped region at address 0x0
==29287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29287== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29287== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29287== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29287== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29287== by 0x8062D5B: main (nginx.c:385)
==29287== If you believe this happened as a result of a stack
==29287== overflow in your program's main thread (unlikely but
==29287== possible), you can try to increase the size of the
==29287== main thread stack using the --main-stacksize= flag.
==29287== The main thread stack size used in this run was 8388608.

036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) ==29299== Invalid read of size 4
==29299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29299== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29299== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29299== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29299== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29299== by 0x8062D5B: main (nginx.c:385)
==29299== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29299==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) ==29299==
==29299== Process terminating with default action of signal 11 (SIGSEGV)
==29299== Access not within mapped region at address 0x0
==29299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29299== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29299== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29299== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29299== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29299== by 0x8062D5B: main (nginx.c:385)
==29299== If you believe this happened as a result of a stack
==29299== overflow in your program's main thread (unlikely but
==29299== possible), you can try to increase the size of the
==29299== main thread stack using the --main-stacksize= flag.
==29299== The main thread stack size used in this run was 8388608.

036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) ==29320== Invalid read of size 4
==29320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29320== by 0x8062D5B: main (nginx.c:385)
==29320== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29320==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) ==29320==
==29320== Process terminating with default action of signal 11 (SIGSEGV)
==29320== Access not within mapped region at address 0x0
==29320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29320== by 0x8062D5B: main (nginx.c:385)
==29320== If you believe this happened as a result of a stack
==29320== overflow in your program's main thread (unlikely but
==29320== possible), you can try to increase the size of the
==29320== main thread stack using the --main-stacksize= flag.
==29320== The main thread stack size used in this run was 8388608.

036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 17: use number to replace ==29332== Invalid read of size 4
==29332== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29332== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29332== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29332== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29332== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29332== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29332== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29332== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29332== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29332== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29332== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29332== by 0x8062D5B: main (nginx.c:385)
==29332== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29332==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 17: use number to replace ==29332==
==29332== Process terminating with default action of signal 11 (SIGSEGV)
==29332== Access not within mapped region at address 0x0
==29332== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29332== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29332== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29332== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29332== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29332== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29332== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29332== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29332== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29332== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29332== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29332== by 0x8062D5B: main (nginx.c:385)
==29332== If you believe this happened as a result of a stack
==29332== overflow in your program's main thread (unlikely but
==29332== possible), you can try to increase the size of the
==29332== main thread stack using the --main-stacksize= flag.
==29332== The main thread stack size used in this run was 8388608.

036-sub.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
036-sub.t TEST 17: use number to replace - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
036-sub.t TEST 17: use number to replace ==29353== Invalid read of size 4
==29353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29353== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29353== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29353== by 0x8062D5B: main (nginx.c:385)
==29353== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29353==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 17: use number to replace ==29353==
==29353== Process terminating with default action of signal 11 (SIGSEGV)
==29353== Access not within mapped region at address 0x0
==29353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29353== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29353== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29353== by 0x8062D5B: main (nginx.c:385)
==29353== If you believe this happened as a result of a stack
==29353== overflow in your program's main thread (unlikely but
==29353== possible), you can try to increase the size of the
==29353== main thread stack using the --main-stacksize= flag.
==29353== The main thread stack size used in this run was 8388608.

036-sub.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
036-sub.t TEST 17: use number to replace - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
036-sub.t TEST 10: trailing $ ==29365== Invalid read of size 4
==29365== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29365== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29365== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29365== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29365== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29365== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29365== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29365== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29365== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29365== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29365== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29365== by 0x8062D5B: main (nginx.c:385)
==29365== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29365==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 10: trailing $ ==29365==
==29365== Process terminating with default action of signal 11 (SIGSEGV)
==29365== Access not within mapped region at address 0x0
==29365== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29365== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29365== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29365== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29365== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29365== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29365== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29365== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29365== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29365== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29365== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29365== by 0x8062D5B: main (nginx.c:385)
==29365== If you believe this happened as a result of a stack
==29365== overflow in your program's main thread (unlikely but
==29365== possible), you can try to increase the size of the
==29365== main thread stack using the --main-stacksize= flag.
==29365== The main thread stack size used in this run was 8388608.

036-sub.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
036-sub.t TEST 10: trailing $ - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 10: trailing $ ==29386== Invalid read of size 4
==29386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29386== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29386== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29386== by 0x8062D5B: main (nginx.c:385)
==29386== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29386==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 10: trailing $ ==29386==
==29386== Process terminating with default action of signal 11 (SIGSEGV)
==29386== Access not within mapped region at address 0x0
==29386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29386== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29386== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29386== by 0x8062D5B: main (nginx.c:385)
==29386== If you believe this happened as a result of a stack
==29386== overflow in your program's main thread (unlikely but
==29386== possible), you can try to increase the size of the
==29386== main thread stack using the --main-stacksize= flag.
==29386== The main thread stack size used in this run was 8388608.

036-sub.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
036-sub.t TEST 10: trailing $ - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 23: bad pattern ==29398== Invalid read of size 4
==29398== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29398== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29398== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29398== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29398== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29398== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29398== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29398== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29398== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29398== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29398== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29398== by 0x8062D5B: main (nginx.c:385)
==29398== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29398==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 23: bad pattern ==29398==
==29398== Process terminating with default action of signal 11 (SIGSEGV)
==29398== Access not within mapped region at address 0x0
==29398== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29398== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29398== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29398== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29398== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29398== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29398== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29398== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29398== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29398== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29398== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29398== by 0x8062D5B: main (nginx.c:385)
==29398== If you believe this happened as a result of a stack
==29398== overflow in your program's main thread (unlikely but
==29398== possible), you can try to increase the size of the
==29398== main thread stack using the --main-stacksize= flag.
==29398== The main thread stack size used in this run was 8388608.

036-sub.t TEST 23: bad pattern - status code ok got: ''
expected: '200'
036-sub.t TEST 23: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
036-sub.t TEST 23: bad pattern ==29419== Invalid read of size 4
==29419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29419== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29419== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29419== by 0x8062D5B: main (nginx.c:385)
==29419== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29419==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 23: bad pattern ==29419==
==29419== Process terminating with default action of signal 11 (SIGSEGV)
==29419== Access not within mapped region at address 0x0
==29419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29419== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29419== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29419== by 0x8062D5B: main (nginx.c:385)
==29419== If you believe this happened as a result of a stack
==29419== overflow in your program's main thread (unlikely but
==29419== possible), you can try to increase the size of the
==29419== main thread stack using the --main-stacksize= flag.
==29419== The main thread stack size used in this run was 8388608.

036-sub.t TEST 23: bad pattern - status code ok got: ''
expected: '200'
036-sub.t TEST 23: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
036-sub.t TEST 5: matched and with named variables (bracketed) ==29431== Invalid read of size 4
==29431== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29431== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29431== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29431== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29431== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29431== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29431== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29431== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29431== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29431== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29431== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29431== by 0x8062D5B: main (nginx.c:385)
==29431== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29431==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 5: matched and with named variables (bracketed) ==29431==
==29431== Process terminating with default action of signal 11 (SIGSEGV)
==29431== Access not within mapped region at address 0x0
==29431== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29431== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29431== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29431== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29431== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29431== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29431== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29431== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29431== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29431== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29431== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29431== by 0x8062D5B: main (nginx.c:385)
==29431== If you believe this happened as a result of a stack
==29431== overflow in your program's main thread (unlikely but
==29431== possible), you can try to increase the size of the
==29431== main thread stack using the --main-stacksize= flag.
==29431== The main thread stack size used in this run was 8388608.

036-sub.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
036-sub.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 5: matched and with named variables (bracketed) ==29452== Invalid read of size 4
==29452== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29452== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29452== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29452== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29452== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29452== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29452== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29452== by 0x8062D5B: main (nginx.c:385)
==29452== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29452==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 5: matched and with named variables (bracketed) ==29452==
==29452== Process terminating with default action of signal 11 (SIGSEGV)
==29452== Access not within mapped region at address 0x0
==29452== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29452== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29452== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29452== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29452== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29452== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29452== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29452== by 0x8062D5B: main (nginx.c:385)
==29452== If you believe this happened as a result of a stack
==29452== overflow in your program's main thread (unlikely but
==29452== possible), you can try to increase the size of the
==29452== main thread stack using the --main-stacksize= flag.
==29452== The main thread stack size used in this run was 8388608.

036-sub.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
036-sub.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 4: matched and with named variables ==29464== Invalid read of size 4
==29464== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29464== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29464== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29464== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29464== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29464== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29464== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29464== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29464== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29464== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29464== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29464== by 0x8062D5B: main (nginx.c:385)
==29464== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29464==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 4: matched and with named variables ==29464==
==29464== Process terminating with default action of signal 11 (SIGSEGV)
==29464== Access not within mapped region at address 0x0
==29464== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29464== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29464== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29464== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29464== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29464== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29464== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29464== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29464== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29464== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29464== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29464== by 0x8062D5B: main (nginx.c:385)
==29464== If you believe this happened as a result of a stack
==29464== overflow in your program's main thread (unlikely but
==29464== possible), you can try to increase the size of the
==29464== main thread stack using the --main-stacksize= flag.
==29464== The main thread stack size used in this run was 8388608.

036-sub.t TEST 4: matched and with named variables - status code ok got: ''
expected: '200'
036-sub.t TEST 4: matched and with named variables - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 4: matched and with named variables ==29485== Invalid read of size 4
==29485== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29485== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29485== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29485== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29485== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29485== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29485== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29485== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29485== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29485== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29485== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29485== by 0x8062D5B: main (nginx.c:385)
==29485== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29485==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 4: matched and with named variables ==29485==
==29485== Process terminating with default action of signal 11 (SIGSEGV)
==29485== Access not within mapped region at address 0x0
==29485== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29485== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29485== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29485== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29485== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29485== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29485== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29485== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29485== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29485== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29485== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29485== by 0x8062D5B: main (nginx.c:385)
==29485== If you believe this happened as a result of a stack
==29485== overflow in your program's main thread (unlikely but
==29485== possible), you can try to increase the size of the
==29485== main thread stack using the --main-stacksize= flag.
==29485== The main thread stack size used in this run was 8388608.

036-sub.t TEST 4: matched and with named variables - status code ok got: ''
expected: '200'
036-sub.t TEST 4: matched and with named variables - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 20: matched and with variables using named patterns in func ==29497== Invalid read of size 4
==29497== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29497== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29497== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29497== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29497== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29497== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29497== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29497== by 0x8062D5B: main (nginx.c:385)
==29497== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29497==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 20: matched and with variables using named patterns in func ==29497==
==29497== Process terminating with default action of signal 11 (SIGSEGV)
==29497== Access not within mapped region at address 0x0
==29497== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29497== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29497== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29497== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29497== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29497== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29497== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29497== by 0x8062D5B: main (nginx.c:385)
==29497== If you believe this happened as a result of a stack
==29497== overflow in your program's main thread (unlikely but
==29497== possible), you can try to increase the size of the
==29497== main thread stack using the --main-stacksize= flag.
==29497== The main thread stack size used in this run was 8388608.

036-sub.t TEST 20: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
036-sub.t TEST 20: matched and with variables using named patterns in func - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
036-sub.t TEST 20: matched and with variables using named patterns in func - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:07:04 [alert] 28788\#0: worker process 29497 exited on signal 11" (req 0) 2020/10/27 04:07:04 [debug] 28788\#0: shmtx forced unlock
2020/10/27 04:07:04 [debug] 28788\#0: wake up, sigio 0
2020/10/27 04:07:04 [debug] 28788\#0: reap children
2020/10/27 04:07:04 [debug] 28788\#0: child: 0 29497 e:0 t:1 d:0 r:1 j:0
'
036-sub.t TEST 20: matched and with variables using named patterns in func ==29518== Invalid read of size 4
==29518== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29518== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29518== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29518== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29518== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29518== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29518== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29518== by 0x8062D5B: main (nginx.c:385)
==29518== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29518==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 20: matched and with variables using named patterns in func ==29518==
==29518== Process terminating with default action of signal 11 (SIGSEGV)
==29518== Access not within mapped region at address 0x0
==29518== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29518== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29518== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29518== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29518== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29518== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29518== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29518== by 0x8062D5B: main (nginx.c:385)
==29518== If you believe this happened as a result of a stack
==29518== overflow in your program's main thread (unlikely but
==29518== possible), you can try to increase the size of the
==29518== main thread stack using the --main-stacksize= flag.
==29518== The main thread stack size used in this run was 8388608.

036-sub.t TEST 20: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
036-sub.t TEST 20: matched and with variables using named patterns in func - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
036-sub.t TEST 20: matched and with variables using named patterns in func - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:07:04 [alert] 28788\#0: worker process 29518 exited on signal 11" (req 1) 2020/10/27 04:07:04 [debug] 28788\#0: shmtx forced unlock
2020/10/27 04:07:04 [debug] 28788\#0: wake up, sigio 0
2020/10/27 04:07:04 [debug] 28788\#0: reap children
2020/10/27 04:07:04 [debug] 28788\#0: child: 0 29518 e:0 t:1 d:0 r:1 j:0
'
036-sub.t TEST 14: function replace ==29530== Invalid read of size 4
==29530== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29530== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29530== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29530== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29530== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29530== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29530== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29530== by 0x8062D5B: main (nginx.c:385)
==29530== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29530==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 14: function replace ==29530==
==29530== Process terminating with default action of signal 11 (SIGSEGV)
==29530== Access not within mapped region at address 0x0
==29530== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29530== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29530== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29530== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29530== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29530== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29530== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29530== by 0x8062D5B: main (nginx.c:385)
==29530== If you believe this happened as a result of a stack
==29530== overflow in your program's main thread (unlikely but
==29530== possible), you can try to increase the size of the
==29530== main thread stack using the --main-stacksize= flag.
==29530== The main thread stack size used in this run was 8388608.

036-sub.t TEST 14: function replace - status code ok got: ''
expected: '200'
036-sub.t TEST 14: function replace - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
036-sub.t TEST 14: function replace ==29551== Invalid read of size 4
==29551== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29551== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29551== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29551== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29551== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29551== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29551== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29551== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29551== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29551== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29551== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29551== by 0x8062D5B: main (nginx.c:385)
==29551== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29551==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 14: function replace ==29551==
==29551== Process terminating with default action of signal 11 (SIGSEGV)
==29551== Access not within mapped region at address 0x0
==29551== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29551== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29551== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29551== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29551== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29551== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29551== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29551== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29551== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29551== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29551== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29551== by 0x8062D5B: main (nginx.c:385)
==29551== If you believe this happened as a result of a stack
==29551== overflow in your program's main thread (unlikely but
==29551== possible), you can try to increase the size of the
==29551== main thread stack using the --main-stacksize= flag.
==29551== The main thread stack size used in this run was 8388608.

036-sub.t TEST 14: function replace - status code ok got: ''
expected: '200'
036-sub.t TEST 14: function replace - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
036-sub.t TEST 13: anchored match ==29563== Invalid read of size 4
==29563== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29563== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29563== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29563== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29563== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29563== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29563== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29563== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29563== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29563== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29563== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29563== by 0x8062D5B: main (nginx.c:385)
==29563== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29563==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 13: anchored match ==29563==
==29563== Process terminating with default action of signal 11 (SIGSEGV)
==29563== Access not within mapped region at address 0x0
==29563== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29563== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29563== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29563== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29563== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29563== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29563== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29563== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29563== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29563== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29563== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29563== by 0x8062D5B: main (nginx.c:385)
==29563== If you believe this happened as a result of a stack
==29563== overflow in your program's main thread (unlikely but
==29563== possible), you can try to increase the size of the
==29563== main thread stack using the --main-stacksize= flag.
==29563== The main thread stack size used in this run was 8388608.

036-sub.t TEST 13: anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 13: anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
036-sub.t TEST 13: anchored match ==29584== Invalid read of size 4
==29584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29584== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29584== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29584== by 0x8062D5B: main (nginx.c:385)
==29584== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29584==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 13: anchored match ==29584==
==29584== Process terminating with default action of signal 11 (SIGSEGV)
==29584== Access not within mapped region at address 0x0
==29584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29584== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29584== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29584== by 0x8062D5B: main (nginx.c:385)
==29584== If you believe this happened as a result of a stack
==29584== overflow in your program's main thread (unlikely but
==29584== possible), you can try to increase the size of the
==29584== main thread stack using the --main-stacksize= flag.
==29584== The main thread stack size used in this run was 8388608.

036-sub.t TEST 13: anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 13: anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
036-sub.t TEST 1: matched but w/o variables ==29596== Invalid read of size 4
==29596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29596== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29596== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29596== by 0x8062D5B: main (nginx.c:385)
==29596== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29596==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 1: matched but w/o variables ==29596==
==29596== Process terminating with default action of signal 11 (SIGSEGV)
==29596== Access not within mapped region at address 0x0
==29596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29596== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29596== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29596== by 0x8062D5B: main (nginx.c:385)
==29596== If you believe this happened as a result of a stack
==29596== overflow in your program's main thread (unlikely but
==29596== possible), you can try to increase the size of the
==29596== main thread stack using the --main-stacksize= flag.
==29596== The main thread stack size used in this run was 8388608.

036-sub.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
036-sub.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
036-sub.t TEST 1: matched but w/o variables ==29617== Invalid read of size 4
==29617== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29617== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29617== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29617== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29617== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29617== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29617== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29617== by 0x8062D5B: main (nginx.c:385)
==29617== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29617==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 1: matched but w/o variables ==29617==
==29617== Process terminating with default action of signal 11 (SIGSEGV)
==29617== Access not within mapped region at address 0x0
==29617== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29617== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29617== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29617== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29617== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29617== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29617== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29617== by 0x8062D5B: main (nginx.c:385)
==29617== If you believe this happened as a result of a stack
==29617== overflow in your program's main thread (unlikely but
==29617== possible), you can try to increase the size of the
==29617== main thread stack using the --main-stacksize= flag.
==29617== The main thread stack size used in this run was 8388608.

036-sub.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
036-sub.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) ==29629== Invalid read of size 4
==29629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29629== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29629== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29629== by 0x8062D5B: main (nginx.c:385)
==29629== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29629==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) ==29629==
==29629== Process terminating with default action of signal 11 (SIGSEGV)
==29629== Access not within mapped region at address 0x0
==29629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29629== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29629== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29629== by 0x8062D5B: main (nginx.c:385)
==29629== If you believe this happened as a result of a stack
==29629== overflow in your program's main thread (unlikely but
==29629== possible), you can try to increase the size of the
==29629== main thread stack using the --main-stacksize= flag.
==29629== The main thread stack size used in this run was 8388608.

036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) ==29650== Invalid read of size 4
==29650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29650== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29650== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29650== by 0x8062D5B: main (nginx.c:385)
==29650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) ==29650==
==29650== Process terminating with default action of signal 11 (SIGSEGV)
==29650== Access not within mapped region at address 0x0
==29650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29650== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29650== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29650== by 0x8062D5B: main (nginx.c:385)
==29650== If you believe this happened as a result of a stack
==29650== overflow in your program's main thread (unlikely but
==29650== possible), you can try to increase the size of the
==29650== main thread stack using the --main-stacksize= flag.
==29650== The main thread stack size used in this run was 8388608.

036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub ==29662== Invalid read of size 4
==29662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29662== by 0x8062D5B: main (nginx.c:385)
==29662== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29662==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub ==29662==
==29662== Process terminating with default action of signal 11 (SIGSEGV)
==29662== Access not within mapped region at address 0x0
==29662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==29662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==29662== by 0x8062D5B: main (nginx.c:385)
==29662== If you believe this happened as a result of a stack
==29662== overflow in your program's main thread (unlikely but
==29662== possible), you can try to increase the size of the
==29662== main thread stack using the --main-stacksize= flag.
==29662== The main thread stack size used in this run was 8388608.

036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub ==29683== Invalid read of size 4
==29683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29683== by 0x8062D5B: main (nginx.c:385)
==29683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==29683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub ==29683==
==29683== Process terminating with default action of signal 11 (SIGSEGV)
==29683== Access not within mapped region at address 0x0
==29683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==29683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==29683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==29683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==29683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==29683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==29683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==29683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==29683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==29683== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==29683== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==29683== by 0x8062D5B: main (nginx.c:385)
==29683== If you believe this happened as a result of a stack
==29683== overflow in your program's main thread (unlikely but
==29683== possible), you can try to increase the size of the
==29683== main thread stack using the --main-stacksize= flag.
==29683== The main thread stack size used in this run was 8388608.

036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==31300== Invalid read of size 4
==31300== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31300== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31300== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31300== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31300== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31300== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31300== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31300== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31300== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31300== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31300== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==31300== by 0x8062D5B: main (nginx.c:385)
==31300== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31300==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==31300==
==31300== Process terminating with default action of signal 11 (SIGSEGV)
==31300== Access not within mapped region at address 0x0
==31300== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31300== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31300== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31300== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31300== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31300== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31300== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31300== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31300== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31300== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31300== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==31300== by 0x8062D5B: main (nginx.c:385)
==31300== If you believe this happened as a result of a stack
==31300== overflow in your program's main thread (unlikely but
==31300== possible), you can try to increase the size of the
==31300== main thread stack using the --main-stacksize= flag.
==31300== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==31301== Invalid read of size 4
==31301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31301== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31301== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31301== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31301== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31301== by 0x8062D5B: main (nginx.c:385)
==31301== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31301==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==31301==
==31301== Process terminating with default action of signal 11 (SIGSEGV)
==31301== Access not within mapped region at address 0x0
==31301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31301== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31301== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31301== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31301== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31301== by 0x8062D5B: main (nginx.c:385)
==31301== If you believe this happened as a result of a stack
==31301== overflow in your program's main thread (unlikely but
==31301== possible), you can try to increase the size of the
==31301== main thread stack using the --main-stacksize= flag.
==31301== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 12: non-anchored match ==31313== Invalid read of size 4
==31313== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31313== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31313== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31313== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31313== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31313== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31313== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31313== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31313== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31313== by 0x8062D5B: main (nginx.c:385)
==31313== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31313==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 12: non-anchored match ==31313==
==31313== Process terminating with default action of signal 11 (SIGSEGV)
==31313== Access not within mapped region at address 0x0
==31313== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31313== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31313== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31313== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31313== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31313== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31313== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31313== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31313== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31313== by 0x8062D5B: main (nginx.c:385)
==31313== If you believe this happened as a result of a stack
==31313== overflow in your program's main thread (unlikely but
==31313== possible), you can try to increase the size of the
==31313== main thread stack using the --main-stacksize= flag.
==31313== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 12: non-anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
039-sub-o.t TEST 12: non-anchored match ==31334== Invalid read of size 4
==31334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31334== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31334== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31334== by 0x8062D5B: main (nginx.c:385)
==31334== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31334==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 12: non-anchored match ==31334==
==31334== Process terminating with default action of signal 11 (SIGSEGV)
==31334== Access not within mapped region at address 0x0
==31334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31334== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31334== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31334== by 0x8062D5B: main (nginx.c:385)
==31334== If you believe this happened as a result of a stack
==31334== overflow in your program's main thread (unlikely but
==31334== possible), you can try to increase the size of the
==31334== main thread stack using the --main-stacksize= flag.
==31334== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 12: non-anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
039-sub-o.t TEST 6: matched and with bracketed variables ==31346== Invalid read of size 4
==31346== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31346== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31346== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31346== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31346== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31346== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31346== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31346== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31346== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31346== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31346== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31346== by 0x8062D5B: main (nginx.c:385)
==31346== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31346==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 6: matched and with bracketed variables ==31346==
==31346== Process terminating with default action of signal 11 (SIGSEGV)
==31346== Access not within mapped region at address 0x0
==31346== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31346== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31346== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31346== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31346== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31346== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31346== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31346== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31346== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31346== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31346== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31346== by 0x8062D5B: main (nginx.c:385)
==31346== If you believe this happened as a result of a stack
==31346== overflow in your program's main thread (unlikely but
==31346== possible), you can try to increase the size of the
==31346== main thread stack using the --main-stacksize= flag.
==31346== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 6: matched and with bracketed variables ==31367== Invalid read of size 4
==31367== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31367== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31367== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31367== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31367== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31367== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31367== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31367== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31367== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31367== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31367== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31367== by 0x8062D5B: main (nginx.c:385)
==31367== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31367==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 6: matched and with bracketed variables ==31367==
==31367== Process terminating with default action of signal 11 (SIGSEGV)
==31367== Access not within mapped region at address 0x0
==31367== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31367== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31367== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31367== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31367== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31367== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31367== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31367== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31367== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31367== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31367== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31367== by 0x8062D5B: main (nginx.c:385)
==31367== If you believe this happened as a result of a stack
==31367== overflow in your program's main thread (unlikely but
==31367== possible), you can try to increase the size of the
==31367== main thread stack using the --main-stacksize= flag.
==31367== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) ==31379== Invalid read of size 4
==31379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31379== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31379== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31379== by 0x8062D5B: main (nginx.c:385)
==31379== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) ==31379==
==31379== Process terminating with default action of signal 11 (SIGSEGV)
==31379== Access not within mapped region at address 0x0
==31379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31379== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31379== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31379== by 0x8062D5B: main (nginx.c:385)
==31379== If you believe this happened as a result of a stack
==31379== overflow in your program's main thread (unlikely but
==31379== possible), you can try to increase the size of the
==31379== main thread stack using the --main-stacksize= flag.
==31379== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) ==31400== Invalid read of size 4
==31400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31400== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31400== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31400== by 0x8062D5B: main (nginx.c:385)
==31400== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31400==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) ==31400==
==31400== Process terminating with default action of signal 11 (SIGSEGV)
==31400== Access not within mapped region at address 0x0
==31400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31400== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31400== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31400== by 0x8062D5B: main (nginx.c:385)
==31400== If you believe this happened as a result of a stack
==31400== overflow in your program's main thread (unlikely but
==31400== possible), you can try to increase the size of the
==31400== main thread stack using the --main-stacksize= flag.
==31400== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 25: matched and with variables using named patterns in func ==31412== Invalid read of size 4
==31412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31412== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31412== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31412== by 0x8062D5B: main (nginx.c:385)
==31412== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31412==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 25: matched and with variables using named patterns in func ==31412==
==31412== Process terminating with default action of signal 11 (SIGSEGV)
==31412== Access not within mapped region at address 0x0
==31412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31412== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31412== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31412== by 0x8062D5B: main (nginx.c:385)
==31412== If you believe this happened as a result of a stack
==31412== overflow in your program's main thread (unlikely but
==31412== possible), you can try to increase the size of the
==31412== main thread stack using the --main-stacksize= flag.
==31412== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 25: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
039-sub-o.t TEST 25: matched and with variables using named patterns in func - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
039-sub-o.t TEST 25: matched and with variables using named patterns in func ==31433== Invalid read of size 4
==31433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31433== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31433== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31433== by 0x8062D5B: main (nginx.c:385)
==31433== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31433==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 25: matched and with variables using named patterns in func ==31433==
==31433== Process terminating with default action of signal 11 (SIGSEGV)
==31433== Access not within mapped region at address 0x0
==31433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31433== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31433== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31433== by 0x8062D5B: main (nginx.c:385)
==31433== If you believe this happened as a result of a stack
==31433== overflow in your program's main thread (unlikely but
==31433== possible), you can try to increase the size of the
==31433== main thread stack using the --main-stacksize= flag.
==31433== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 25: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
039-sub-o.t TEST 25: matched and with variables using named patterns in func - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
039-sub-o.t TEST 21: exceeding regex cache max entries ==31445== Invalid read of size 4
==31445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31445== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31445== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31445== by 0x8062D5B: main (nginx.c:385)
==31445== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31445==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 21: exceeding regex cache max entries ==31445==
==31445== Process terminating with default action of signal 11 (SIGSEGV)
==31445== Access not within mapped region at address 0x0
==31445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31445== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31445== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31445== by 0x8062D5B: main (nginx.c:385)
==31445== If you believe this happened as a result of a stack
==31445== overflow in your program's main thread (unlikely but
==31445== possible), you can try to increase the size of the
==31445== main thread stack using the --main-stacksize= flag.
==31445== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 21: exceeding regex cache max entries - status code ok got: ''
expected: '200'
039-sub-o.t TEST 21: exceeding regex cache max entries - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 21: exceeding regex cache max entries ==31466== Invalid read of size 4
==31466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31466== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31466== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31466== by 0x8062D5B: main (nginx.c:385)
==31466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 21: exceeding regex cache max entries ==31466==
==31466== Process terminating with default action of signal 11 (SIGSEGV)
==31466== Access not within mapped region at address 0x0
==31466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31466== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31466== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31466== by 0x8062D5B: main (nginx.c:385)
==31466== If you believe this happened as a result of a stack
==31466== overflow in your program's main thread (unlikely but
==31466== possible), you can try to increase the size of the
==31466== main thread stack using the --main-stacksize= flag.
==31466== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 21: exceeding regex cache max entries - status code ok got: ''
expected: '200'
039-sub-o.t TEST 21: exceeding regex cache max entries - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 3: matched and with variables ==31478== Invalid read of size 4
==31478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31478== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31478== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31478== by 0x8062D5B: main (nginx.c:385)
==31478== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31478==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 3: matched and with variables ==31478==
==31478== Process terminating with default action of signal 11 (SIGSEGV)
==31478== Access not within mapped region at address 0x0
==31478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31478== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31478== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31478== by 0x8062D5B: main (nginx.c:385)
==31478== If you believe this happened as a result of a stack
==31478== overflow in your program's main thread (unlikely but
==31478== possible), you can try to increase the size of the
==31478== main thread stack using the --main-stacksize= flag.
==31478== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 3: matched and with variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 3: matched and with variables ==31499== Invalid read of size 4
==31499== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31499== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31499== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31499== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31499== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31499== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31499== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31499== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31499== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31499== by 0x8062D5B: main (nginx.c:385)
==31499== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31499==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 3: matched and with variables ==31499==
==31499== Process terminating with default action of signal 11 (SIGSEGV)
==31499== Access not within mapped region at address 0x0
==31499== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31499== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31499== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31499== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31499== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31499== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31499== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31499== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31499== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31499== by 0x8062D5B: main (nginx.c:385)
==31499== If you believe this happened as a result of a stack
==31499== overflow in your program's main thread (unlikely but
==31499== possible), you can try to increase the size of the
==31499== main thread stack using the --main-stacksize= flag.
==31499== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 3: matched and with variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 10: trailing $ ==31511== Invalid read of size 4
==31511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31511== by 0x8062D5B: main (nginx.c:385)
==31511== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31511==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 10: trailing $ ==31511==
==31511== Process terminating with default action of signal 11 (SIGSEGV)
==31511== Access not within mapped region at address 0x0
==31511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31511== by 0x8062D5B: main (nginx.c:385)
==31511== If you believe this happened as a result of a stack
==31511== overflow in your program's main thread (unlikely but
==31511== possible), you can try to increase the size of the
==31511== main thread stack using the --main-stacksize= flag.
==31511== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 10: trailing $ - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 10: trailing $ ==31532== Invalid read of size 4
==31532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31532== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31532== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31532== by 0x8062D5B: main (nginx.c:385)
==31532== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31532==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 10: trailing $ ==31532==
==31532== Process terminating with default action of signal 11 (SIGSEGV)
==31532== Access not within mapped region at address 0x0
==31532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31532== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31532== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31532== by 0x8062D5B: main (nginx.c:385)
==31532== If you believe this happened as a result of a stack
==31532== overflow in your program's main thread (unlikely but
==31532== possible), you can try to increase the size of the
==31532== main thread stack using the --main-stacksize= flag.
==31532== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 10: trailing $ - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 4: matched and with named variables (bad template) ==31544== Invalid read of size 4
==31544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31544== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31544== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31544== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31544== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31544== by 0x8062D5B: main (nginx.c:385)
==31544== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31544==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 4: matched and with named variables (bad template) ==31544==
==31544== Process terminating with default action of signal 11 (SIGSEGV)
==31544== Access not within mapped region at address 0x0
==31544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31544== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31544== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31544== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31544== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31544== by 0x8062D5B: main (nginx.c:385)
==31544== If you believe this happened as a result of a stack
==31544== overflow in your program's main thread (unlikely but
==31544== possible), you can try to increase the size of the
==31544== main thread stack using the --main-stacksize= flag.
==31544== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 4: matched and with named variables (bad template) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 4: matched and with named variables (bad template) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 4: matched and with named variables (bad template) ==31565== Invalid read of size 4
==31565== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31565== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31565== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31565== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31565== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31565== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31565== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31565== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31565== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31565== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31565== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31565== by 0x8062D5B: main (nginx.c:385)
==31565== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31565==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 4: matched and with named variables (bad template) ==31565==
==31565== Process terminating with default action of signal 11 (SIGSEGV)
==31565== Access not within mapped region at address 0x0
==31565== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31565== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31565== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31565== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31565== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31565== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31565== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31565== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31565== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31565== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31565== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31565== by 0x8062D5B: main (nginx.c:385)
==31565== If you believe this happened as a result of a stack
==31565== overflow in your program's main thread (unlikely but
==31565== possible), you can try to increase the size of the
==31565== main thread stack using the --main-stacksize= flag.
==31565== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 4: matched and with named variables (bad template) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 4: matched and with named variables (bad template) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 17: use number to replace ==31577== Invalid read of size 4
==31577== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31577== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31577== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31577== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31577== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31577== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31577== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31577== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31577== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31577== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31577== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31577== by 0x8062D5B: main (nginx.c:385)
==31577== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31577==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 17: use number to replace ==31577==
==31577== Process terminating with default action of signal 11 (SIGSEGV)
==31577== Access not within mapped region at address 0x0
==31577== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31577== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31577== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31577== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31577== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31577== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31577== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31577== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31577== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31577== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31577== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31577== by 0x8062D5B: main (nginx.c:385)
==31577== If you believe this happened as a result of a stack
==31577== overflow in your program's main thread (unlikely but
==31577== possible), you can try to increase the size of the
==31577== main thread stack using the --main-stacksize= flag.
==31577== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 17: use number to replace - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
039-sub-o.t TEST 17: use number to replace ==31598== Invalid read of size 4
==31598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31598== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31598== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31598== by 0x8062D5B: main (nginx.c:385)
==31598== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31598==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 17: use number to replace ==31598==
==31598== Process terminating with default action of signal 11 (SIGSEGV)
==31598== Access not within mapped region at address 0x0
==31598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31598== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31598== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31598== by 0x8062D5B: main (nginx.c:385)
==31598== If you believe this happened as a result of a stack
==31598== overflow in your program's main thread (unlikely but
==31598== possible), you can try to increase the size of the
==31598== main thread stack using the --main-stacksize= flag.
==31598== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 17: use number to replace - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
039-sub-o.t TEST 22: disable regex cache completely ==31610== Invalid read of size 4
==31610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31610== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31610== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31610== by 0x8062D5B: main (nginx.c:385)
==31610== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31610==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 22: disable regex cache completely ==31610==
==31610== Process terminating with default action of signal 11 (SIGSEGV)
==31610== Access not within mapped region at address 0x0
==31610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31610== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31610== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31610== by 0x8062D5B: main (nginx.c:385)
==31610== If you believe this happened as a result of a stack
==31610== overflow in your program's main thread (unlikely but
==31610== possible), you can try to increase the size of the
==31610== main thread stack using the --main-stacksize= flag.
==31610== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 22: disable regex cache completely - status code ok got: ''
expected: '200'
039-sub-o.t TEST 22: disable regex cache completely - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 22: disable regex cache completely ==31631== Invalid read of size 4
==31631== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31631== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31631== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31631== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31631== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31631== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31631== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31631== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31631== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31631== by 0x8062D5B: main (nginx.c:385)
==31631== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31631==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 22: disable regex cache completely ==31631==
==31631== Process terminating with default action of signal 11 (SIGSEGV)
==31631== Access not within mapped region at address 0x0
==31631== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31631== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31631== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31631== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31631== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31631== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31631== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31631== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31631== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31631== by 0x8062D5B: main (nginx.c:385)
==31631== If you believe this happened as a result of a stack
==31631== overflow in your program's main thread (unlikely but
==31631== possible), you can try to increase the size of the
==31631== main thread stack using the --main-stacksize= flag.
==31631== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 22: disable regex cache completely - status code ok got: ''
expected: '200'
039-sub-o.t TEST 22: disable regex cache completely - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 23: empty replace ==31643== Invalid read of size 4
==31643== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31643== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31643== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31643== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31643== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31643== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31643== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31643== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31643== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31643== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31643== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31643== by 0x8062D5B: main (nginx.c:385)
==31643== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31643==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 23: empty replace ==31643==
==31643== Process terminating with default action of signal 11 (SIGSEGV)
==31643== Access not within mapped region at address 0x0
==31643== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31643== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31643== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31643== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31643== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31643== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31643== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31643== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31643== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31643== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31643== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31643== by 0x8062D5B: main (nginx.c:385)
==31643== If you believe this happened as a result of a stack
==31643== overflow in your program's main thread (unlikely but
==31643== possible), you can try to increase the size of the
==31643== main thread stack using the --main-stacksize= flag.
==31643== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 23: empty replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 23: empty replace - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello,
-1
-hi,
-1
'
039-sub-o.t TEST 23: empty replace ==31664== Invalid read of size 4
==31664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31664== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31664== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31664== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31664== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31664== by 0x8062D5B: main (nginx.c:385)
==31664== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31664==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 23: empty replace ==31664==
==31664== Process terminating with default action of signal 11 (SIGSEGV)
==31664== Access not within mapped region at address 0x0
==31664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31664== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31664== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31664== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31664== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31664== by 0x8062D5B: main (nginx.c:385)
==31664== If you believe this happened as a result of a stack
==31664== overflow in your program's main thread (unlikely but
==31664== possible), you can try to increase the size of the
==31664== main thread stack using the --main-stacksize= flag.
==31664== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 23: empty replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 23: empty replace - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello,
-1
-hi,
-1
'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) ==31676== Invalid read of size 4
==31676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31676== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31676== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31676== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31676== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31676== by 0x8062D5B: main (nginx.c:385)
==31676== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31676==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) ==31676==
==31676== Process terminating with default action of signal 11 (SIGSEGV)
==31676== Access not within mapped region at address 0x0
==31676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31676== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31676== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31676== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31676== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31676== by 0x8062D5B: main (nginx.c:385)
==31676== If you believe this happened as a result of a stack
==31676== overflow in your program's main thread (unlikely but
==31676== possible), you can try to increase the size of the
==31676== main thread stack using the --main-stacksize= flag.
==31676== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) ==31697== Invalid read of size 4
==31697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31697== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31697== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31697== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31697== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31697== by 0x8062D5B: main (nginx.c:385)
==31697== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31697==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) ==31697==
==31697== Process terminating with default action of signal 11 (SIGSEGV)
==31697== Access not within mapped region at address 0x0
==31697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31697== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31697== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31697== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31697== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31697== by 0x8062D5B: main (nginx.c:385)
==31697== If you believe this happened as a result of a stack
==31697== overflow in your program's main thread (unlikely but
==31697== possible), you can try to increase the size of the
==31697== main thread stack using the --main-stacksize= flag.
==31697== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 13: anchored match ==31709== Invalid read of size 4
==31709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31709== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31709== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31709== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31709== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31709== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31709== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31709== by 0x8062D5B: main (nginx.c:385)
==31709== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31709==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 13: anchored match ==31709==
==31709== Process terminating with default action of signal 11 (SIGSEGV)
==31709== Access not within mapped region at address 0x0
==31709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31709== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31709== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31709== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31709== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31709== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31709== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31709== by 0x8062D5B: main (nginx.c:385)
==31709== If you believe this happened as a result of a stack
==31709== overflow in your program's main thread (unlikely but
==31709== possible), you can try to increase the size of the
==31709== main thread stack using the --main-stacksize= flag.
==31709== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 13: anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 13: anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
039-sub-o.t TEST 13: anchored match ==31730== Invalid read of size 4
==31730== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31730== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31730== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31730== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31730== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31730== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31730== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31730== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31730== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31730== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31730== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31730== by 0x8062D5B: main (nginx.c:385)
==31730== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31730==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 13: anchored match ==31730==
==31730== Process terminating with default action of signal 11 (SIGSEGV)
==31730== Access not within mapped region at address 0x0
==31730== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31730== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31730== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31730== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31730== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31730== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31730== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31730== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31730== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31730== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31730== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31730== by 0x8062D5B: main (nginx.c:385)
==31730== If you believe this happened as a result of a stack
==31730== overflow in your program's main thread (unlikely but
==31730== possible), you can try to increase the size of the
==31730== main thread stack using the --main-stacksize= flag.
==31730== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 13: anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 13: anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
039-sub-o.t TEST 15: function replace (failed) ==31742== Invalid read of size 4
==31742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31742== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31742== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31742== by 0x8062D5B: main (nginx.c:385)
==31742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 15: function replace (failed) ==31742==
==31742== Process terminating with default action of signal 11 (SIGSEGV)
==31742== Access not within mapped region at address 0x0
==31742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31742== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31742== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31742== by 0x8062D5B: main (nginx.c:385)
==31742== If you believe this happened as a result of a stack
==31742== overflow in your program's main thread (unlikely but
==31742== possible), you can try to increase the size of the
==31742== main thread stack using the --main-stacksize= flag.
==31742== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
039-sub-o.t TEST 15: function replace (failed) ==31763== Invalid read of size 4
==31763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31763== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31763== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31763== by 0x8062D5B: main (nginx.c:385)
==31763== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31763==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 15: function replace (failed) ==31763==
==31763== Process terminating with default action of signal 11 (SIGSEGV)
==31763== Access not within mapped region at address 0x0
==31763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31763== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31763== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31763== by 0x8062D5B: main (nginx.c:385)
==31763== If you believe this happened as a result of a stack
==31763== overflow in your program's main thread (unlikely but
==31763== possible), you can try to increase the size of the
==31763== main thread stack using the --main-stacksize= flag.
==31763== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
039-sub-o.t TEST 14: function replace ==31775== Invalid read of size 4
==31775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31775== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31775== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31775== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31775== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31775== by 0x8062D5B: main (nginx.c:385)
==31775== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31775==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 14: function replace ==31775==
==31775== Process terminating with default action of signal 11 (SIGSEGV)
==31775== Access not within mapped region at address 0x0
==31775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31775== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31775== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31775== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31775== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31775== by 0x8062D5B: main (nginx.c:385)
==31775== If you believe this happened as a result of a stack
==31775== overflow in your program's main thread (unlikely but
==31775== possible), you can try to increase the size of the
==31775== main thread stack using the --main-stacksize= flag.
==31775== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 14: function replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 14: function replace - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
039-sub-o.t TEST 14: function replace ==31796== Invalid read of size 4
==31796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31796== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31796== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31796== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31796== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31796== by 0x8062D5B: main (nginx.c:385)
==31796== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31796==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 14: function replace ==31796==
==31796== Process terminating with default action of signal 11 (SIGSEGV)
==31796== Access not within mapped region at address 0x0
==31796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31796== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31796== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31796== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31796== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31796== by 0x8062D5B: main (nginx.c:385)
==31796== If you believe this happened as a result of a stack
==31796== overflow in your program's main thread (unlikely but
==31796== possible), you can try to increase the size of the
==31796== main thread stack using the --main-stacksize= flag.
==31796== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 14: function replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 14: function replace - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ ==31808== Invalid read of size 4
==31808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31808== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31808== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31808== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31808== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31808== by 0x8062D5B: main (nginx.c:385)
==31808== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31808==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 11: matched but w/o variables and with literal $ ==31808==
==31808== Process terminating with default action of signal 11 (SIGSEGV)
==31808== Access not within mapped region at address 0x0
==31808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31808== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31808== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31808== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31808== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31808== by 0x8062D5B: main (nginx.c:385)
==31808== If you believe this happened as a result of a stack
==31808== overflow in your program's main thread (unlikely but
==31808== possible), you can try to increase the size of the
==31808== main thread stack using the --main-stacksize= flag.
==31808== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ ==31829== Invalid read of size 4
==31829== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31829== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31829== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31829== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31829== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31829== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31829== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31829== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31829== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31829== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31829== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31829== by 0x8062D5B: main (nginx.c:385)
==31829== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31829==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 11: matched but w/o variables and with literal $ ==31829==
==31829== Process terminating with default action of signal 11 (SIGSEGV)
==31829== Access not within mapped region at address 0x0
==31829== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31829== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31829== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31829== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31829== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31829== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31829== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31829== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31829== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31829== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31829== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31829== by 0x8062D5B: main (nginx.c:385)
==31829== If you believe this happened as a result of a stack
==31829== overflow in your program's main thread (unlikely but
==31829== possible), you can try to increase the size of the
==31829== main thread stack using the --main-stacksize= flag.
==31829== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub ==31841== Invalid read of size 4
==31841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31841== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31841== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31841== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31841== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31841== by 0x8062D5B: main (nginx.c:385)
==31841== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31841==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub ==31841==
==31841== Process terminating with default action of signal 11 (SIGSEGV)
==31841== Access not within mapped region at address 0x0
==31841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31841== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31841== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31841== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31841== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31841== by 0x8062D5B: main (nginx.c:385)
==31841== If you believe this happened as a result of a stack
==31841== overflow in your program's main thread (unlikely but
==31841== possible), you can try to increase the size of the
==31841== main thread stack using the --main-stacksize= flag.
==31841== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub ==31862== Invalid read of size 4
==31862== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31862== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31862== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31862== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31862== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31862== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31862== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31862== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31862== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31862== by 0x8062D5B: main (nginx.c:385)
==31862== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31862==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub ==31862==
==31862== Process terminating with default action of signal 11 (SIGSEGV)
==31862== Access not within mapped region at address 0x0
==31862== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31862== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31862== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31862== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31862== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31862== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31862== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31862== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31862== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31862== by 0x8062D5B: main (nginx.c:385)
==31862== If you believe this happened as a result of a stack
==31862== overflow in your program's main thread (unlikely but
==31862== possible), you can try to increase the size of the
==31862== main thread stack using the --main-stacksize= flag.
==31862== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 19: with regex cache (with text replace) ==31874== Invalid read of size 4
==31874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31874== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31874== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31874== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31874== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31874== by 0x8062D5B: main (nginx.c:385)
==31874== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31874==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 19: with regex cache (with text replace) ==31874==
==31874== Process terminating with default action of signal 11 (SIGSEGV)
==31874== Access not within mapped region at address 0x0
==31874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31874== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31874== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31874== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31874== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31874== by 0x8062D5B: main (nginx.c:385)
==31874== If you believe this happened as a result of a stack
==31874== overflow in your program's main thread (unlikely but
==31874== possible), you can try to increase the size of the
==31874== main thread stack using the --main-stacksize= flag.
==31874== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 19: with regex cache (with text replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 19: with regex cache (with text replace) - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-baz, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 19: with regex cache (with text replace) ==31895== Invalid read of size 4
==31895== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31895== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31895== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31895== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31895== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31895== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31895== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31895== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31895== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31895== by 0x8062D5B: main (nginx.c:385)
==31895== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31895==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 19: with regex cache (with text replace) ==31895==
==31895== Process terminating with default action of signal 11 (SIGSEGV)
==31895== Access not within mapped region at address 0x0
==31895== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31895== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31895== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31895== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31895== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31895== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31895== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31895== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31895== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31895== by 0x8062D5B: main (nginx.c:385)
==31895== If you believe this happened as a result of a stack
==31895== overflow in your program's main thread (unlikely but
==31895== possible), you can try to increase the size of the
==31895== main thread stack using the --main-stacksize= flag.
==31895== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 19: with regex cache (with text replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 19: with regex cache (with text replace) - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-baz, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 20: with regex cache (with func replace) ==31907== Invalid read of size 4
==31907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31907== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31907== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31907== by 0x8062D5B: main (nginx.c:385)
==31907== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31907==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 20: with regex cache (with func replace) ==31907==
==31907== Process terminating with default action of signal 11 (SIGSEGV)
==31907== Access not within mapped region at address 0x0
==31907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31907== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31907== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31907== by 0x8062D5B: main (nginx.c:385)
==31907== If you believe this happened as a result of a stack
==31907== overflow in your program's main thread (unlikely but
==31907== possible), you can try to increase the size of the
==31907== main thread stack using the --main-stacksize= flag.
==31907== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 20: with regex cache (with func replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 20: with regex cache (with func replace) - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-bah, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 20: with regex cache (with func replace) ==31928== Invalid read of size 4
==31928== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31928== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31928== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31928== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31928== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31928== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31928== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31928== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31928== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31928== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31928== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31928== by 0x8062D5B: main (nginx.c:385)
==31928== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31928==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 20: with regex cache (with func replace) ==31928==
==31928== Process terminating with default action of signal 11 (SIGSEGV)
==31928== Access not within mapped region at address 0x0
==31928== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31928== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31928== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31928== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31928== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31928== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31928== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31928== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31928== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31928== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31928== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31928== by 0x8062D5B: main (nginx.c:385)
==31928== If you believe this happened as a result of a stack
==31928== overflow in your program's main thread (unlikely but
==31928== possible), you can try to increase the size of the
==31928== main thread stack using the --main-stacksize= flag.
==31928== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 20: with regex cache (with func replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 20: with regex cache (with func replace) - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-bah, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 1: matched but w/o variables ==31940== Invalid read of size 4
==31940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31940== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31940== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31940== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31940== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31940== by 0x8062D5B: main (nginx.c:385)
==31940== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31940==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 1: matched but w/o variables ==31940==
==31940== Process terminating with default action of signal 11 (SIGSEGV)
==31940== Access not within mapped region at address 0x0
==31940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31940== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31940== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31940== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31940== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31940== by 0x8062D5B: main (nginx.c:385)
==31940== If you believe this happened as a result of a stack
==31940== overflow in your program's main thread (unlikely but
==31940== possible), you can try to increase the size of the
==31940== main thread stack using the --main-stacksize= flag.
==31940== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
039-sub-o.t TEST 1: matched but w/o variables ==31961== Invalid read of size 4
==31961== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31961== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31961== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31961== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31961== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31961== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31961== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31961== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31961== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31961== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31961== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31961== by 0x8062D5B: main (nginx.c:385)
==31961== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31961==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 1: matched but w/o variables ==31961==
==31961== Process terminating with default action of signal 11 (SIGSEGV)
==31961== Access not within mapped region at address 0x0
==31961== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31961== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31961== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31961== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31961== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31961== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31961== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31961== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31961== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31961== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31961== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31961== by 0x8062D5B: main (nginx.c:385)
==31961== If you believe this happened as a result of a stack
==31961== overflow in your program's main thread (unlikely but
==31961== possible), you can try to increase the size of the
==31961== main thread stack using the --main-stacksize= flag.
==31961== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
039-sub-o.t TEST 5: matched and with named variables (bracketed) ==31973== Invalid read of size 4
==31973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31973== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31973== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31973== by 0x8062D5B: main (nginx.c:385)
==31973== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 5: matched and with named variables (bracketed) ==31973==
==31973== Process terminating with default action of signal 11 (SIGSEGV)
==31973== Access not within mapped region at address 0x0
==31973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31973== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==31973== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==31973== by 0x8062D5B: main (nginx.c:385)
==31973== If you believe this happened as a result of a stack
==31973== overflow in your program's main thread (unlikely but
==31973== possible), you can try to increase the size of the
==31973== main thread stack using the --main-stacksize= flag.
==31973== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 5: matched and with named variables (bracketed) ==31994== Invalid read of size 4
==31994== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31994== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31994== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31994== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31994== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31994== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31994== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31994== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31994== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31994== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31994== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31994== by 0x8062D5B: main (nginx.c:385)
==31994== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31994==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 5: matched and with named variables (bracketed) ==31994==
==31994== Process terminating with default action of signal 11 (SIGSEGV)
==31994== Access not within mapped region at address 0x0
==31994== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==31994== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==31994== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==31994== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==31994== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==31994== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==31994== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==31994== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==31994== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==31994== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==31994== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==31994== by 0x8062D5B: main (nginx.c:385)
==31994== If you believe this happened as a result of a stack
==31994== overflow in your program's main thread (unlikely but
==31994== possible), you can try to increase the size of the
==31994== main thread stack using the --main-stacksize= flag.
==31994== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 2: not matched ==32006== Invalid read of size 4
==32006== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32006== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32006== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32006== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32006== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32006== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32006== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32006== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32006== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32006== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32006== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32006== by 0x8062D5B: main (nginx.c:385)
==32006== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32006==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 2: not matched ==32006==
==32006== Process terminating with default action of signal 11 (SIGSEGV)
==32006== Access not within mapped region at address 0x0
==32006== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32006== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32006== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32006== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32006== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32006== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32006== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32006== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32006== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32006== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32006== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32006== by 0x8062D5B: main (nginx.c:385)
==32006== If you believe this happened as a result of a stack
==32006== overflow in your program's main thread (unlikely but
==32006== possible), you can try to increase the size of the
==32006== main thread stack using the --main-stacksize= flag.
==32006== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 2: not matched - status code ok got: ''
expected: '200'
039-sub-o.t TEST 2: not matched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
039-sub-o.t TEST 2: not matched ==32027== Invalid read of size 4
==32027== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32027== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32027== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32027== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32027== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32027== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32027== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32027== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32027== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32027== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32027== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32027== by 0x8062D5B: main (nginx.c:385)
==32027== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32027==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
039-sub-o.t TEST 2: not matched ==32027==
==32027== Process terminating with default action of signal 11 (SIGSEGV)
==32027== Access not within mapped region at address 0x0
==32027== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32027== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32027== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32027== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32027== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32027== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32027== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32027== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32027== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32027== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32027== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32027== by 0x8062D5B: main (nginx.c:385)
==32027== If you believe this happened as a result of a stack
==32027== overflow in your program's main thread (unlikely but
==32027== possible), you can try to increase the size of the
==32027== main thread stack using the --main-stacksize= flag.
==32027== The main thread stack size used in this run was 8388608.

039-sub-o.t TEST 2: not matched - status code ok got: ''
expected: '200'
039-sub-o.t TEST 2: not matched - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
040-gsub-o.t TEST 2: trimmed - Can't connect to 127.0.0.1:1984: Connection refused ==32036== Invalid read of size 4
==32036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32036== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32036== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==32036== by 0x8062D5B: main (nginx.c:385)
==32036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 2: trimmed - Can't connect to 127.0.0.1:1984: Connection refused ==32036==
==32036== Process terminating with default action of signal 11 (SIGSEGV)
==32036== Access not within mapped region at address 0x0
==32036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32036== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32036== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==32036== by 0x8062D5B: main (nginx.c:385)
==32036== If you believe this happened as a result of a stack
==32036== overflow in your program's main thread (unlikely but
==32036== possible), you can try to increase the size of the
==32036== main thread stack using the --main-stacksize= flag.
==32036== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 2: trimmed - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 2: trimmed - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-howdy, howdy
-2
'
040-gsub-o.t TEST 2: trimmed - Can't connect to 127.0.0.1:1984: Connection refused ==32037== Invalid read of size 4
==32037== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32037== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32037== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32037== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32037== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32037== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32037== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32037== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32037== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32037== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32037== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32037== by 0x8062D5B: main (nginx.c:385)
==32037== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32037==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 2: trimmed - Can't connect to 127.0.0.1:1984: Connection refused ==32037==
==32037== Process terminating with default action of signal 11 (SIGSEGV)
==32037== Access not within mapped region at address 0x0
==32037== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32037== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32037== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32037== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32037== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32037== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32037== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32037== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32037== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32037== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32037== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32037== by 0x8062D5B: main (nginx.c:385)
==32037== If you believe this happened as a result of a stack
==32037== overflow in your program's main thread (unlikely but
==32037== possible), you can try to increase the size of the
==32037== main thread stack using the --main-stacksize= flag.
==32037== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 2: trimmed - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 2: trimmed - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-howdy, howdy
-2
'
040-gsub-o.t TEST 3: not matched ==32049== Invalid read of size 4
==32049== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32049== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32049== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32049== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32049== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32049== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32049== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32049== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32049== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32049== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32049== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32049== by 0x8062D5B: main (nginx.c:385)
==32049== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32049==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 3: not matched ==32049==
==32049== Process terminating with default action of signal 11 (SIGSEGV)
==32049== Access not within mapped region at address 0x0
==32049== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32049== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32049== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32049== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32049== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32049== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32049== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32049== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32049== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32049== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32049== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32049== by 0x8062D5B: main (nginx.c:385)
==32049== If you believe this happened as a result of a stack
==32049== overflow in your program's main thread (unlikely but
==32049== possible), you can try to increase the size of the
==32049== main thread stack using the --main-stacksize= flag.
==32049== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 3: not matched - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 3: not matched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
040-gsub-o.t TEST 3: not matched ==32070== Invalid read of size 4
==32070== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32070== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32070== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32070== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32070== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32070== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32070== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32070== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32070== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32070== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32070== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32070== by 0x8062D5B: main (nginx.c:385)
==32070== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32070==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 3: not matched ==32070==
==32070== Process terminating with default action of signal 11 (SIGSEGV)
==32070== Access not within mapped region at address 0x0
==32070== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32070== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32070== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32070== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32070== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32070== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32070== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32070== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32070== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32070== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32070== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32070== by 0x8062D5B: main (nginx.c:385)
==32070== If you believe this happened as a result of a stack
==32070== overflow in your program's main thread (unlikely but
==32070== possible), you can try to increase the size of the
==32070== main thread stack using the --main-stacksize= flag.
==32070== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 3: not matched - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 3: not matched - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
040-gsub-o.t TEST 6: replace by script (trimmed) ==32082== Invalid read of size 4
==32082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32082== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32082== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32082== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32082== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32082== by 0x8062D5B: main (nginx.c:385)
==32082== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32082==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 6: replace by script (trimmed) ==32082==
==32082== Process terminating with default action of signal 11 (SIGSEGV)
==32082== Access not within mapped region at address 0x0
==32082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32082== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32082== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32082== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32082== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32082== by 0x8062D5B: main (nginx.c:385)
==32082== If you believe this happened as a result of a stack
==32082== overflow in your program's main thread (unlikely but
==32082== possible), you can try to increase the size of the
==32082== main thread stack using the --main-stacksize= flag.
==32082== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 6: replace by script (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 6: replace by script (trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 6: replace by script (trimmed) ==32103== Invalid read of size 4
==32103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32103== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32103== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32103== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32103== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32103== by 0x8062D5B: main (nginx.c:385)
==32103== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32103==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 6: replace by script (trimmed) ==32103==
==32103== Process terminating with default action of signal 11 (SIGSEGV)
==32103== Access not within mapped region at address 0x0
==32103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32103== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32103== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32103== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32103== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32103== by 0x8062D5B: main (nginx.c:385)
==32103== If you believe this happened as a result of a stack
==32103== overflow in your program's main thread (unlikely but
==32103== possible), you can try to increase the size of the
==32103== main thread stack using the --main-stacksize= flag.
==32103== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 6: replace by script (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 6: replace by script (trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 5: replace by function (not trimmed) ==32115== Invalid read of size 4
==32115== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32115== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32115== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32115== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32115== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32115== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32115== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32115== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32115== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32115== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32115== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32115== by 0x8062D5B: main (nginx.c:385)
==32115== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32115==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 5: replace by function (not trimmed) ==32115==
==32115== Process terminating with default action of signal 11 (SIGSEGV)
==32115== Access not within mapped region at address 0x0
==32115== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32115== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32115== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32115== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32115== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32115== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32115== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32115== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32115== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32115== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32115== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32115== by 0x8062D5B: main (nginx.c:385)
==32115== If you believe this happened as a result of a stack
==32115== overflow in your program's main thread (unlikely but
==32115== possible), you can try to increase the size of the
==32115== main thread stack using the --main-stacksize= flag.
==32115== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 5: replace by function (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 5: replace by function (not trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 5: replace by function (not trimmed) ==32136== Invalid read of size 4
==32136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32136== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32136== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32136== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32136== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32136== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32136== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32136== by 0x8062D5B: main (nginx.c:385)
==32136== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32136==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 5: replace by function (not trimmed) ==32136==
==32136== Process terminating with default action of signal 11 (SIGSEGV)
==32136== Access not within mapped region at address 0x0
==32136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32136== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32136== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32136== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32136== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32136== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32136== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32136== by 0x8062D5B: main (nginx.c:385)
==32136== If you believe this happened as a result of a stack
==32136== overflow in your program's main thread (unlikely but
==32136== possible), you can try to increase the size of the
==32136== main thread stack using the --main-stacksize= flag.
==32136== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 5: replace by function (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 5: replace by function (not trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 1: sanity ==32148== Invalid read of size 4
==32148== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32148== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32148== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32148== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32148== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32148== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32148== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32148== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32148== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32148== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32148== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32148== by 0x8062D5B: main (nginx.c:385)
==32148== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32148==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 1: sanity ==32148==
==32148== Process terminating with default action of signal 11 (SIGSEGV)
==32148== Access not within mapped region at address 0x0
==32148== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32148== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32148== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32148== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32148== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32148== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32148== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32148== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32148== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32148== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32148== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32148== by 0x8062D5B: main (nginx.c:385)
==32148== If you believe this happened as a result of a stack
==32148== overflow in your program's main thread (unlikely but
==32148== possible), you can try to increase the size of the
==32148== main thread stack using the --main-stacksize= flag.
==32148== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 1: sanity - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[howdy, howdy]
-2
'
040-gsub-o.t TEST 1: sanity ==32169== Invalid read of size 4
==32169== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32169== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32169== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32169== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32169== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32169== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32169== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32169== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32169== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32169== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32169== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32169== by 0x8062D5B: main (nginx.c:385)
==32169== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32169==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 1: sanity ==32169==
==32169== Process terminating with default action of signal 11 (SIGSEGV)
==32169== Access not within mapped region at address 0x0
==32169== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32169== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32169== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32169== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32169== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32169== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32169== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32169== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32169== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32169== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32169== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32169== by 0x8062D5B: main (nginx.c:385)
==32169== If you believe this happened as a result of a stack
==32169== overflow in your program's main thread (unlikely but
==32169== possible), you can try to increase the size of the
==32169== main thread stack using the --main-stacksize= flag.
==32169== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 1: sanity - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[howdy, howdy]
-2
'
040-gsub-o.t TEST 8: look-behind assertion ==32181== Invalid read of size 4
==32181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32181== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32181== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32181== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32181== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32181== by 0x8062D5B: main (nginx.c:385)
==32181== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32181==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 8: look-behind assertion ==32181==
==32181== Process terminating with default action of signal 11 (SIGSEGV)
==32181== Access not within mapped region at address 0x0
==32181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32181== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32181== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32181== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32181== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32181== by 0x8062D5B: main (nginx.c:385)
==32181== If you believe this happened as a result of a stack
==32181== overflow in your program's main thread (unlikely but
==32181== possible), you can try to increase the size of the
==32181== main thread stack using the --main-stacksize= flag.
==32181== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 8: look-behind assertion - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 8: look-behind assertion - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-{foohbarhbaz}
-2
'
040-gsub-o.t TEST 8: look-behind assertion ==32202== Invalid read of size 4
==32202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32202== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32202== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32202== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32202== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32202== by 0x8062D5B: main (nginx.c:385)
==32202== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32202==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 8: look-behind assertion ==32202==
==32202== Process terminating with default action of signal 11 (SIGSEGV)
==32202== Access not within mapped region at address 0x0
==32202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32202== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32202== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32202== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32202== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32202== by 0x8062D5B: main (nginx.c:385)
==32202== If you believe this happened as a result of a stack
==32202== overflow in your program's main thread (unlikely but
==32202== possible), you can try to increase the size of the
==32202== main thread stack using the --main-stacksize= flag.
==32202== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 8: look-behind assertion - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 8: look-behind assertion - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-{foohbarhbaz}
-2
'
040-gsub-o.t TEST 4: replace by function (trimmed) ==32214== Invalid read of size 4
==32214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32214== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32214== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32214== by 0x8062D5B: main (nginx.c:385)
==32214== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32214==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 4: replace by function (trimmed) ==32214==
==32214== Process terminating with default action of signal 11 (SIGSEGV)
==32214== Access not within mapped region at address 0x0
==32214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32214== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32214== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32214== by 0x8062D5B: main (nginx.c:385)
==32214== If you believe this happened as a result of a stack
==32214== overflow in your program's main thread (unlikely but
==32214== possible), you can try to increase the size of the
==32214== main thread stack using the --main-stacksize= flag.
==32214== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 4: replace by function (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 4: replace by function (trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 4: replace by function (trimmed) ==32235== Invalid read of size 4
==32235== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32235== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32235== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32235== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32235== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32235== by 0x8062D5B: main (nginx.c:385)
==32235== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32235==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 4: replace by function (trimmed) ==32235==
==32235== Process terminating with default action of signal 11 (SIGSEGV)
==32235== Access not within mapped region at address 0x0
==32235== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32235== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32235== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32235== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32235== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32235== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32235== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32235== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32235== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32235== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32235== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32235== by 0x8062D5B: main (nginx.c:385)
==32235== If you believe this happened as a result of a stack
==32235== overflow in your program's main thread (unlikely but
==32235== possible), you can try to increase the size of the
==32235== main thread stack using the --main-stacksize= flag.
==32235== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 4: replace by function (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 4: replace by function (trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 7: replace by script (not trimmed) ==32247== Invalid read of size 4
==32247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32247== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32247== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32247== by 0x8062D5B: main (nginx.c:385)
==32247== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32247==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 7: replace by script (not trimmed) ==32247==
==32247== Process terminating with default action of signal 11 (SIGSEGV)
==32247== Access not within mapped region at address 0x0
==32247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32247== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32247== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32247== by 0x8062D5B: main (nginx.c:385)
==32247== If you believe this happened as a result of a stack
==32247== overflow in your program's main thread (unlikely but
==32247== possible), you can try to increase the size of the
==32247== main thread stack using the --main-stacksize= flag.
==32247== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 7: replace by script (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 7: replace by script (not trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 7: replace by script (not trimmed) ==32268== Invalid read of size 4
==32268== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32268== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32268== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32268== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32268== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32268== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32268== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32268== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32268== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32268== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32268== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32268== by 0x8062D5B: main (nginx.c:385)
==32268== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32268==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 7: replace by script (not trimmed) ==32268==
==32268== Process terminating with default action of signal 11 (SIGSEGV)
==32268== Access not within mapped region at address 0x0
==32268== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32268== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32268== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32268== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32268== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32268== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32268== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32268== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32268== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32268== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32268== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32268== by 0x8062D5B: main (nginx.c:385)
==32268== If you believe this happened as a result of a stack
==32268== overflow in your program's main thread (unlikely but
==32268== possible), you can try to increase the size of the
==32268== main thread stack using the --main-stacksize= flag.
==32268== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 7: replace by script (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 7: replace by script (not trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 9: named pattern repl w/ callback ==32280== Invalid read of size 4
==32280== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32280== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32280== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32280== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32280== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32280== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32280== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32280== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32280== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32280== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32280== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32280== by 0x8062D5B: main (nginx.c:385)
==32280== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32280==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 9: named pattern repl w/ callback ==32280==
==32280== Process terminating with default action of signal 11 (SIGSEGV)
==32280== Access not within mapped region at address 0x0
==32280== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32280== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32280== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32280== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32280== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32280== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32280== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32280== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32280== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32280== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32280== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32280== by 0x8062D5B: main (nginx.c:385)
==32280== If you believe this happened as a result of a stack
==32280== overflow in your program's main thread (unlikely but
==32280== possible), you can try to increase the size of the
==32280== main thread stack using the --main-stacksize= flag.
==32280== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 9: named pattern repl w/ callback - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 9: named pattern repl w/ callback - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 9: named pattern repl w/ callback ==32301== Invalid read of size 4
==32301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32301== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32301== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32301== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32301== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32301== by 0x8062D5B: main (nginx.c:385)
==32301== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32301==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
040-gsub-o.t TEST 9: named pattern repl w/ callback ==32301==
==32301== Process terminating with default action of signal 11 (SIGSEGV)
==32301== Access not within mapped region at address 0x0
==32301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32301== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32301== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32301== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==32301== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==32301== by 0x8062D5B: main (nginx.c:385)
==32301== If you believe this happened as a result of a stack
==32301== overflow in your program's main thread (unlikely but
==32301== possible), you can try to increase the size of the
==32301== main thread stack using the --main-stacksize= flag.
==32301== The main thread stack size used in this run was 8388608.

040-gsub-o.t TEST 9: named pattern repl w/ callback - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 9: named pattern repl w/ callback - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
043-shdict.t TEST 86: check the type of the shdict object - Can't connect to 127.0.0.1:1984: Connection refused ==32378== Invalid read of size 4
==32378== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32378== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32378== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32378== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32378== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32378== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32378== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32378== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32378== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==32378== by 0x8062D5B: main (nginx.c:385)
==32378== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32378==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 86: check the type of the shdict object - Can't connect to 127.0.0.1:1984: Connection refused ==32378==
==32378== Process terminating with default action of signal 11 (SIGSEGV)
==32378== Access not within mapped region at address 0x0
==32378== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32378== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32378== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32378== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32378== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32378== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32378== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32378== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32378== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==32378== by 0x8062D5B: main (nginx.c:385)
==32378== If you believe this happened as a result of a stack
==32378== overflow in your program's main thread (unlikely but
==32378== possible), you can try to increase the size of the
==32378== main thread stack using the --main-stacksize= flag.
==32378== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 86: check the type of the shdict object - status code ok got: ''
expected: '200'
043-shdict.t TEST 41: flush_expires ==32390== Invalid read of size 4
==32390== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32390== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32390== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32390== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32390== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32390== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32390== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32390== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32390== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32390== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32390== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32390== by 0x8062D5B: main (nginx.c:385)
==32390== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32390==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 41: flush_expires ==32390==
==32390== Process terminating with default action of signal 11 (SIGSEGV)
==32390== Access not within mapped region at address 0x0
==32390== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32390== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32390== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32390== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32390== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32390== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32390== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32390== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32390== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32390== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32390== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32390== by 0x8062D5B: main (nginx.c:385)
==32390== If you believe this happened as a result of a stack
==32390== overflow in your program's main thread (unlikely but
==32390== possible), you can try to increase the size of the
==32390== main thread stack using the --main-stacksize= flag.
==32390== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 41: flush_expires - status code ok got: ''
expected: '200'
043-shdict.t TEST 47: list all keys in a shdict with expires ==32422== Invalid read of size 4
==32422== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32422== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32422== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32422== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32422== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32422== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32422== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32422== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32422== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32422== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32422== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32422== by 0x8062D5B: main (nginx.c:385)
==32422== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32422==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 47: list all keys in a shdict with expires ==32422==
==32422== Process terminating with default action of signal 11 (SIGSEGV)
==32422== Access not within mapped region at address 0x0
==32422== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32422== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32422== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32422== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32422== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32422== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32422== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32422== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32422== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32422== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32422== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32422== by 0x8062D5B: main (nginx.c:385)
==32422== If you believe this happened as a result of a stack
==32422== overflow in your program's main thread (unlikely but
==32422== possible), you can try to increase the size of the
==32422== main thread stack using the --main-stacksize= flag.
==32422== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 47: list all keys in a shdict with expires - status code ok got: ''
expected: '200'
043-shdict.t TEST 16: bad value type ==32454== Invalid read of size 4
==32454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32454== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32454== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32454== by 0x8062D5B: main (nginx.c:385)
==32454== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32454==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 16: bad value type ==32454==
==32454== Process terminating with default action of signal 11 (SIGSEGV)
==32454== Access not within mapped region at address 0x0
==32454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32454== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32454== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32454== by 0x8062D5B: main (nginx.c:385)
==32454== If you believe this happened as a result of a stack
==32454== overflow in your program's main thread (unlikely but
==32454== possible), you can try to increase the size of the
==32454== main thread stack using the --main-stacksize= flag.
==32454== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 16: bad value type - status code ok got: ''
expected: '200'
043-shdict.t TEST 36: incr key (incr by negative numbers) ==32486== Invalid read of size 4
==32486== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32486== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32486== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32486== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32486== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32486== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32486== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32486== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32486== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32486== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32486== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32486== by 0x8062D5B: main (nginx.c:385)
==32486== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32486==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 36: incr key (incr by negative numbers) ==32486==
==32486== Process terminating with default action of signal 11 (SIGSEGV)
==32486== Access not within mapped region at address 0x0
==32486== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32486== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32486== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32486== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32486== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32486== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32486== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32486== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32486== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32486== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32486== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32486== by 0x8062D5B: main (nginx.c:385)
==32486== If you believe this happened as a result of a stack
==32486== overflow in your program's main thread (unlikely but
==32486== possible), you can try to increase the size of the
==32486== main thread stack using the --main-stacksize= flag.
==32486== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 36: incr key (incr by negative numbers) - status code ok got: ''
expected: '200'
043-shdict.t TEST 72: set & get_stale boolean values (false) ==32518== Invalid read of size 4
==32518== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32518== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32518== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32518== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32518== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32518== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32518== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32518== by 0x8062D5B: main (nginx.c:385)
==32518== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32518==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 72: set & get_stale boolean values (false) ==32518==
==32518== Process terminating with default action of signal 11 (SIGSEGV)
==32518== Access not within mapped region at address 0x0
==32518== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32518== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32518== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32518== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32518== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32518== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32518== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32518== by 0x8062D5B: main (nginx.c:385)
==32518== If you believe this happened as a result of a stack
==32518== overflow in your program's main thread (unlikely but
==32518== possible), you can try to increase the size of the
==32518== main thread stack using the --main-stacksize= flag.
==32518== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 72: set & get_stale boolean values (false) - status code ok got: ''
expected: '200'
043-shdict.t TEST 51: list all keys in a shdict with all keys expired ==32550== Invalid read of size 4
==32550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32550== by 0x8062D5B: main (nginx.c:385)
==32550== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32550==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 51: list all keys in a shdict with all keys expired ==32550==
==32550== Process terminating with default action of signal 11 (SIGSEGV)
==32550== Access not within mapped region at address 0x0
==32550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32550== by 0x8062D5B: main (nginx.c:385)
==32550== If you believe this happened as a result of a stack
==32550== overflow in your program's main thread (unlikely but
==32550== possible), you can try to increase the size of the
==32550== main thread stack using the --main-stacksize= flag.
==32550== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 51: list all keys in a shdict with all keys expired - status code ok got: ''
expected: '200'
043-shdict.t TEST 37: incr key (original value is not number) ==32582== Invalid read of size 4
==32582== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32582== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32582== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32582== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32582== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32582== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32582== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32582== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32582== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32582== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32582== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32582== by 0x8062D5B: main (nginx.c:385)
==32582== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32582==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 37: incr key (original value is not number) ==32582==
==32582== Process terminating with default action of signal 11 (SIGSEGV)
==32582== Access not within mapped region at address 0x0
==32582== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32582== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32582== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32582== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32582== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32582== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32582== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32582== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32582== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32582== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32582== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32582== by 0x8062D5B: main (nginx.c:385)
==32582== If you believe this happened as a result of a stack
==32582== overflow in your program's main thread (unlikely but
==32582== possible), you can try to increase the size of the
==32582== main thread stack using the --main-stacksize= flag.
==32582== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 37: incr key (original value is not number) - status code ok got: ''
expected: '200'
043-shdict.t TEST 4: number keys, string values ==32614== Invalid read of size 4
==32614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32614== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32614== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32614== by 0x8062D5B: main (nginx.c:385)
==32614== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32614==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 4: number keys, string values ==32614==
==32614== Process terminating with default action of signal 11 (SIGSEGV)
==32614== Access not within mapped region at address 0x0
==32614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32614== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32614== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32614== by 0x8062D5B: main (nginx.c:385)
==32614== If you believe this happened as a result of a stack
==32614== overflow in your program's main thread (unlikely but
==32614== possible), you can try to increase the size of the
==32614== main thread stack using the --main-stacksize= flag.
==32614== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 4: number keys, string values - status code ok got: ''
expected: '200'
043-shdict.t TEST 63: get a too-long key ==32646== Invalid read of size 4
==32646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32646== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32646== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32646== by 0x8062D5B: main (nginx.c:385)
==32646== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32646==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 63: get a too-long key ==32646==
==32646== Process terminating with default action of signal 11 (SIGSEGV)
==32646== Access not within mapped region at address 0x0
==32646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32646== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32646== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32646== by 0x8062D5B: main (nginx.c:385)
==32646== If you believe this happened as a result of a stack
==32646== overflow in your program's main thread (unlikely but
==32646== possible), you can try to increase the size of the
==32646== main thread stack using the --main-stacksize= flag.
==32646== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 63: get a too-long key - status code ok got: ''
expected: '200'
043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set ==32678== Invalid read of size 4
==32678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32678== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32678== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32678== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32678== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32678== by 0x8062D5B: main (nginx.c:385)
==32678== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32678==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set ==32678==
==32678== Process terminating with default action of signal 11 (SIGSEGV)
==32678== Access not within mapped region at address 0x0
==32678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32678== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32678== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32678== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32678== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32678== by 0x8062D5B: main (nginx.c:385)
==32678== If you believe this happened as a result of a stack
==32678== overflow in your program's main thread (unlikely but
==32678== possible), you can try to increase the size of the
==32678== main thread stack using the --main-stacksize= flag.
==32678== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set - status code ok got: ''
expected: '200'
043-shdict.t TEST 33: replace key (key expired) ==32710== Invalid read of size 4
==32710== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32710== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32710== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32710== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32710== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32710== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32710== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32710== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32710== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32710== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32710== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32710== by 0x8062D5B: main (nginx.c:385)
==32710== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32710==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 33: replace key (key expired) ==32710==
==32710== Process terminating with default action of signal 11 (SIGSEGV)
==32710== Access not within mapped region at address 0x0
==32710== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32710== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32710== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32710== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32710== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32710== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32710== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32710== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32710== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32710== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32710== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32710== by 0x8062D5B: main (nginx.c:385)
==32710== If you believe this happened as a result of a stack
==32710== overflow in your program's main thread (unlikely but
==32710== possible), you can try to increase the size of the
==32710== main thread stack using the --main-stacksize= flag.
==32710== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 33: replace key (key expired) - status code ok got: ''
expected: '200'
043-shdict.t TEST 64: set & get large values ==32742== Invalid read of size 4
==32742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32742== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32742== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32742== by 0x8062D5B: main (nginx.c:385)
==32742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 64: set & get large values ==32742==
==32742== Process terminating with default action of signal 11 (SIGSEGV)
==32742== Access not within mapped region at address 0x0
==32742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==32742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==32742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==32742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==32742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==32742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==32742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==32742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==32742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==32742== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==32742== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==32742== by 0x8062D5B: main (nginx.c:385)
==32742== If you believe this happened as a result of a stack
==32742== overflow in your program's main thread (unlikely but
==32742== possible), you can try to increase the size of the
==32742== main thread stack using the --main-stacksize= flag.
==32742== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 64: set & get large values - status code ok got: ''
expected: '200'
043-shdict.t TEST 20: set nil at first ==307== Invalid read of size 4
==307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==307== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==307== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==307== by 0x8062D5B: main (nginx.c:385)
==307== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==307==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 20: set nil at first ==307==
==307== Process terminating with default action of signal 11 (SIGSEGV)
==307== Access not within mapped region at address 0x0
==307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==307== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==307== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==307== by 0x8062D5B: main (nginx.c:385)
==307== If you believe this happened as a result of a stack
==307== overflow in your program's main thread (unlikely but
==307== possible), you can try to increase the size of the
==307== main thread stack using the --main-stacksize= flag.
==307== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 20: set nil at first - status code ok got: ''
expected: '200'
043-shdict.t TEST 18: delete at first ==339== Invalid read of size 4
==339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==339== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==339== by 0x8062D5B: main (nginx.c:385)
==339== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==339==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 18: delete at first ==339==
==339== Process terminating with default action of signal 11 (SIGSEGV)
==339== Access not within mapped region at address 0x0
==339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==339== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==339== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==339== by 0x8062D5B: main (nginx.c:385)
==339== If you believe this happened as a result of a stack
==339== overflow in your program's main thread (unlikely but
==339== possible), you can try to increase the size of the
==339== main thread stack using the --main-stacksize= flag.
==339== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 18: delete at first - status code ok got: ''
expected: '200'
043-shdict.t TEST 70: set & get_stale large values ==371== Invalid read of size 4
==371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==371== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==371== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==371== by 0x8062D5B: main (nginx.c:385)
==371== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==371==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 70: set & get_stale large values ==371==
==371== Process terminating with default action of signal 11 (SIGSEGV)
==371== Access not within mapped region at address 0x0
==371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==371== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==371== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==371== by 0x8062D5B: main (nginx.c:385)
==371== If you believe this happened as a result of a stack
==371== overflow in your program's main thread (unlikely but
==371== possible), you can try to increase the size of the
==371== main thread stack using the --main-stacksize= flag.
==371== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 70: set & get_stale large values - status code ok got: ''
expected: '200'
043-shdict.t TEST 17: delete after setting values ==403== Invalid read of size 4
==403== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==403== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==403== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==403== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==403== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==403== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==403== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==403== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==403== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==403== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==403== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==403== by 0x8062D5B: main (nginx.c:385)
==403== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==403==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 17: delete after setting values ==403==
==403== Process terminating with default action of signal 11 (SIGSEGV)
==403== Access not within mapped region at address 0x0
==403== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==403== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==403== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==403== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==403== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==403== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==403== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==403== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==403== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==403== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==403== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==403== by 0x8062D5B: main (nginx.c:385)
==403== If you believe this happened as a result of a stack
==403== overflow in your program's main thread (unlikely but
==403== possible), you can try to increase the size of the
==403== main thread stack using the --main-stacksize= flag.
==403== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 17: delete after setting values - status code ok got: ''
expected: '200'
043-shdict.t TEST 12: get non-existent keys ==435== Invalid read of size 4
==435== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==435== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==435== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==435== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==435== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==435== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==435== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==435== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==435== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==435== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==435== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==435== by 0x8062D5B: main (nginx.c:385)
==435== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==435==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 12: get non-existent keys ==435==
==435== Process terminating with default action of signal 11 (SIGSEGV)
==435== Access not within mapped region at address 0x0
==435== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==435== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==435== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==435== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==435== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==435== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==435== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==435== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==435== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==435== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==435== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==435== by 0x8062D5B: main (nginx.c:385)
==435== If you believe this happened as a result of a stack
==435== overflow in your program's main thread (unlikely but
==435== possible), you can try to increase the size of the
==435== main thread stack using the --main-stacksize= flag.
==435== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 12: get non-existent keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 55: safe_add ==467== Invalid read of size 4
==467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==467== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==467== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==467== by 0x8062D5B: main (nginx.c:385)
==467== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==467==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 55: safe_add ==467==
==467== Process terminating with default action of signal 11 (SIGSEGV)
==467== Access not within mapped region at address 0x0
==467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==467== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==467== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==467== by 0x8062D5B: main (nginx.c:385)
==467== If you believe this happened as a result of a stack
==467== overflow in your program's main thread (unlikely but
==467== possible), you can try to increase the size of the
==467== main thread stack using the --main-stacksize= flag.
==467== The main thread stack size used in this run was 8388608.
==467== 2,048 bytes in 1 blocks are definitely lost in loss record 2,846 of 2,905
==467== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==467== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==467== by 0x40CC146: mem_alloc (lib_aux.c:335)
==467== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==467== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==467== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==467== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==467== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==467== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==467== by 0x409CEAC: lj_record_call (lj_record.c:761)
==467== by 0x409F363: lj_record_ins (lj_record.c:2379)
==467== by 0x40BB16A: trace_state (lj_trace.c:680)
==467== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==467== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==467== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==467== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==467== by 0x407FA29: lua_resume (lj_api.c:1296)
==467== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==467== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==467== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==467== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==467== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==467== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==467== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==467== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==467== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==467== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==467== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==467== by 0x8062D5B: main (nginx.c:385)
==467==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:rec_call_specialize
fun:rec_call_setup
fun:lj_record_call
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 55: safe_add - status code ok got: ''
expected: '200'
043-shdict.t TEST 3: string key, boolean value ==500== Invalid read of size 4
==500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==500== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==500== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==500== by 0x8062D5B: main (nginx.c:385)
==500== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==500==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 3: string key, boolean value ==500==
==500== Process terminating with default action of signal 11 (SIGSEGV)
==500== Access not within mapped region at address 0x0
==500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==500== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==500== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==500== by 0x8062D5B: main (nginx.c:385)
==500== If you believe this happened as a result of a stack
==500== overflow in your program's main thread (unlikely but
==500== possible), you can try to increase the size of the
==500== main thread stack using the --main-stacksize= flag.
==500== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 3: string key, boolean value - status code ok got: ''
expected: '200'
043-shdict.t TEST 19: set nil after setting values ==532== Invalid read of size 4
==532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==532== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==532== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==532== by 0x8062D5B: main (nginx.c:385)
==532== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==532==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 19: set nil after setting values ==532==
==532== Process terminating with default action of signal 11 (SIGSEGV)
==532== Access not within mapped region at address 0x0
==532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==532== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==532== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==532== by 0x8062D5B: main (nginx.c:385)
==532== If you believe this happened as a result of a stack
==532== overflow in your program's main thread (unlikely but
==532== possible), you can try to increase the size of the
==532== main thread stack using the --main-stacksize= flag.
==532== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 19: set nil after setting values - status code ok got: ''
expected: '200'
043-shdict.t TEST 26: add key (key expired and value size unmatched) ==564== Invalid read of size 4
==564== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==564== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==564== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==564== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==564== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==564== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==564== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==564== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==564== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==564== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==564== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==564== by 0x8062D5B: main (nginx.c:385)
==564== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==564==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 26: add key (key expired and value size unmatched) ==564==
==564== Process terminating with default action of signal 11 (SIGSEGV)
==564== Access not within mapped region at address 0x0
==564== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==564== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==564== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==564== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==564== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==564== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==564== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==564== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==564== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==564== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==564== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==564== by 0x8062D5B: main (nginx.c:385)
==564== If you believe this happened as a result of a stack
==564== overflow in your program's main thread (unlikely but
==564== possible), you can try to increase the size of the
==564== main thread stack using the --main-stacksize= flag.
==564== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 26: add key (key expired and value size unmatched) - status code ok got: ''
expected: '200'
043-shdict.t TEST 57: set nil key ==598== Invalid read of size 4
==598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==598== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==598== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==598== by 0x8062D5B: main (nginx.c:385)
==598== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==598==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 57: set nil key ==598==
==598== Process terminating with default action of signal 11 (SIGSEGV)
==598== Access not within mapped region at address 0x0
==598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==598== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==598== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==598== by 0x8062D5B: main (nginx.c:385)
==598== If you believe this happened as a result of a stack
==598== overflow in your program's main thread (unlikely but
==598== possible), you can try to increase the size of the
==598== main thread stack using the --main-stacksize= flag.
==598== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 57: set nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 1: string key, int value ==630== Invalid read of size 4
==630== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==630== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==630== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==630== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==630== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==630== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==630== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==630== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==630== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==630== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==630== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==630== by 0x8062D5B: main (nginx.c:385)
==630== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==630==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 1: string key, int value ==630==
==630== Process terminating with default action of signal 11 (SIGSEGV)
==630== Access not within mapped region at address 0x0
==630== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==630== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==630== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==630== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==630== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==630== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==630== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==630== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==630== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==630== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==630== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==630== by 0x8062D5B: main (nginx.c:385)
==630== If you believe this happened as a result of a stack
==630== overflow in your program's main thread (unlikely but
==630== possible), you can try to increase the size of the
==630== main thread stack using the --main-stacksize= flag.
==630== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 1: string key, int value - status code ok got: ''
expected: '200'
043-shdict.t TEST 84: get bad zone table ==663== Invalid read of size 4
==663== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==663== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==663== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==663== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==663== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==663== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==663== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==663== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==663== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==663== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==663== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==663== by 0x8062D5B: main (nginx.c:385)
==663== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==663==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 84: get bad zone table ==663==
==663== Process terminating with default action of signal 11 (SIGSEGV)
==663== Access not within mapped region at address 0x0
==663== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==663== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==663== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==663== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==663== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==663== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==663== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==663== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==663== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==663== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==663== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==663== by 0x8062D5B: main (nginx.c:385)
==663== If you believe this happened as a result of a stack
==663== overflow in your program's main thread (unlikely but
==663== possible), you can try to increase the size of the
==663== main thread stack using the --main-stacksize= flag.
==663== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 84: get bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 74: incr nil key ==697== Invalid read of size 4
==697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==697== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==697== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==697== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==697== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==697== by 0x8062D5B: main (nginx.c:385)
==697== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==697==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 74: incr nil key ==697==
==697== Process terminating with default action of signal 11 (SIGSEGV)
==697== Access not within mapped region at address 0x0
==697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==697== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==697== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==697== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==697== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==697== by 0x8062D5B: main (nginx.c:385)
==697== If you believe this happened as a result of a stack
==697== overflow in your program's main thread (unlikely but
==697== possible), you can try to increase the size of the
==697== main thread stack using the --main-stacksize= flag.
==697== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 74: incr nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys ==729== Invalid read of size 4
==729== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==729== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==729== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==729== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==729== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==729== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==729== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==729== by 0x8062D5B: main (nginx.c:385)
==729== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==729==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys ==729==
==729== Process terminating with default action of signal 11 (SIGSEGV)
==729== Access not within mapped region at address 0x0
==729== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==729== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==729== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==729== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==729== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==729== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==729== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==729== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==729== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==729== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==729== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==729== by 0x8062D5B: main (nginx.c:385)
==729== If you believe this happened as a result of a stack
==729== overflow in your program's main thread (unlikely but
==729== possible), you can try to increase the size of the
==729== main thread stack using the --main-stacksize= flag.
==729== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 56: get_stale: expired entries can still be fetched ==761== Invalid read of size 4
==761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==761== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==761== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==761== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==761== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==761== by 0x8062D5B: main (nginx.c:385)
==761== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==761==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 56: get_stale: expired entries can still be fetched ==761==
==761== Process terminating with default action of signal 11 (SIGSEGV)
==761== Access not within mapped region at address 0x0
==761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==761== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==761== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==761== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==761== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==761== by 0x8062D5B: main (nginx.c:385)
==761== If you believe this happened as a result of a stack
==761== overflow in your program's main thread (unlikely but
==761== possible), you can try to increase the size of the
==761== main thread stack using the --main-stacksize= flag.
==761== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 56: get_stale: expired entries can still be fetched - status code ok got: ''
expected: '200'
043-shdict.t TEST 77: incr too long key ==793== Invalid read of size 4
==793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==793== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==793== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==793== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==793== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==793== by 0x8062D5B: main (nginx.c:385)
==793== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==793==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 77: incr too long key ==793==
==793== Process terminating with default action of signal 11 (SIGSEGV)
==793== Access not within mapped region at address 0x0
==793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==793== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==793== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==793== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==793== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==793== by 0x8062D5B: main (nginx.c:385)
==793== If you believe this happened as a result of a stack
==793== overflow in your program's main thread (unlikely but
==793== possible), you can try to increase the size of the
==793== main thread stack using the --main-stacksize= flag.
==793== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 77: incr too long key - status code ok got: ''
expected: '200'
043-shdict.t TEST 67: get_stale number key ==825== Invalid read of size 4
==825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==825== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==825== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==825== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==825== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==825== by 0x8062D5B: main (nginx.c:385)
==825== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==825==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 67: get_stale number key ==825==
==825== Process terminating with default action of signal 11 (SIGSEGV)
==825== Access not within mapped region at address 0x0
==825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==825== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==825== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==825== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==825== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==825== by 0x8062D5B: main (nginx.c:385)
==825== If you believe this happened as a result of a stack
==825== overflow in your program's main thread (unlikely but
==825== possible), you can try to increase the size of the
==825== main thread stack using the --main-stacksize= flag.
==825== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 67: get_stale number key - status code ok got: ''
expected: '200'
043-shdict.t TEST 23: add key (key exists) ==861== Invalid read of size 4
==861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==861== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==861== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==861== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==861== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==861== by 0x8062D5B: main (nginx.c:385)
==861== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==861==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 23: add key (key exists) ==861==
==861== Process terminating with default action of signal 11 (SIGSEGV)
==861== Access not within mapped region at address 0x0
==861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==861== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==861== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==861== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==861== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==861== by 0x8062D5B: main (nginx.c:385)
==861== If you believe this happened as a result of a stack
==861== overflow in your program's main thread (unlikely but
==861== possible), you can try to increase the size of the
==861== main thread stack using the --main-stacksize= flag.
==861== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 23: add key (key exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 10: forcibly override other valid entries and test LRU ==894== Invalid read of size 4
==894== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==894== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==894== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==894== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==894== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==894== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==894== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==894== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==894== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==894== by 0x8062D5B: main (nginx.c:385)
==894== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==894==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 10: forcibly override other valid entries and test LRU ==894==
==894== Process terminating with default action of signal 11 (SIGSEGV)
==894== Access not within mapped region at address 0x0
==894== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==894== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==894== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==894== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==894== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==894== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==894== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==894== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==894== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==894== by 0x8062D5B: main (nginx.c:385)
==894== If you believe this happened as a result of a stack
==894== overflow in your program's main thread (unlikely but
==894== possible), you can try to increase the size of the
==894== main thread stack using the --main-stacksize= flag.
==894== The main thread stack size used in this run was 8388608.
==894== 2,048 bytes in 1 blocks are definitely lost in loss record 2,841 of 2,901
==894== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==894== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==894== by 0x40CC146: mem_alloc (lib_aux.c:335)
==894== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==894== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==894== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==894== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==894== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==894== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==894== by 0x409CEAC: lj_record_call (lj_record.c:761)
==894== by 0x409F363: lj_record_ins (lj_record.c:2379)
==894== by 0x40BB16A: trace_state (lj_trace.c:680)
==894== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==894== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==894== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==894== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==894== by 0x407FA29: lua_resume (lj_api.c:1296)
==894== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==894== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==894== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==894== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==894== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==894== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==894== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==894== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==894== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==894== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==894== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==894== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==894== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==894== by 0x8062D5B: main (nginx.c:385)
==894==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:rec_call_specialize
fun:rec_call_setup
fun:lj_record_call
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 10: forcibly override other valid entries and test LRU - status code ok got: ''
expected: '200'
043-shdict.t TEST 58: set bad zone argument ==927== Invalid read of size 4
==927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==927== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==927== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==927== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==927== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==927== by 0x8062D5B: main (nginx.c:385)
==927== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==927==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 58: set bad zone argument ==927==
==927== Process terminating with default action of signal 11 (SIGSEGV)
==927== Access not within mapped region at address 0x0
==927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==927== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==927== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==927== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==927== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==927== by 0x8062D5B: main (nginx.c:385)
==927== If you believe this happened as a result of a stack
==927== overflow in your program's main thread (unlikely but
==927== possible), you can try to increase the size of the
==927== main thread stack using the --main-stacksize= flag.
==927== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 58: set bad zone argument - status code ok got: ''
expected: '200'
043-shdict.t TEST 21: fail to allocate memory ==959== Invalid read of size 4
==959== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==959== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==959== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==959== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==959== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==959== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==959== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==959== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==959== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==959== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==959== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==959== by 0x8062D5B: main (nginx.c:385)
==959== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==959==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 21: fail to allocate memory ==959==
==959== Process terminating with default action of signal 11 (SIGSEGV)
==959== Access not within mapped region at address 0x0
==959== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==959== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==959== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==959== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==959== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==959== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==959== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==959== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==959== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==959== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==959== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==959== by 0x8062D5B: main (nginx.c:385)
==959== If you believe this happened as a result of a stack
==959== overflow in your program's main thread (unlikely but
==959== possible), you can try to increase the size of the
==959== main thread stack using the --main-stacksize= flag.
==959== The main thread stack size used in this run was 8388608.
==959== 2,048 bytes in 1 blocks are definitely lost in loss record 2,931 of 2,994
==959== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==959== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==959== by 0x40CC146: mem_alloc (lib_aux.c:335)
==959== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==959== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==959== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==959== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==959== by 0x409AAFA: lj_record_constify (lj_record.c:251)
==959== by 0x409AE30: rec_upvalue (lj_record.c:1620)
==959== by 0x40A054C: lj_record_ins (lj_record.c:2314)
==959== by 0x40BB16A: trace_state (lj_trace.c:680)
==959== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==959== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==959== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==959== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==959== by 0x407FA29: lua_resume (lj_api.c:1296)
==959== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==959== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==959== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==959== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==959== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==959== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==959== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==959== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==959== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==959== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==959== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==959== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==959== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==959== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==959== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==959== by 0x8062D5B: main (nginx.c:385)
==959==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_constify
fun:rec_upvalue
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 21: fail to allocate memory - status code ok got: ''
expected: '200'
043-shdict.t TEST 29: replace key (key expired) ==991== Invalid read of size 4
==991== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==991== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==991== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==991== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==991== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==991== by 0x8062D5B: main (nginx.c:385)
==991== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==991==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 29: replace key (key expired) ==991==
==991== Process terminating with default action of signal 11 (SIGSEGV)
==991== Access not within mapped region at address 0x0
==991== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==991== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==991== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==991== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==991== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==991== by 0x8062D5B: main (nginx.c:385)
==991== If you believe this happened as a result of a stack
==991== overflow in your program's main thread (unlikely but
==991== possible), you can try to increase the size of the
==991== main thread stack using the --main-stacksize= flag.
==991== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 29: replace key (key expired) - status code ok got: ''
expected: '200'
043-shdict.t TEST 2: string key, floating-point value ==1023== Invalid read of size 4
==1023== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1023== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1023== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1023== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1023== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1023== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1023== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1023== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1023== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1023== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1023== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1023== by 0x8062D5B: main (nginx.c:385)
==1023== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1023==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 2: string key, floating-point value ==1023==
==1023== Process terminating with default action of signal 11 (SIGSEGV)
==1023== Access not within mapped region at address 0x0
==1023== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1023== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1023== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1023== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1023== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1023== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1023== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1023== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1023== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1023== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1023== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1023== by 0x8062D5B: main (nginx.c:385)
==1023== If you believe this happened as a result of a stack
==1023== overflow in your program's main thread (unlikely but
==1023== possible), you can try to increase the size of the
==1023== main thread stack using the --main-stacksize= flag.
==1023== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 2: string key, floating-point value - status code ok got: ''
expected: '200'
043-shdict.t TEST 83: set bad zone table ==1055== Invalid read of size 4
==1055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1055== by 0x8062D5B: main (nginx.c:385)
==1055== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1055==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 83: set bad zone table ==1055==
==1055== Process terminating with default action of signal 11 (SIGSEGV)
==1055== Access not within mapped region at address 0x0
==1055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1055== by 0x8062D5B: main (nginx.c:385)
==1055== If you believe this happened as a result of a stack
==1055== overflow in your program's main thread (unlikely but
==1055== possible), you can try to increase the size of the
==1055== main thread stack using the --main-stacksize= flag.
==1055== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 83: set bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 54: safe_set ==1088== Invalid read of size 4
==1088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1088== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1088== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1088== by 0x8062D5B: main (nginx.c:385)
==1088== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1088==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 54: safe_set ==1088==
==1088== Process terminating with default action of signal 11 (SIGSEGV)
==1088== Access not within mapped region at address 0x0
==1088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1088== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1088== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1088== by 0x8062D5B: main (nginx.c:385)
==1088== If you believe this happened as a result of a stack
==1088== overflow in your program's main thread (unlikely but
==1088== possible), you can try to increase the size of the
==1088== main thread stack using the --main-stacksize= flag.
==1088== The main thread stack size used in this run was 8388608.
==1088== 2,048 bytes in 1 blocks are definitely lost in loss record 2,839 of 2,897
==1088== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==1088== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==1088== by 0x40CC146: mem_alloc (lib_aux.c:335)
==1088== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==1088== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==1088== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==1088== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==1088== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==1088== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==1088== by 0x409CEAC: lj_record_call (lj_record.c:761)
==1088== by 0x409F363: lj_record_ins (lj_record.c:2379)
==1088== by 0x40BB16A: trace_state (lj_trace.c:680)
==1088== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1088== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==1088== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==1088== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1088== by 0x407FA29: lua_resume (lj_api.c:1296)
==1088== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==1088== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==1088== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==1088== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==1088== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==1088== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==1088== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==1088== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==1088== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==1088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1088== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1088== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1088== by 0x8062D5B: main (nginx.c:385)
==1088==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:rec_call_specialize
fun:rec_call_setup
fun:lj_record_call
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 54: safe_set - status code ok got: ''
expected: '200'
043-shdict.t TEST 87: dogs, cat mixing ==1123== Invalid read of size 4
==1123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1123== by 0x8062D5B: main (nginx.c:385)
==1123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 87: dogs, cat mixing ==1123==
==1123== Process terminating with default action of signal 11 (SIGSEGV)
==1123== Access not within mapped region at address 0x0
==1123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1123== by 0x8062D5B: main (nginx.c:385)
==1123== If you believe this happened as a result of a stack
==1123== overflow in your program's main thread (unlikely but
==1123== possible), you can try to increase the size of the
==1123== main thread stack using the --main-stacksize= flag.
==1123== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 87: dogs, cat mixing - status code ok got: ''
expected: '200'
043-shdict.t TEST 68: get_stale a too-long key ==1162== Invalid read of size 4
==1162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1162== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1162== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1162== by 0x8062D5B: main (nginx.c:385)
==1162== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1162==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 68: get_stale a too-long key ==1162==
==1162== Process terminating with default action of signal 11 (SIGSEGV)
==1162== Access not within mapped region at address 0x0
==1162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1162== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1162== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1162== by 0x8062D5B: main (nginx.c:385)
==1162== If you believe this happened as a result of a stack
==1162== overflow in your program's main thread (unlikely but
==1162== possible), you can try to increase the size of the
==1162== main thread stack using the --main-stacksize= flag.
==1162== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 68: get_stale a too-long key - status code ok got: ''
expected: '200'
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set ==1195== Invalid read of size 4
==1195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1195== by 0x8062D5B: main (nginx.c:385)
==1195== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1195==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set ==1195==
==1195== Process terminating with default action of signal 11 (SIGSEGV)
==1195== Access not within mapped region at address 0x0
==1195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1195== by 0x8062D5B: main (nginx.c:385)
==1195== If you believe this happened as a result of a stack
==1195== overflow in your program's main thread (unlikely but
==1195== possible), you can try to increase the size of the
==1195== main thread stack using the --main-stacksize= flag.
==1195== The main thread stack size used in this run was 8388608.
==1195== 2,048 bytes in 1 blocks are definitely lost in loss record 2,830 of 2,889
==1195== at 0x402C768: realloc (vg_replace_malloc.c:834)
==1195== by 0x40CC146: mem_alloc (lib_aux.c:335)
==1195== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==1195== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==1195== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==1195== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==1195== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==1195== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==1195== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1195== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==1195== by 0x40BB675: trace_state (lj_trace.c:690)
==1195== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1195== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==1195== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==1195== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1195== by 0x407FA29: lua_resume (lj_api.c:1296)
==1195== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==1195== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==1195== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==1195== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==1195== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==1195== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==1195== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==1195== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==1195== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==1195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1195== by 0x8062D5B: main (nginx.c:385)
==1195==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set - status code ok got: ''
expected: '200'
043-shdict.t TEST 30: replace key (key expired and value size unmatched) ==1258== Invalid read of size 4
==1258== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1258== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1258== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1258== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1258== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1258== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1258== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1258== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1258== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1258== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1258== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1258== by 0x8062D5B: main (nginx.c:385)
==1258== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1258==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 30: replace key (key expired and value size unmatched) ==1258==
==1258== Process terminating with default action of signal 11 (SIGSEGV)
==1258== Access not within mapped region at address 0x0
==1258== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1258== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1258== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1258== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1258== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1258== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1258== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1258== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1258== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1258== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1258== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1258== by 0x8062D5B: main (nginx.c:385)
==1258== If you believe this happened as a result of a stack
==1258== overflow in your program's main thread (unlikely but
==1258== possible), you can try to increase the size of the
==1258== main thread stack using the --main-stacksize= flag.
==1258== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 30: replace key (key expired and value size unmatched) - status code ok got: ''
expected: '200'
043-shdict.t TEST 76: incr empty string keys ==1290== Invalid read of size 4
==1290== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1290== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1290== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1290== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1290== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1290== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1290== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1290== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1290== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1290== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1290== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1290== by 0x8062D5B: main (nginx.c:385)
==1290== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1290==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 76: incr empty string keys ==1290==
==1290== Process terminating with default action of signal 11 (SIGSEGV)
==1290== Access not within mapped region at address 0x0
==1290== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1290== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1290== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1290== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1290== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1290== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1290== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1290== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1290== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1290== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1290== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1290== by 0x8062D5B: main (nginx.c:385)
==1290== If you believe this happened as a result of a stack
==1290== overflow in your program's main thread (unlikely but
==1290== possible), you can try to increase the size of the
==1290== main thread stack using the --main-stacksize= flag.
==1290== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 76: incr empty string keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 79: incr a number-like string key ==1324== Invalid read of size 4
==1324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1324== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1324== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1324== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1324== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1324== by 0x8062D5B: main (nginx.c:385)
==1324== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1324==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 79: incr a number-like string key ==1324==
==1324== Process terminating with default action of signal 11 (SIGSEGV)
==1324== Access not within mapped region at address 0x0
==1324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1324== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1324== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1324== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1324== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1324== by 0x8062D5B: main (nginx.c:385)
==1324== If you believe this happened as a result of a stack
==1324== overflow in your program's main thread (unlikely but
==1324== possible), you can try to increase the size of the
==1324== main thread stack using the --main-stacksize= flag.
==1324== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 79: incr a number-like string key - status code ok got: ''
expected: '200'
043-shdict.t TEST 9: forcibly override other valid entries ==1359== Invalid read of size 4
==1359== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1359== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1359== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1359== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1359== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1359== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1359== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1359== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1359== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1359== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1359== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1359== by 0x8062D5B: main (nginx.c:385)
==1359== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1359==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 9: forcibly override other valid entries ==1359==
==1359== Process terminating with default action of signal 11 (SIGSEGV)
==1359== Access not within mapped region at address 0x0
==1359== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1359== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1359== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1359== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1359== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1359== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1359== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1359== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1359== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1359== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1359== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1359== by 0x8062D5B: main (nginx.c:385)
==1359== If you believe this happened as a result of a stack
==1359== overflow in your program's main thread (unlikely but
==1359== possible), you can try to increase the size of the
==1359== main thread stack using the --main-stacksize= flag.
==1359== The main thread stack size used in this run was 8388608.
==1359== 2,048 bytes in 1 blocks are definitely lost in loss record 2,839 of 2,899
==1359== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==1359== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==1359== by 0x40CC146: mem_alloc (lib_aux.c:335)
==1359== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==1359== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==1359== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==1359== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==1359== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==1359== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==1359== by 0x409CEAC: lj_record_call (lj_record.c:761)
==1359== by 0x409F363: lj_record_ins (lj_record.c:2379)
==1359== by 0x40BB16A: trace_state (lj_trace.c:680)
==1359== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1359== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==1359== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==1359== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==1359== by 0x407FA29: lua_resume (lj_api.c:1296)
==1359== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==1359== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==1359== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==1359== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==1359== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==1359== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==1359== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==1359== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==1359== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==1359== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1359== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1359== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1359== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1359== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1359== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1359== by 0x8062D5B: main (nginx.c:385)
==1359==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:rec_call_specialize
fun:rec_call_setup
fun:lj_record_call
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 9: forcibly override other valid entries - status code ok got: ''
expected: '200'
043-shdict.t TEST 49: list keys in an empty shdict ==1395== Invalid read of size 4
==1395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1395== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1395== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1395== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1395== by 0x8062D5B: main (nginx.c:385)
==1395== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1395==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 49: list keys in an empty shdict ==1395==
==1395== Process terminating with default action of signal 11 (SIGSEGV)
==1395== Access not within mapped region at address 0x0
==1395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1395== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1395== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1395== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1395== by 0x8062D5B: main (nginx.c:385)
==1395== If you believe this happened as a result of a stack
==1395== overflow in your program's main thread (unlikely but
==1395== possible), you can try to increase the size of the
==1395== main thread stack using the --main-stacksize= flag.
==1395== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 49: list keys in an empty shdict - status code ok got: ''
expected: '200'
043-shdict.t TEST 35: incr key (incr by floating point number) ==1430== Invalid read of size 4
==1430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1430== by 0x8062D5B: main (nginx.c:385)
==1430== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1430==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 35: incr key (incr by floating point number) ==1430==
==1430== Process terminating with default action of signal 11 (SIGSEGV)
==1430== Access not within mapped region at address 0x0
==1430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1430== by 0x8062D5B: main (nginx.c:385)
==1430== If you believe this happened as a result of a stack
==1430== overflow in your program's main thread (unlikely but
==1430== possible), you can try to increase the size of the
==1430== main thread stack using the --main-stacksize= flag.
==1430== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 35: incr key (incr by floating point number) - status code ok got: ''
expected: '200'
043-shdict.t TEST 71: set & get_stale boolean values (true) ==1463== Invalid read of size 4
==1463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1463== by 0x8062D5B: main (nginx.c:385)
==1463== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1463==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 71: set & get_stale boolean values (true) ==1463==
==1463== Process terminating with default action of signal 11 (SIGSEGV)
==1463== Access not within mapped region at address 0x0
==1463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1463== by 0x8062D5B: main (nginx.c:385)
==1463== If you believe this happened as a result of a stack
==1463== overflow in your program's main thread (unlikely but
==1463== possible), you can try to increase the size of the
==1463== main thread stack using the --main-stacksize= flag.
==1463== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 71: set & get_stale boolean values (true) - status code ok got: ''
expected: '200'
043-shdict.t TEST 38: get and set with flags ==1502== Invalid read of size 4
==1502== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1502== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1502== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1502== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1502== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1502== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1502== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1502== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1502== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1502== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1502== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1502== by 0x8062D5B: main (nginx.c:385)
==1502== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1502==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 38: get and set with flags ==1502==
==1502== Process terminating with default action of signal 11 (SIGSEGV)
==1502== Access not within mapped region at address 0x0
==1502== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1502== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1502== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1502== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1502== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1502== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1502== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1502== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1502== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1502== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1502== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1502== by 0x8062D5B: main (nginx.c:385)
==1502== If you believe this happened as a result of a stack
==1502== overflow in your program's main thread (unlikely but
==1502== possible), you can try to increase the size of the
==1502== main thread stack using the --main-stacksize= flag.
==1502== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 38: get and set with flags - status code ok got: ''
expected: '200'
043-shdict.t TEST 24: add key (key not exists) ==1534== Invalid read of size 4
==1534== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1534== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1534== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1534== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1534== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1534== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1534== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1534== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1534== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1534== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1534== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1534== by 0x8062D5B: main (nginx.c:385)
==1534== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1534==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 24: add key (key not exists) ==1534==
==1534== Process terminating with default action of signal 11 (SIGSEGV)
==1534== Access not within mapped region at address 0x0
==1534== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1534== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1534== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1534== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1534== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1534== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1534== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1534== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1534== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1534== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1534== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1534== by 0x8062D5B: main (nginx.c:385)
==1534== If you believe this happened as a result of a stack
==1534== overflow in your program's main thread (unlikely but
==1534== possible), you can try to increase the size of the
==1534== main thread stack using the --main-stacksize= flag.
==1534== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 24: add key (key not exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 45: list all keys in a shdict ==1566== Invalid read of size 4
==1566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1566== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1566== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1566== by 0x8062D5B: main (nginx.c:385)
==1566== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1566==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 45: list all keys in a shdict ==1566==
==1566== Process terminating with default action of signal 11 (SIGSEGV)
==1566== Access not within mapped region at address 0x0
==1566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1566== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1566== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1566== by 0x8062D5B: main (nginx.c:385)
==1566== If you believe this happened as a result of a stack
==1566== overflow in your program's main thread (unlikely but
==1566== possible), you can try to increase the size of the
==1566== main thread stack using the --main-stacksize= flag.
==1566== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 45: list all keys in a shdict - status code ok got: ''
expected: '200'
043-shdict.t TEST 66: get_stale empty key ==1598== Invalid read of size 4
==1598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1598== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1598== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1598== by 0x8062D5B: main (nginx.c:385)
==1598== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1598==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 66: get_stale empty key ==1598==
==1598== Process terminating with default action of signal 11 (SIGSEGV)
==1598== Access not within mapped region at address 0x0
==1598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1598== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1598== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1598== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1598== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1598== by 0x8062D5B: main (nginx.c:385)
==1598== If you believe this happened as a result of a stack
==1598== overflow in your program's main thread (unlikely but
==1598== possible), you can try to increase the size of the
==1598== main thread stack using the --main-stacksize= flag.
==1598== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 66: get_stale empty key - status code ok got: ''
expected: '200'
043-shdict.t TEST 6: expired entries (can be auto-removed by get) ==1630== Invalid read of size 4
==1630== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1630== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1630== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1630== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1630== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1630== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1630== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1630== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1630== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1630== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1630== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1630== by 0x8062D5B: main (nginx.c:385)
==1630== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1630==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 6: expired entries (can be auto-removed by get) ==1630==
==1630== Process terminating with default action of signal 11 (SIGSEGV)
==1630== Access not within mapped region at address 0x0
==1630== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1630== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1630== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1630== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1630== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1630== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1630== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1630== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1630== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1630== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1630== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1630== by 0x8062D5B: main (nginx.c:385)
==1630== If you believe this happened as a result of a stack
==1630== overflow in your program's main thread (unlikely but
==1630== possible), you can try to increase the size of the
==1630== main thread stack using the --main-stacksize= flag.
==1630== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 6: expired entries (can be auto-removed by get) - status code ok got: ''
expected: '200'
043-shdict.t TEST 85: incr bad zone table ==1662== Invalid read of size 4
==1662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1662== by 0x8062D5B: main (nginx.c:385)
==1662== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1662==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 85: incr bad zone table ==1662==
==1662== Process terminating with default action of signal 11 (SIGSEGV)
==1662== Access not within mapped region at address 0x0
==1662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1662== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1662== by 0x8062D5B: main (nginx.c:385)
==1662== If you believe this happened as a result of a stack
==1662== overflow in your program's main thread (unlikely but
==1662== possible), you can try to increase the size of the
==1662== main thread stack using the --main-stacksize= flag.
==1662== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 85: incr bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 28: replace key (key not exists) ==1694== Invalid read of size 4
==1694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1694== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1694== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1694== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1694== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1694== by 0x8062D5B: main (nginx.c:385)
==1694== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1694==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 28: replace key (key not exists) ==1694==
==1694== Process terminating with default action of signal 11 (SIGSEGV)
==1694== Access not within mapped region at address 0x0
==1694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1694== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1694== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1694== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1694== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1694== by 0x8062D5B: main (nginx.c:385)
==1694== If you believe this happened as a result of a stack
==1694== overflow in your program's main thread (unlikely but
==1694== possible), you can try to increase the size of the
==1694== main thread stack using the --main-stacksize= flag.
==1694== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 28: replace key (key not exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 44: flush_expires a dict without expired items ==1726== Invalid read of size 4
==1726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1726== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1726== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1726== by 0x8062D5B: main (nginx.c:385)
==1726== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1726==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 44: flush_expires a dict without expired items ==1726==
==1726== Process terminating with default action of signal 11 (SIGSEGV)
==1726== Access not within mapped region at address 0x0
==1726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1726== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1726== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1726== by 0x8062D5B: main (nginx.c:385)
==1726== If you believe this happened as a result of a stack
==1726== overflow in your program's main thread (unlikely but
==1726== possible), you can try to increase the size of the
==1726== main thread stack using the --main-stacksize= flag.
==1726== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 44: flush_expires a dict without expired items - status code ok got: ''
expected: '200'
043-shdict.t TEST 15: set too large key ==1788== Invalid read of size 4
==1788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1788== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1788== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1788== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1788== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1788== by 0x8062D5B: main (nginx.c:385)
==1788== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1788==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 15: set too large key ==1788==
==1788== Process terminating with default action of signal 11 (SIGSEGV)
==1788== Access not within mapped region at address 0x0
==1788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1788== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1788== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1788== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1788== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1788== by 0x8062D5B: main (nginx.c:385)
==1788== If you believe this happened as a result of a stack
==1788== overflow in your program's main thread (unlikely but
==1788== possible), you can try to increase the size of the
==1788== main thread stack using the --main-stacksize= flag.
==1788== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 15: set too large key - status code ok got: ''
expected: '200'
043-shdict.t TEST 82: the lightuserdata ngx.null has no methods of shared dicts. ==1820== Invalid read of size 4
==1820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1820== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1820== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1820== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1820== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1820== by 0x8062D5B: main (nginx.c:385)
==1820== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1820==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 82: the lightuserdata ngx.null has no methods of shared dicts. ==1820==
==1820== Process terminating with default action of signal 11 (SIGSEGV)
==1820== Access not within mapped region at address 0x0
==1820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1820== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1820== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1820== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1820== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1820== by 0x8062D5B: main (nginx.c:385)
==1820== If you believe this happened as a result of a stack
==1820== overflow in your program's main thread (unlikely but
==1820== possible), you can try to increase the size of the
==1820== main thread stack using the --main-stacksize= flag.
==1820== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 82: the lightuserdata ngx.null has no methods of shared dicts. - status code ok got: ''
expected: '200'
043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) ==1852== Invalid read of size 4
==1852== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1852== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1852== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1852== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1852== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1852== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1852== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1852== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1852== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1852== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1852== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1852== by 0x8062D5B: main (nginx.c:385)
==1852== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1852==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) ==1852==
==1852== Process terminating with default action of signal 11 (SIGSEGV)
==1852== Access not within mapped region at address 0x0
==1852== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1852== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1852== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1852== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1852== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1852== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1852== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1852== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1852== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1852== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1852== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1852== by 0x8062D5B: main (nginx.c:385)
==1852== If you believe this happened as a result of a stack
==1852== overflow in your program's main thread (unlikely but
==1852== possible), you can try to increase the size of the
==1852== main thread stack using the --main-stacksize= flag.
==1852== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) - status code ok got: ''
expected: '200'
043-shdict.t TEST 34: incr key (incr by 0) ==1884== Invalid read of size 4
==1884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1884== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1884== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1884== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1884== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1884== by 0x8062D5B: main (nginx.c:385)
==1884== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1884==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 34: incr key (incr by 0) ==1884==
==1884== Process terminating with default action of signal 11 (SIGSEGV)
==1884== Access not within mapped region at address 0x0
==1884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1884== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1884== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1884== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1884== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1884== by 0x8062D5B: main (nginx.c:385)
==1884== If you believe this happened as a result of a stack
==1884== overflow in your program's main thread (unlikely but
==1884== possible), you can try to increase the size of the
==1884== main thread stack using the --main-stacksize= flag.
==1884== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 34: incr key (incr by 0) - status code ok got: ''
expected: '200'
043-shdict.t TEST 59: set empty string keys ==1916== Invalid read of size 4
==1916== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1916== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1916== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1916== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1916== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1916== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1916== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1916== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1916== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1916== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1916== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1916== by 0x8062D5B: main (nginx.c:385)
==1916== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1916==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 59: set empty string keys ==1916==
==1916== Process terminating with default action of signal 11 (SIGSEGV)
==1916== Access not within mapped region at address 0x0
==1916== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1916== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1916== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1916== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1916== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1916== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1916== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1916== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1916== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1916== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1916== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1916== by 0x8062D5B: main (nginx.c:385)
==1916== If you believe this happened as a result of a stack
==1916== overflow in your program's main thread (unlikely but
==1916== possible), you can try to increase the size of the
==1916== main thread stack using the --main-stacksize= flag.
==1916== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 59: set empty string keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 25: add key (key expired) ==1948== Invalid read of size 4
==1948== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1948== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1948== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1948== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1948== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1948== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1948== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1948== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1948== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1948== by 0x8062D5B: main (nginx.c:385)
==1948== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1948==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 25: add key (key expired) ==1948==
==1948== Process terminating with default action of signal 11 (SIGSEGV)
==1948== Access not within mapped region at address 0x0
==1948== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1948== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1948== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1948== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1948== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1948== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1948== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1948== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1948== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1948== by 0x8062D5B: main (nginx.c:385)
==1948== If you believe this happened as a result of a stack
==1948== overflow in your program's main thread (unlikely but
==1948== possible), you can try to increase the size of the
==1948== main thread stack using the --main-stacksize= flag.
==1948== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 25: add key (key expired) - status code ok got: ''
expected: '200'
043-shdict.t TEST 62: get empty key ==1980== Invalid read of size 4
==1980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1980== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1980== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1980== by 0x8062D5B: main (nginx.c:385)
==1980== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1980==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 62: get empty key ==1980==
==1980== Process terminating with default action of signal 11 (SIGSEGV)
==1980== Access not within mapped region at address 0x0
==1980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==1980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==1980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==1980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==1980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==1980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==1980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==1980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==1980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==1980== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==1980== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==1980== by 0x8062D5B: main (nginx.c:385)
==1980== If you believe this happened as a result of a stack
==1980== overflow in your program's main thread (unlikely but
==1980== possible), you can try to increase the size of the
==1980== main thread stack using the --main-stacksize= flag.
==1980== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 62: get empty key - status code ok got: ''
expected: '200'
043-shdict.t TEST 81: replace key with exptime ==2012== Invalid read of size 4
==2012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2012== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2012== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2012== by 0x8062D5B: main (nginx.c:385)
==2012== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2012==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 81: replace key with exptime ==2012==
==2012== Process terminating with default action of signal 11 (SIGSEGV)
==2012== Access not within mapped region at address 0x0
==2012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2012== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2012== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2012== by 0x8062D5B: main (nginx.c:385)
==2012== If you believe this happened as a result of a stack
==2012== overflow in your program's main thread (unlikely but
==2012== possible), you can try to increase the size of the
==2012== main thread stack using the --main-stacksize= flag.
==2012== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 81: replace key with exptime - status code ok got: ''
expected: '200'
043-shdict.t TEST 32: replace key (key not exists) ==2044== Invalid read of size 4
==2044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2044== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2044== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2044== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2044== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2044== by 0x8062D5B: main (nginx.c:385)
==2044== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2044==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 32: replace key (key not exists) ==2044==
==2044== Process terminating with default action of signal 11 (SIGSEGV)
==2044== Access not within mapped region at address 0x0
==2044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2044== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2044== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2044== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2044== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2044== by 0x8062D5B: main (nginx.c:385)
==2044== If you believe this happened as a result of a stack
==2044== overflow in your program's main thread (unlikely but
==2044== possible), you can try to increase the size of the
==2044== main thread stack using the --main-stacksize= flag.
==2044== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 32: replace key (key not exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 73: set & get_stale with a flag ==2076== Invalid read of size 4
==2076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2076== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2076== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2076== by 0x8062D5B: main (nginx.c:385)
==2076== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2076==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 73: set & get_stale with a flag ==2076==
==2076== Process terminating with default action of signal 11 (SIGSEGV)
==2076== Access not within mapped region at address 0x0
==2076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2076== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2076== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2076== by 0x8062D5B: main (nginx.c:385)
==2076== If you believe this happened as a result of a stack
==2076== overflow in your program's main thread (unlikely but
==2076== possible), you can try to increase the size of the
==2076== main thread stack using the --main-stacksize= flag.
==2076== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 73: set & get_stale with a flag - status code ok got: ''
expected: '200'
043-shdict.t TEST 40: flush_all ==2108== Invalid read of size 4
==2108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2108== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2108== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2108== by 0x8062D5B: main (nginx.c:385)
==2108== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2108==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 40: flush_all ==2108==
==2108== Process terminating with default action of signal 11 (SIGSEGV)
==2108== Access not within mapped region at address 0x0
==2108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2108== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2108== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2108== by 0x8062D5B: main (nginx.c:385)
==2108== If you believe this happened as a result of a stack
==2108== overflow in your program's main thread (unlikely but
==2108== possible), you can try to increase the size of the
==2108== main thread stack using the --main-stacksize= flag.
==2108== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 40: flush_all - status code ok got: ''
expected: '200'
043-shdict.t TEST 46: list keys in a shdict with limit ==2140== Invalid read of size 4
==2140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2140== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2140== by 0x8062D5B: main (nginx.c:385)
==2140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 46: list keys in a shdict with limit ==2140==
==2140== Process terminating with default action of signal 11 (SIGSEGV)
==2140== Access not within mapped region at address 0x0
==2140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2140== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2140== by 0x8062D5B: main (nginx.c:385)
==2140== If you believe this happened as a result of a stack
==2140== overflow in your program's main thread (unlikely but
==2140== possible), you can try to increase the size of the
==2140== main thread stack using the --main-stacksize= flag.
==2140== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 46: list keys in a shdict with limit - status code ok got: ''
expected: '200'
043-shdict.t TEST 78: incr number key ==2177== Invalid read of size 4
==2177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2177== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2177== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2177== by 0x8062D5B: main (nginx.c:385)
==2177== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2177==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 78: incr number key ==2177==
==2177== Process terminating with default action of signal 11 (SIGSEGV)
==2177== Access not within mapped region at address 0x0
==2177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2177== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2177== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2177== by 0x8062D5B: main (nginx.c:385)
==2177== If you believe this happened as a result of a stack
==2177== overflow in your program's main thread (unlikely but
==2177== possible), you can try to increase the size of the
==2177== main thread stack using the --main-stacksize= flag.
==2177== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 78: incr number key - status code ok got: ''
expected: '200'
043-shdict.t TEST 27: incr key (key exists) ==2209== Invalid read of size 4
==2209== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2209== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2209== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2209== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2209== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2209== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2209== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2209== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2209== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2209== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2209== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2209== by 0x8062D5B: main (nginx.c:385)
==2209== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2209==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 27: incr key (key exists) ==2209==
==2209== Process terminating with default action of signal 11 (SIGSEGV)
==2209== Access not within mapped region at address 0x0
==2209== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2209== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2209== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2209== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2209== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2209== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2209== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2209== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2209== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2209== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2209== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2209== by 0x8062D5B: main (nginx.c:385)
==2209== If you believe this happened as a result of a stack
==2209== overflow in your program's main thread (unlikely but
==2209== possible), you can try to increase the size of the
==2209== main thread stack using the --main-stacksize= flag.
==2209== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 27: incr key (key exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 42: flush_expires with number ==2241== Invalid read of size 4
==2241== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2241== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2241== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2241== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2241== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2241== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2241== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2241== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2241== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2241== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2241== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2241== by 0x8062D5B: main (nginx.c:385)
==2241== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2241==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 42: flush_expires with number ==2241==
==2241== Process terminating with default action of signal 11 (SIGSEGV)
==2241== Access not within mapped region at address 0x0
==2241== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2241== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2241== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2241== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2241== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2241== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2241== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2241== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2241== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2241== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2241== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2241== by 0x8062D5B: main (nginx.c:385)
==2241== If you believe this happened as a result of a stack
==2241== overflow in your program's main thread (unlikely but
==2241== possible), you can try to increase the size of the
==2241== main thread stack using the --main-stacksize= flag.
==2241== The main thread stack size used in this run was 8388608.
==2241== 2,048 bytes in 1 blocks are definitely lost in loss record 2,983 of 3,047
==2241== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==2241== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==2241== by 0x40CC146: mem_alloc (lib_aux.c:335)
==2241== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==2241== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==2241== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==2241== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==2241== by 0x4099F4D: rec_mm_prep (lj_record.c:961)
==2241== by 0x409BAA4: lj_record_idx (lj_record.c:1419)
==2241== by 0x409F552: lj_record_ins (lj_record.c:2339)
==2241== by 0x40BB16A: trace_state (lj_trace.c:680)
==2241== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==2241== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==2241== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==2241== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==2241== by 0x407FA29: lua_resume (lj_api.c:1296)
==2241== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==2241== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==2241== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==2241== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==2241== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==2241== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==2241== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==2241== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==2241== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==2241== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2241== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2241== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2241== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2241== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2241== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2241== by 0x8062D5B: main (nginx.c:385)
==2241==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kptr_
fun:rec_mm_prep
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 42: flush_expires with number - status code ok got: ''
expected: '200'
043-shdict.t TEST 50: list keys in an empty shdict with a limit ==2273== Invalid read of size 4
==2273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2273== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2273== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2273== by 0x8062D5B: main (nginx.c:385)
==2273== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2273==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 50: list keys in an empty shdict with a limit ==2273==
==2273== Process terminating with default action of signal 11 (SIGSEGV)
==2273== Access not within mapped region at address 0x0
==2273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2273== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2273== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2273== by 0x8062D5B: main (nginx.c:385)
==2273== If you believe this happened as a result of a stack
==2273== overflow in your program's main thread (unlikely but
==2273== possible), you can try to increase the size of the
==2273== main thread stack using the --main-stacksize= flag.
==2273== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 50: list keys in an empty shdict with a limit - status code ok got: ''
expected: '200'
043-shdict.t TEST 61: get nil key ==2305== Invalid read of size 4
==2305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2305== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2305== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2305== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2305== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2305== by 0x8062D5B: main (nginx.c:385)
==2305== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2305==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 61: get nil key ==2305==
==2305== Process terminating with default action of signal 11 (SIGSEGV)
==2305== Access not within mapped region at address 0x0
==2305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2305== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2305== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2305== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2305== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2305== by 0x8062D5B: main (nginx.c:385)
==2305== If you believe this happened as a result of a stack
==2305== overflow in your program's main thread (unlikely but
==2305== possible), you can try to increase the size of the
==2305== main thread stack using the --main-stacksize= flag.
==2305== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 61: get nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 31: incr key (key exists) ==2337== Invalid read of size 4
==2337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2337== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2337== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2337== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2337== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2337== by 0x8062D5B: main (nginx.c:385)
==2337== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2337==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 31: incr key (key exists) ==2337==
==2337== Process terminating with default action of signal 11 (SIGSEGV)
==2337== Access not within mapped region at address 0x0
==2337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2337== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2337== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2337== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2337== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2337== by 0x8062D5B: main (nginx.c:385)
==2337== If you believe this happened as a result of a stack
==2337== overflow in your program's main thread (unlikely but
==2337== possible), you can try to increase the size of the
==2337== main thread stack using the --main-stacksize= flag.
==2337== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 31: incr key (key exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 43: flush_expires an empty dict ==2369== Invalid read of size 4
==2369== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2369== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2369== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2369== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2369== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2369== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2369== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2369== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2369== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2369== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2369== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2369== by 0x8062D5B: main (nginx.c:385)
==2369== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2369==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 43: flush_expires an empty dict ==2369==
==2369== Process terminating with default action of signal 11 (SIGSEGV)
==2369== Access not within mapped region at address 0x0
==2369== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2369== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2369== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2369== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2369== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2369== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2369== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2369== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2369== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2369== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2369== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2369== by 0x8062D5B: main (nginx.c:385)
==2369== If you believe this happened as a result of a stack
==2369== overflow in your program's main thread (unlikely but
==2369== possible), you can try to increase the size of the
==2369== main thread stack using the --main-stacksize= flag.
==2369== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 43: flush_expires an empty dict - status code ok got: ''
expected: '200'
043-shdict.t TEST 75: incr bad zone argument ==2401== Invalid read of size 4
==2401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2401== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2401== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2401== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2401== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2401== by 0x8062D5B: main (nginx.c:385)
==2401== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2401==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 75: incr bad zone argument ==2401==
==2401== Process terminating with default action of signal 11 (SIGSEGV)
==2401== Access not within mapped region at address 0x0
==2401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2401== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2401== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2401== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2401== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2401== by 0x8062D5B: main (nginx.c:385)
==2401== If you believe this happened as a result of a stack
==2401== overflow in your program's main thread (unlikely but
==2401== possible), you can try to increase the size of the
==2401== main thread stack using the --main-stacksize= flag.
==2401== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 75: incr bad zone argument - status code ok got: ''
expected: '200'
043-shdict.t TEST 80: add nil values ==2433== Invalid read of size 4
==2433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2433== by 0x8062D5B: main (nginx.c:385)
==2433== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2433==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 80: add nil values ==2433==
==2433== Process terminating with default action of signal 11 (SIGSEGV)
==2433== Access not within mapped region at address 0x0
==2433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2433== by 0x8062D5B: main (nginx.c:385)
==2433== If you believe this happened as a result of a stack
==2433== overflow in your program's main thread (unlikely but
==2433== possible), you can try to increase the size of the
==2433== main thread stack using the --main-stacksize= flag.
==2433== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 80: add nil values - status code ok got: ''
expected: '200'
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set ==2465== Invalid read of size 4
==2465== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2465== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2465== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2465== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2465== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2465== by 0x8062D5B: main (nginx.c:385)
==2465== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2465==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set ==2465==
==2465== Process terminating with default action of signal 11 (SIGSEGV)
==2465== Access not within mapped region at address 0x0
==2465== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2465== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2465== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2465== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2465== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2465== by 0x8062D5B: main (nginx.c:385)
==2465== If you believe this happened as a result of a stack
==2465== overflow in your program's main thread (unlikely but
==2465== possible), you can try to increase the size of the
==2465== main thread stack using the --main-stacksize= flag.
==2465== The main thread stack size used in this run was 8388608.
==2465== 2,048 bytes in 1 blocks are definitely lost in loss record 2,822 of 2,879
==2465== at 0x402C768: realloc (vg_replace_malloc.c:834)
==2465== by 0x40CC146: mem_alloc (lib_aux.c:335)
==2465== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==2465== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==2465== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==2465== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==2465== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==2465== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==2465== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==2465== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==2465== by 0x40BB675: trace_state (lj_trace.c:690)
==2465== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==2465== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==2465== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==2465== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==2465== by 0x407FA29: lua_resume (lj_api.c:1296)
==2465== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==2465== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==2465== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==2465== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==2465== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==2465== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==2465== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==2465== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==2465== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==2465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2465== by 0x8062D5B: main (nginx.c:385)
==2465==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set - status code ok got: ''
expected: '200'
043-shdict.t TEST 8: not yet expired entries ==2497== Invalid read of size 4
==2497== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2497== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2497== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2497== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2497== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2497== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2497== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2497== by 0x8062D5B: main (nginx.c:385)
==2497== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2497==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 8: not yet expired entries ==2497==
==2497== Process terminating with default action of signal 11 (SIGSEGV)
==2497== Access not within mapped region at address 0x0
==2497== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2497== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2497== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2497== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2497== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2497== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2497== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2497== by 0x8062D5B: main (nginx.c:385)
==2497== If you believe this happened as a result of a stack
==2497== overflow in your program's main thread (unlikely but
==2497== possible), you can try to increase the size of the
==2497== main thread stack using the --main-stacksize= flag.
==2497== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 8: not yet expired entries - status code ok got: ''
expected: '200'
043-shdict.t TEST 11: dogs and cats dicts ==2529== Invalid read of size 4
==2529== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2529== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2529== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2529== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2529== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2529== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2529== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2529== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2529== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2529== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2529== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2529== by 0x8062D5B: main (nginx.c:385)
==2529== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2529==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 11: dogs and cats dicts ==2529==
==2529== Process terminating with default action of signal 11 (SIGSEGV)
==2529== Access not within mapped region at address 0x0
==2529== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2529== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2529== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2529== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2529== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2529== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2529== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2529== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2529== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2529== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2529== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2529== by 0x8062D5B: main (nginx.c:385)
==2529== If you believe this happened as a result of a stack
==2529== overflow in your program's main thread (unlikely but
==2529== possible), you can try to increase the size of the
==2529== main thread stack using the --main-stacksize= flag.
==2529== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 11: dogs and cats dicts - status code ok got: ''
expected: '200'
043-shdict.t TEST 60: get bad zone argument ==2561== Invalid read of size 4
==2561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2561== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2561== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2561== by 0x8062D5B: main (nginx.c:385)
==2561== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2561==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 60: get bad zone argument ==2561==
==2561== Process terminating with default action of signal 11 (SIGSEGV)
==2561== Access not within mapped region at address 0x0
==2561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2561== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2561== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2561== by 0x8062D5B: main (nginx.c:385)
==2561== If you believe this happened as a result of a stack
==2561== overflow in your program's main thread (unlikely but
==2561== possible), you can try to increase the size of the
==2561== main thread stack using the --main-stacksize= flag.
==2561== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 60: get bad zone argument - status code ok got: ''
expected: '200'
043-shdict.t TEST 5: different-size values set to the same key ==2611== Invalid read of size 4
==2611== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2611== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2611== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2611== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2611== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2611== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2611== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2611== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2611== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2611== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2611== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2611== by 0x8062D5B: main (nginx.c:385)
==2611== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2611==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 5: different-size values set to the same key ==2611==
==2611== Process terminating with default action of signal 11 (SIGSEGV)
==2611== Access not within mapped region at address 0x0
==2611== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2611== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2611== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2611== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2611== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2611== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2611== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2611== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2611== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2611== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2611== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2611== by 0x8062D5B: main (nginx.c:385)
==2611== If you believe this happened as a result of a stack
==2611== overflow in your program's main thread (unlikely but
==2611== possible), you can try to increase the size of the
==2611== main thread stack using the --main-stacksize= flag.
==2611== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 5: different-size values set to the same key - status code ok got: ''
expected: '200'
043-shdict.t TEST 65: get_stale nil key ==2644== Invalid read of size 4
==2644== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2644== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2644== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2644== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2644== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2644== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2644== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2644== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2644== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2644== by 0x8062D5B: main (nginx.c:385)
==2644== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2644==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 65: get_stale nil key ==2644==
==2644== Process terminating with default action of signal 11 (SIGSEGV)
==2644== Access not within mapped region at address 0x0
==2644== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2644== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2644== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2644== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2644== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2644== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2644== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2644== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2644== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2644== by 0x8062D5B: main (nginx.c:385)
==2644== If you believe this happened as a result of a stack
==2644== overflow in your program's main thread (unlikely but
==2644== possible), you can try to increase the size of the
==2644== main thread stack using the --main-stacksize= flag.
==2644== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 65: get_stale nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 69: get_stale a non-existent key ==2697== Invalid read of size 4
==2697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2697== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2697== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2697== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2697== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2697== by 0x8062D5B: main (nginx.c:385)
==2697== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2697==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
043-shdict.t TEST 69: get_stale a non-existent key ==2697==
==2697== Process terminating with default action of signal 11 (SIGSEGV)
==2697== Access not within mapped region at address 0x0
==2697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==2697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==2697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==2697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==2697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==2697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==2697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==2697== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==2697== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==2697== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==2697== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==2697== by 0x8062D5B: main (nginx.c:385)
==2697== If you believe this happened as a result of a stack
==2697== overflow in your program's main thread (unlikely but
==2697== possible), you can try to increase the size of the
==2697== main thread stack using the --main-stacksize= flag.
==2697== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 69: get_stale a non-existent key - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 8: get a bad variable name - Can't connect to 127.0.0.1:1984: Connection refused ==3002== Invalid read of size 4
==3002== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3002== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3002== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3002== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3002== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3002== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3002== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3002== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3002== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3002== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3002== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3002== by 0x8062D5B: main (nginx.c:385)
==3002== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3002==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 8: get a bad variable name - Can't connect to 127.0.0.1:1984: Connection refused ==3002==
==3002== Process terminating with default action of signal 11 (SIGSEGV)
==3002== Access not within mapped region at address 0x0
==3002== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3002== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3002== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3002== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3002== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3002== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3002== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3002== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3002== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3002== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3002== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3002== by 0x8062D5B: main (nginx.c:385)
==3002== If you believe this happened as a result of a stack
==3002== overflow in your program's main thread (unlikely but
==3002== possible), you can try to increase the size of the
==3002== main thread stack using the --main-stacksize= flag.
==3002== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 8: get a bad variable name - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 8: get a bad variable name - Can't connect to 127.0.0.1:1984: Connection refused ==3003== Invalid read of size 4
==3003== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3003== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3003== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3003== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3003== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3003== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3003== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3003== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3003== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3003== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3003== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3003== by 0x8062D5B: main (nginx.c:385)
==3003== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3003==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 8: get a bad variable name - Can't connect to 127.0.0.1:1984: Connection refused ==3003==
==3003== Process terminating with default action of signal 11 (SIGSEGV)
==3003== Access not within mapped region at address 0x0
==3003== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3003== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3003== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3003== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3003== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3003== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3003== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3003== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3003== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3003== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3003== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3003== by 0x8062D5B: main (nginx.c:385)
==3003== If you believe this happened as a result of a stack
==3003== overflow in your program's main thread (unlikely but
==3003== possible), you can try to increase the size of the
==3003== main thread stack using the --main-stacksize= flag.
==3003== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 8: get a bad variable name - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 7: variable name is caseless ==3015== Invalid read of size 4
==3015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3015== by 0x8062D5B: main (nginx.c:385)
==3015== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3015==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 7: variable name is caseless ==3015==
==3015== Process terminating with default action of signal 11 (SIGSEGV)
==3015== Access not within mapped region at address 0x0
==3015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3015== by 0x8062D5B: main (nginx.c:385)
==3015== If you believe this happened as a result of a stack
==3015== overflow in your program's main thread (unlikely but
==3015== possible), you can try to increase the size of the
==3015== main thread stack using the --main-stacksize= flag.
==3015== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 7: variable name is caseless - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 7: variable name is caseless - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: 127.0.0.1\x{0a}"
length: 17
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 7: variable name is caseless ==3036== Invalid read of size 4
==3036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3036== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3036== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3036== by 0x8062D5B: main (nginx.c:385)
==3036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 7: variable name is caseless ==3036==
==3036== Process terminating with default action of signal 11 (SIGSEGV)
==3036== Access not within mapped region at address 0x0
==3036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3036== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3036== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3036== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3036== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3036== by 0x8062D5B: main (nginx.c:385)
==3036== If you believe this happened as a result of a stack
==3036== overflow in your program's main thread (unlikely but
==3036== possible), you can try to increase the size of the
==3036== main thread stack using the --main-stacksize= flag.
==3036== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 7: variable name is caseless - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 7: variable name is caseless - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: 127.0.0.1\x{0a}"
length: 17
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 6: reference nonexistent variable ==3048== Invalid read of size 4
==3048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3048== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3048== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3048== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3048== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3048== by 0x8062D5B: main (nginx.c:385)
==3048== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3048==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 6: reference nonexistent variable ==3048==
==3048== Process terminating with default action of signal 11 (SIGSEGV)
==3048== Access not within mapped region at address 0x0
==3048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3048== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3048== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3048== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3048== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3048== by 0x8062D5B: main (nginx.c:385)
==3048== If you believe this happened as a result of a stack
==3048== overflow in your program's main thread (unlikely but
==3048== possible), you can try to increase the size of the
==3048== main thread stack using the --main-stacksize= flag.
==3048== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 6: reference nonexistent variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 6: reference nonexistent variable - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 6: reference nonexistent variable ==3069== Invalid read of size 4
==3069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3069== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3069== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3069== by 0x8062D5B: main (nginx.c:385)
==3069== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3069==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 6: reference nonexistent variable ==3069==
==3069== Process terminating with default action of signal 11 (SIGSEGV)
==3069== Access not within mapped region at address 0x0
==3069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3069== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3069== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3069== by 0x8062D5B: main (nginx.c:385)
==3069== If you believe this happened as a result of a stack
==3069== overflow in your program's main thread (unlikely but
==3069== possible), you can try to increase the size of the
==3069== main thread stack using the --main-stacksize= flag.
==3069== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 6: reference nonexistent variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 6: reference nonexistent variable - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 5: connection & nginx_version ==3081== Invalid read of size 4
==3081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3081== by 0x8062D5B: main (nginx.c:385)
==3081== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3081==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 5: connection & nginx_version ==3081==
==3081== Process terminating with default action of signal 11 (SIGSEGV)
==3081== Access not within mapped region at address 0x0
==3081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3081== by 0x8062D5B: main (nginx.c:385)
==3081== If you believe this happened as a result of a stack
==3081== overflow in your program's main thread (unlikely but
==3081== possible), you can try to increase the size of the
==3081== main thread stack using the --main-stacksize= flag.
==3081== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 5: connection & nginx_version - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 5: connection & nginx_version - response_body_like - response is expected () ''
doesn't match '(?^:^connection: \d+
nginx_version: \d+\.\d+\.\d+.*
string
string$)'
045-ngx-var.t TEST 5: connection & nginx_version ==3102== Invalid read of size 4
==3102== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3102== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3102== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3102== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3102== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3102== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3102== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3102== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3102== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3102== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3102== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3102== by 0x8062D5B: main (nginx.c:385)
==3102== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3102==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 5: connection & nginx_version ==3102==
==3102== Process terminating with default action of signal 11 (SIGSEGV)
==3102== Access not within mapped region at address 0x0
==3102== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3102== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3102== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3102== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3102== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3102== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3102== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3102== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3102== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3102== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3102== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3102== by 0x8062D5B: main (nginx.c:385)
==3102== If you believe this happened as a result of a stack
==3102== overflow in your program's main thread (unlikely but
==3102== possible), you can try to increase the size of the
==3102== main thread stack using the --main-stacksize= flag.
==3102== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 5: connection & nginx_version - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 5: connection & nginx_version - response_body_like - response is expected () ''
doesn't match '(?^:^connection: \d+
nginx_version: \d+\.\d+\.\d+.*
string
string$)'
045-ngx-var.t TEST 3: binary_remote_addr ==3114== Invalid read of size 4
==3114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3114== by 0x8062D5B: main (nginx.c:385)
==3114== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3114==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 3: binary_remote_addr ==3114==
==3114== Process terminating with default action of signal 11 (SIGSEGV)
==3114== Access not within mapped region at address 0x0
==3114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3114== by 0x8062D5B: main (nginx.c:385)
==3114== If you believe this happened as a result of a stack
==3114== overflow in your program's main thread (unlikely but
==3114== possible), you can try to increase the size of the
==3114== main thread stack using the --main-stacksize= flag.
==3114== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 3: binary_remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 3: binary_remote_addr - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "binary_remote_addr len: 4\x{0a}type: string\x{0a}"
length: 39
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 3: binary_remote_addr ==3135== Invalid read of size 4
==3135== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3135== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3135== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3135== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3135== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3135== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3135== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3135== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3135== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3135== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3135== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3135== by 0x8062D5B: main (nginx.c:385)
==3135== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3135==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 3: binary_remote_addr ==3135==
==3135== Process terminating with default action of signal 11 (SIGSEGV)
==3135== Access not within mapped region at address 0x0
==3135== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3135== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3135== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3135== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3135== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3135== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3135== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3135== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3135== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3135== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3135== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3135== by 0x8062D5B: main (nginx.c:385)
==3135== If you believe this happened as a result of a stack
==3135== overflow in your program's main thread (unlikely but
==3135== possible), you can try to increase the size of the
==3135== main thread stack using the --main-stacksize= flag.
==3135== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 3: binary_remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 3: binary_remote_addr - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "binary_remote_addr len: 4\x{0a}type: string\x{0a}"
length: 39
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 2: remote_addr ==3147== Invalid read of size 4
==3147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3147== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3147== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3147== by 0x8062D5B: main (nginx.c:385)
==3147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 2: remote_addr ==3147==
==3147== Process terminating with default action of signal 11 (SIGSEGV)
==3147== Access not within mapped region at address 0x0
==3147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3147== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3147== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3147== by 0x8062D5B: main (nginx.c:385)
==3147== If you believe this happened as a result of a stack
==3147== overflow in your program's main thread (unlikely but
==3147== possible), you can try to increase the size of the
==3147== main thread stack using the --main-stacksize= flag.
==3147== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 2: remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 2: remote_addr - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}type: string\x{0a}"
length: 36
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 2: remote_addr ==3168== Invalid read of size 4
==3168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3168== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3168== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3168== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3168== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3168== by 0x8062D5B: main (nginx.c:385)
==3168== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3168==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 2: remote_addr ==3168==
==3168== Process terminating with default action of signal 11 (SIGSEGV)
==3168== Access not within mapped region at address 0x0
==3168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3168== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3168== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3168== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3168== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3168== by 0x8062D5B: main (nginx.c:385)
==3168== If you believe this happened as a result of a stack
==3168== overflow in your program's main thread (unlikely but
==3168== possible), you can try to increase the size of the
==3168== main thread stack using the --main-stacksize= flag.
==3168== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 2: remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 2: remote_addr - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}type: string\x{0a}"
length: 36
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 1: pid ==3180== Invalid read of size 4
==3180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3180== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3180== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3180== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3180== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3180== by 0x8062D5B: main (nginx.c:385)
==3180== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3180==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 1: pid ==3180==
==3180== Process terminating with default action of signal 11 (SIGSEGV)
==3180== Access not within mapped region at address 0x0
==3180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3180== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3180== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3180== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3180== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3180== by 0x8062D5B: main (nginx.c:385)
==3180== If you believe this happened as a result of a stack
==3180== overflow in your program's main thread (unlikely but
==3180== possible), you can try to increase the size of the
==3180== main thread stack using the --main-stacksize= flag.
==3180== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 1: pid - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 1: pid - response_body_like - response is expected () ''
doesn't match '(?^s:variable pid: \d+
variable pid is correct\.
)'
045-ngx-var.t TEST 1: pid ==3201== Invalid read of size 4
==3201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3201== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3201== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3201== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3201== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3201== by 0x8062D5B: main (nginx.c:385)
==3201== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3201==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 1: pid ==3201==
==3201== Process terminating with default action of signal 11 (SIGSEGV)
==3201== Access not within mapped region at address 0x0
==3201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3201== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3201== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3201== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3201== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3201== by 0x8062D5B: main (nginx.c:385)
==3201== If you believe this happened as a result of a stack
==3201== overflow in your program's main thread (unlikely but
==3201== possible), you can try to increase the size of the
==3201== main thread stack using the --main-stacksize= flag.
==3201== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 1: pid - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 1: pid - response_body_like - response is expected () ''
doesn't match '(?^s:variable pid: \d+
variable pid is correct\.
)'
045-ngx-var.t TEST 9: can not set variable ==3213== Invalid read of size 4
==3213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3213== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3213== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3213== by 0x8062D5B: main (nginx.c:385)
==3213== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3213==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 9: can not set variable ==3213==
==3213== Process terminating with default action of signal 11 (SIGSEGV)
==3213== Access not within mapped region at address 0x0
==3213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3213== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3213== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3213== by 0x8062D5B: main (nginx.c:385)
==3213== If you believe this happened as a result of a stack
==3213== overflow in your program's main thread (unlikely but
==3213== possible), you can try to increase the size of the
==3213== main thread stack using the --main-stacksize= flag.
==3213== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 9: can not set variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 9: can not set variable ==3234== Invalid read of size 4
==3234== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3234== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3234== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3234== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3234== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3234== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3234== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3234== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3234== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3234== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3234== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3234== by 0x8062D5B: main (nginx.c:385)
==3234== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3234==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 9: can not set variable ==3234==
==3234== Process terminating with default action of signal 11 (SIGSEGV)
==3234== Access not within mapped region at address 0x0
==3234== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3234== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3234== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3234== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3234== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3234== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3234== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3234== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3234== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3234== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3234== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3234== by 0x8062D5B: main (nginx.c:385)
==3234== If you believe this happened as a result of a stack
==3234== overflow in your program's main thread (unlikely but
==3234== possible), you can try to increase the size of the
==3234== main thread stack using the --main-stacksize= flag.
==3234== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 9: can not set variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 4: server_addr & server_port ==3246== Invalid read of size 4
==3246== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3246== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3246== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3246== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3246== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3246== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3246== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3246== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3246== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3246== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3246== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3246== by 0x8062D5B: main (nginx.c:385)
==3246== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3246==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 4: server_addr & server_port ==3246==
==3246== Process terminating with default action of signal 11 (SIGSEGV)
==3246== Access not within mapped region at address 0x0
==3246== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3246== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3246== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3246== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3246== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3246== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3246== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3246== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3246== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3246== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3246== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3246== by 0x8062D5B: main (nginx.c:385)
==3246== If you believe this happened as a result of a stack
==3246== overflow in your program's main thread (unlikely but
==3246== possible), you can try to increase the size of the
==3246== main thread stack using the --main-stacksize= flag.
==3246== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 4: server_addr & server_port - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 4: server_addr & server_port - response_body_like - response is expected () ''
doesn't match '(?^:^server_addr: 127\.0\.0\.1
server_port: \d{4,}
string
string
$)'
045-ngx-var.t TEST 4: server_addr & server_port ==3267== Invalid read of size 4
==3267== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3267== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3267== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3267== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3267== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3267== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3267== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3267== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3267== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3267== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3267== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3267== by 0x8062D5B: main (nginx.c:385)
==3267== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3267==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
045-ngx-var.t TEST 4: server_addr & server_port ==3267==
==3267== Process terminating with default action of signal 11 (SIGSEGV)
==3267== Access not within mapped region at address 0x0
==3267== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3267== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3267== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3267== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3267== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3267== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3267== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3267== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3267== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3267== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3267== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3267== by 0x8062D5B: main (nginx.c:385)
==3267== If you believe this happened as a result of a stack
==3267== overflow in your program's main thread (unlikely but
==3267== possible), you can try to increase the size of the
==3267== main thread stack using the --main-stacksize= flag.
==3267== The main thread stack size used in this run was 8388608.

045-ngx-var.t TEST 4: server_addr & server_port - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 4: server_addr & server_port - response_body_like - response is expected () ''
doesn't match '(?^:^server_addr: 127\.0\.0\.1
server_port: \d{4,}
string
string
$)'
046-hmac.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==3276== Invalid read of size 4
==3276== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3276== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3276== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3276== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3276== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3276== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3276== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3276== by 0x8062D5B: main (nginx.c:385)
==3276== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3276==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
046-hmac.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==3276==
==3276== Process terminating with default action of signal 11 (SIGSEGV)
==3276== Access not within mapped region at address 0x0
==3276== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3276== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3276== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3276== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3276== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3276== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3276== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3276== by 0x8062D5B: main (nginx.c:385)
==3276== If you believe this happened as a result of a stack
==3276== overflow in your program's main thread (unlikely but
==3276== possible), you can try to increase the size of the
==3276== main thread stack using the --main-stacksize= flag.
==3276== The main thread stack size used in this run was 8388608.

046-hmac.t TEST 1: sanity - status code ok got: ''
expected: '200'
046-hmac.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "R/pvxzHC4NLtj7S+kXFg/NePTmk=\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
046-hmac.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==3277== Invalid read of size 4
==3277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3277== by 0x8062D5B: main (nginx.c:385)
==3277== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3277==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
046-hmac.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==3277==
==3277== Process terminating with default action of signal 11 (SIGSEGV)
==3277== Access not within mapped region at address 0x0
==3277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3277== by 0x8062D5B: main (nginx.c:385)
==3277== If you believe this happened as a result of a stack
==3277== overflow in your program's main thread (unlikely but
==3277== possible), you can try to increase the size of the
==3277== main thread stack using the --main-stacksize= flag.
==3277== The main thread stack size used in this run was 8388608.

046-hmac.t TEST 1: sanity - status code ok got: ''
expected: '200'
046-hmac.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "R/pvxzHC4NLtj7S+kXFg/NePTmk=\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
047-match-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==3286== Invalid read of size 4
==3286== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3286== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3286== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3286== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3286== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3286== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3286== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3286== by 0x8062D5B: main (nginx.c:385)
==3286== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3286==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==3286==
==3286== Process terminating with default action of signal 11 (SIGSEGV)
==3286== Access not within mapped region at address 0x0
==3286== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3286== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3286== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3286== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3286== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3286== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3286== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3286== by 0x8062D5B: main (nginx.c:385)
==3286== If you believe this happened as a result of a stack
==3286== overflow in your program's main thread (unlikely but
==3286== possible), you can try to increase the size of the
==3286== main thread stack using the --main-stacksize= flag.
==3286== The main thread stack size used in this run was 8388608.
==3286== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,862
==3286== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3286== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3286== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3286== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3286== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3286== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3286== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3286== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3286== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3286== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3286== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3286== by 0x40BB675: trace_state (lj_trace.c:690)
==3286== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3286== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3286== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3286== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3286== by 0x407FA29: lua_resume (lj_api.c:1296)
==3286== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3286== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3286== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3286== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3286== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3286== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3286== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3286== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3286== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3286== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3286== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3286== by 0x8062D5B: main (nginx.c:385)
==3286==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==3287== Invalid read of size 4
==3287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3287== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3287== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3287== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3287== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3287== by 0x8062D5B: main (nginx.c:385)
==3287== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3287==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==3287==
==3287== Process terminating with default action of signal 11 (SIGSEGV)
==3287== Access not within mapped region at address 0x0
==3287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3287== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3287== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3287== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3287== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3287== by 0x8062D5B: main (nginx.c:385)
==3287== If you believe this happened as a result of a stack
==3287== overflow in your program's main thread (unlikely but
==3287== possible), you can try to increase the size of the
==3287== main thread stack using the --main-stacksize= flag.
==3287== The main thread stack size used in this run was 8388608.
==3287== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,862
==3287== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3287== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3287== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3287== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3287== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3287== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3287== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3287== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3287== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3287== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3287== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3287== by 0x40BB675: trace_state (lj_trace.c:690)
==3287== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3287== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3287== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3287== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3287== by 0x407FA29: lua_resume (lj_api.c:1296)
==3287== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3287== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3287== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3287== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3287== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3287== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3287== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3287== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3287== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3287== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3287== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3287== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3287== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3287== by 0x8062D5B: main (nginx.c:385)
==3287==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 6: just hit match limit ==3299== Invalid read of size 4
==3299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3299== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3299== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3299== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3299== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3299== by 0x8062D5B: main (nginx.c:385)
==3299== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3299==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 6: just hit match limit ==3299==
==3299== Process terminating with default action of signal 11 (SIGSEGV)
==3299== Access not within mapped region at address 0x0
==3299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3299== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3299== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3299== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3299== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3299== by 0x8062D5B: main (nginx.c:385)
==3299== If you believe this happened as a result of a stack
==3299== overflow in your program's main thread (unlikely but
==3299== possible), you can try to increase the size of the
==3299== main thread stack using the --main-stacksize= flag.
==3299== The main thread stack size used in this run was 8388608.
==3299== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,883
==3299== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3299== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3299== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3299== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3299== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3299== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3299== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3299== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3299== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3299== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3299== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3299== by 0x40BB675: trace_state (lj_trace.c:690)
==3299== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3299== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3299== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3299== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3299== by 0x407FA29: lua_resume (lj_api.c:1296)
==3299== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3299== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3299== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==3299== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3299== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3299== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3299== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3299== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3299== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3299== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3299== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3299== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3299== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3299== by 0x8062D5B: main (nginx.c:385)
==3299==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 6: just hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 6: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
047-match-jit.t TEST 6: just hit match limit ==3320== Invalid read of size 4
==3320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3320== by 0x8062D5B: main (nginx.c:385)
==3320== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3320==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 6: just hit match limit ==3320==
==3320== Process terminating with default action of signal 11 (SIGSEGV)
==3320== Access not within mapped region at address 0x0
==3320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3320== by 0x8062D5B: main (nginx.c:385)
==3320== If you believe this happened as a result of a stack
==3320== overflow in your program's main thread (unlikely but
==3320== possible), you can try to increase the size of the
==3320== main thread stack using the --main-stacksize= flag.
==3320== The main thread stack size used in this run was 8388608.
==3320== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,883
==3320== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3320== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3320== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3320== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3320== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3320== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3320== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3320== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3320== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3320== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3320== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3320== by 0x40BB675: trace_state (lj_trace.c:690)
==3320== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3320== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3320== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3320== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3320== by 0x407FA29: lua_resume (lj_api.c:1296)
==3320== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3320== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3320== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==3320== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3320== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3320== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3320== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3320== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3320== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3320== by 0x8062D5B: main (nginx.c:385)
==3320==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 6: just hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 6: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
047-match-jit.t TEST 7: just not hit match limit ==3333== Invalid read of size 4
==3333== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3333== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3333== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3333== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3333== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3333== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3333== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3333== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3333== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3333== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3333== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3333== by 0x8062D5B: main (nginx.c:385)
==3333== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3333==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 7: just not hit match limit ==3333==
==3333== Process terminating with default action of signal 11 (SIGSEGV)
==3333== Access not within mapped region at address 0x0
==3333== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3333== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3333== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3333== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3333== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3333== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3333== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3333== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3333== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3333== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3333== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3333== by 0x8062D5B: main (nginx.c:385)
==3333== If you believe this happened as a result of a stack
==3333== overflow in your program's main thread (unlikely but
==3333== possible), you can try to increase the size of the
==3333== main thread stack using the --main-stacksize= flag.
==3333== The main thread stack size used in this run was 8388608.
==3333== 1,024 bytes in 1 blocks are definitely lost in loss record 2,916 of 3,044
==3333== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3333== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3333== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3333== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3333== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3333== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3333== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3333== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3333== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3333== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3333== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3333== by 0x40BB675: trace_state (lj_trace.c:690)
==3333== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3333== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3333== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3333== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3333== by 0x407FA29: lua_resume (lj_api.c:1296)
==3333== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3333== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3333== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==3333== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3333== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3333== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3333== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3333== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3333== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3333== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3333== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3333== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3333== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3333== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3333== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3333== by 0x8062D5B: main (nginx.c:385)
==3333==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 7: just not hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 7: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
047-match-jit.t TEST 7: just not hit match limit ==3354== Invalid read of size 4
==3354== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3354== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3354== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3354== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3354== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3354== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3354== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3354== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3354== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3354== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3354== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3354== by 0x8062D5B: main (nginx.c:385)
==3354== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3354==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 7: just not hit match limit ==3354==
==3354== Process terminating with default action of signal 11 (SIGSEGV)
==3354== Access not within mapped region at address 0x0
==3354== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3354== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3354== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3354== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3354== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3354== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3354== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3354== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3354== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3354== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3354== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3354== by 0x8062D5B: main (nginx.c:385)
==3354== If you believe this happened as a result of a stack
==3354== overflow in your program's main thread (unlikely but
==3354== possible), you can try to increase the size of the
==3354== main thread stack using the --main-stacksize= flag.
==3354== The main thread stack size used in this run was 8388608.
==3354== 1,024 bytes in 1 blocks are definitely lost in loss record 2,916 of 3,044
==3354== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3354== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3354== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3354== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3354== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3354== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3354== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3354== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3354== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3354== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3354== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3354== by 0x40BB675: trace_state (lj_trace.c:690)
==3354== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3354== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3354== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3354== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3354== by 0x407FA29: lua_resume (lj_api.c:1296)
==3354== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3354== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3354== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==3354== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3354== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3354== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3354== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3354== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3354== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3354== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3354== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3354== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3354== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3354== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3354== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3354== by 0x8062D5B: main (nginx.c:385)
==3354==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 7: just not hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 7: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
047-match-jit.t TEST 4: not matched with jo ==3366== Invalid read of size 4
==3366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3366== by 0x8062D5B: main (nginx.c:385)
==3366== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3366==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 4: not matched with jo ==3366==
==3366== Process terminating with default action of signal 11 (SIGSEGV)
==3366== Access not within mapped region at address 0x0
==3366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3366== by 0x8062D5B: main (nginx.c:385)
==3366== If you believe this happened as a result of a stack
==3366== overflow in your program's main thread (unlikely but
==3366== possible), you can try to increase the size of the
==3366== main thread stack using the --main-stacksize= flag.
==3366== The main thread stack size used in this run was 8388608.
==3366== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,876
==3366== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3366== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3366== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3366== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3366== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3366== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3366== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3366== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3366== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3366== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3366== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3366== by 0x40BB675: trace_state (lj_trace.c:690)
==3366== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3366== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3366== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3366== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3366== by 0x407FA29: lua_resume (lj_api.c:1296)
==3366== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3366== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3366== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3366== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3366== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3366== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3366== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3366== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3366== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3366== by 0x8062D5B: main (nginx.c:385)
==3366==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 4: not matched with jo ==3388== Invalid read of size 4
==3388== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3388== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3388== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3388== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3388== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3388== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3388== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3388== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3388== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3388== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3388== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3388== by 0x8062D5B: main (nginx.c:385)
==3388== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3388==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 4: not matched with jo ==3388==
==3388== Process terminating with default action of signal 11 (SIGSEGV)
==3388== Access not within mapped region at address 0x0
==3388== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3388== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3388== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3388== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3388== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3388== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3388== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3388== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3388== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3388== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3388== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3388== by 0x8062D5B: main (nginx.c:385)
==3388== If you believe this happened as a result of a stack
==3388== overflow in your program's main thread (unlikely but
==3388== possible), you can try to increase the size of the
==3388== main thread stack using the --main-stacksize= flag.
==3388== The main thread stack size used in this run was 8388608.
==3388== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,876
==3388== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3388== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3388== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3388== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3388== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3388== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3388== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3388== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3388== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3388== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3388== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3388== by 0x40BB675: trace_state (lj_trace.c:690)
==3388== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3388== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3388== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3388== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3388== by 0x407FA29: lua_resume (lj_api.c:1296)
==3388== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3388== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3388== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3388== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3388== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3388== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3388== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3388== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3388== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3388== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3388== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3388== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3388== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3388== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3388== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3388== by 0x8062D5B: main (nginx.c:385)
==3388==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 4: not matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
047-match-jit.t TEST 1: matched with j ==3400== Invalid read of size 4
==3400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3400== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3400== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3400== by 0x8062D5B: main (nginx.c:385)
==3400== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3400==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 1: matched with j ==3400==
==3400== Process terminating with default action of signal 11 (SIGSEGV)
==3400== Access not within mapped region at address 0x0
==3400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3400== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3400== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3400== by 0x8062D5B: main (nginx.c:385)
==3400== If you believe this happened as a result of a stack
==3400== overflow in your program's main thread (unlikely but
==3400== possible), you can try to increase the size of the
==3400== main thread stack using the --main-stacksize= flag.
==3400== The main thread stack size used in this run was 8388608.
==3400== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==3400== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3400== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3400== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3400== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3400== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3400== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3400== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3400== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3400== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3400== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3400== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3400== by 0x40BB675: trace_state (lj_trace.c:690)
==3400== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3400== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3400== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3400== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3400== by 0x407FA29: lua_resume (lj_api.c:1296)
==3400== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3400== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3400== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3400== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3400== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3400== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3400== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3400== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3400== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3400== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3400== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3400== by 0x8062D5B: main (nginx.c:385)
==3400==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 1: matched with j ==3421== Invalid read of size 4
==3421== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3421== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3421== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3421== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3421== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3421== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3421== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3421== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3421== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3421== by 0x8062D5B: main (nginx.c:385)
==3421== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3421==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 1: matched with j ==3421==
==3421== Process terminating with default action of signal 11 (SIGSEGV)
==3421== Access not within mapped region at address 0x0
==3421== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3421== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3421== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3421== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3421== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3421== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3421== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3421== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3421== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3421== by 0x8062D5B: main (nginx.c:385)
==3421== If you believe this happened as a result of a stack
==3421== overflow in your program's main thread (unlikely but
==3421== possible), you can try to increase the size of the
==3421== main thread stack using the --main-stacksize= flag.
==3421== The main thread stack size used in this run was 8388608.
==3421== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,859
==3421== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3421== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3421== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3421== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3421== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3421== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3421== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3421== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3421== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3421== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3421== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3421== by 0x40BB675: trace_state (lj_trace.c:690)
==3421== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3421== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3421== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3421== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3421== by 0x407FA29: lua_resume (lj_api.c:1296)
==3421== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3421== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3421== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3421== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3421== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3421== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3421== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3421== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3421== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3421== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3421== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3421== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3421== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3421== by 0x8062D5B: main (nginx.c:385)
==3421==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 5: bad pattern ==3433== Invalid read of size 4
==3433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3433== by 0x8062D5B: main (nginx.c:385)
==3433== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3433==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 5: bad pattern ==3433==
==3433== Process terminating with default action of signal 11 (SIGSEGV)
==3433== Access not within mapped region at address 0x0
==3433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3433== by 0x8062D5B: main (nginx.c:385)
==3433== If you believe this happened as a result of a stack
==3433== overflow in your program's main thread (unlikely but
==3433== possible), you can try to increase the size of the
==3433== main thread stack using the --main-stacksize= flag.
==3433== The main thread stack size used in this run was 8388608.
==3433== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,854
==3433== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3433== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3433== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3433== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3433== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3433== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3433== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3433== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3433== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3433== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3433== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3433== by 0x40BB675: trace_state (lj_trace.c:690)
==3433== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3433== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3433== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3433== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3433== by 0x407FA29: lua_resume (lj_api.c:1296)
==3433== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3433== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3433== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3433== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3433== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3433== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3433== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3433== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3433== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3433== by 0x8062D5B: main (nginx.c:385)
==3433==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
047-match-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
047-match-jit.t TEST 5: bad pattern ==3454== Invalid read of size 4
==3454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3454== by 0x8062D5B: main (nginx.c:385)
==3454== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3454==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 5: bad pattern ==3454==
==3454== Process terminating with default action of signal 11 (SIGSEGV)
==3454== Access not within mapped region at address 0x0
==3454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3454== by 0x8062D5B: main (nginx.c:385)
==3454== If you believe this happened as a result of a stack
==3454== overflow in your program's main thread (unlikely but
==3454== possible), you can try to increase the size of the
==3454== main thread stack using the --main-stacksize= flag.
==3454== The main thread stack size used in this run was 8388608.
==3454== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,854
==3454== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3454== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3454== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3454== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3454== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3454== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3454== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3454== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3454== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3454== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3454== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3454== by 0x40BB675: trace_state (lj_trace.c:690)
==3454== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3454== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3454== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3454== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3454== by 0x407FA29: lua_resume (lj_api.c:1296)
==3454== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3454== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3454== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3454== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3454== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3454== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3454== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3454== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3454== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3454== by 0x8062D5B: main (nginx.c:385)
==3454==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
047-match-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
047-match-jit.t TEST 3: matched with jo ==3466== Invalid read of size 4
==3466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3466== by 0x8062D5B: main (nginx.c:385)
==3466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 3: matched with jo ==3466==
==3466== Process terminating with default action of signal 11 (SIGSEGV)
==3466== Access not within mapped region at address 0x0
==3466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3466== by 0x8062D5B: main (nginx.c:385)
==3466== If you believe this happened as a result of a stack
==3466== overflow in your program's main thread (unlikely but
==3466== possible), you can try to increase the size of the
==3466== main thread stack using the --main-stacksize= flag.
==3466== The main thread stack size used in this run was 8388608.
==3466== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,874
==3466== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3466== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3466== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3466== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3466== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3466== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3466== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3466== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3466== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3466== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3466== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3466== by 0x40BB675: trace_state (lj_trace.c:690)
==3466== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3466== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3466== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3466== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3466== by 0x407FA29: lua_resume (lj_api.c:1296)
==3466== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3466== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3466== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3466== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3466== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3466== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3466== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3466== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3466== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3466== by 0x8062D5B: main (nginx.c:385)
==3466==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 3: matched with jo ==3487== Invalid read of size 4
==3487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3487== by 0x8062D5B: main (nginx.c:385)
==3487== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3487==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 3: matched with jo ==3487==
==3487== Process terminating with default action of signal 11 (SIGSEGV)
==3487== Access not within mapped region at address 0x0
==3487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3487== by 0x8062D5B: main (nginx.c:385)
==3487== If you believe this happened as a result of a stack
==3487== overflow in your program's main thread (unlikely but
==3487== possible), you can try to increase the size of the
==3487== main thread stack using the --main-stacksize= flag.
==3487== The main thread stack size used in this run was 8388608.
==3487== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,874
==3487== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3487== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3487== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3487== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3487== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3487== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3487== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3487== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3487== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3487== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3487== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3487== by 0x40BB675: trace_state (lj_trace.c:690)
==3487== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3487== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3487== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3487== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3487== by 0x407FA29: lua_resume (lj_api.c:1296)
==3487== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3487== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3487== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3487== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3487== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3487== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3487== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3487== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3487== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3487== by 0x8062D5B: main (nginx.c:385)
==3487==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
047-match-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 3: matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
048-match-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==3496== Invalid read of size 4
==3496== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3496== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3496== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3496== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3496== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3496== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3496== by 0x8062D5B: main (nginx.c:385)
==3496== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3496==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==3496==
==3496== Process terminating with default action of signal 11 (SIGSEGV)
==3496== Access not within mapped region at address 0x0
==3496== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3496== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3496== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3496== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3496== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3496== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3496== by 0x8062D5B: main (nginx.c:385)
==3496== If you believe this happened as a result of a stack
==3496== overflow in your program's main thread (unlikely but
==3496== possible), you can try to increase the size of the
==3496== main thread stack using the --main-stacksize= flag.
==3496== The main thread stack size used in this run was 8388608.
==3496== 1,024 bytes in 1 blocks are definitely lost in loss record 2,912 of 3,042
==3496== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3496== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3496== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3496== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3496== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3496== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3496== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3496== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3496== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3496== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3496== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3496== by 0x40BB675: trace_state (lj_trace.c:690)
==3496== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3496== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3496== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3496== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3496== by 0x407FA29: lua_resume (lj_api.c:1296)
==3496== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3496== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3496== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3496== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3496== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3496== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3496== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3496== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3496== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3496== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3496== by 0x8062D5B: main (nginx.c:385)
==3496==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==3497== Invalid read of size 4
==3497== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3497== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3497== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3497== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3497== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3497== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3497== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3497== by 0x8062D5B: main (nginx.c:385)
==3497== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3497==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==3497==
==3497== Process terminating with default action of signal 11 (SIGSEGV)
==3497== Access not within mapped region at address 0x0
==3497== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3497== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3497== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3497== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3497== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3497== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3497== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3497== by 0x8062D5B: main (nginx.c:385)
==3497== If you believe this happened as a result of a stack
==3497== overflow in your program's main thread (unlikely but
==3497== possible), you can try to increase the size of the
==3497== main thread stack using the --main-stacksize= flag.
==3497== The main thread stack size used in this run was 8388608.
==3497== 1,024 bytes in 1 blocks are definitely lost in loss record 2,912 of 3,042
==3497== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3497== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3497== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3497== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3497== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3497== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3497== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3497== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3497== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3497== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3497== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3497== by 0x40BB675: trace_state (lj_trace.c:690)
==3497== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3497== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3497== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3497== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3497== by 0x407FA29: lua_resume (lj_api.c:1296)
==3497== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3497== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3497== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3497== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3497== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3497== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3497== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3497== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3497== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3497== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3497== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3497== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3497== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3497== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3497== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3497== by 0x8062D5B: main (nginx.c:385)
==3497==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 4: matched with do ==3509== Invalid read of size 4
==3509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3509== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3509== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3509== by 0x8062D5B: main (nginx.c:385)
==3509== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3509==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 4: matched with do ==3509==
==3509== Process terminating with default action of signal 11 (SIGSEGV)
==3509== Access not within mapped region at address 0x0
==3509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3509== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3509== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3509== by 0x8062D5B: main (nginx.c:385)
==3509== If you believe this happened as a result of a stack
==3509== overflow in your program's main thread (unlikely but
==3509== possible), you can try to increase the size of the
==3509== main thread stack using the --main-stacksize= flag.
==3509== The main thread stack size used in this run was 8388608.
==3509== 1,024 bytes in 1 blocks are definitely lost in loss record 2,890 of 3,014
==3509== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3509== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3509== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3509== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3509== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3509== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3509== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3509== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3509== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3509== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3509== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3509== by 0x40BB675: trace_state (lj_trace.c:690)
==3509== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3509== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3509== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3509== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3509== by 0x407FA29: lua_resume (lj_api.c:1296)
==3509== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3509== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3509== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3509== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3509== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3509== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3509== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3509== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3509== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3509== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3509== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3509== by 0x8062D5B: main (nginx.c:385)
==3509==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 4: matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 4: matched with do - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hell
-nil
-nil
'
048-match-dfa.t TEST 4: matched with do ==3530== Invalid read of size 4
==3530== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3530== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3530== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3530== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3530== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3530== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3530== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3530== by 0x8062D5B: main (nginx.c:385)
==3530== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3530==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 4: matched with do ==3530==
==3530== Process terminating with default action of signal 11 (SIGSEGV)
==3530== Access not within mapped region at address 0x0
==3530== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3530== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3530== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3530== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3530== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3530== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3530== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3530== by 0x8062D5B: main (nginx.c:385)
==3530== If you believe this happened as a result of a stack
==3530== overflow in your program's main thread (unlikely but
==3530== possible), you can try to increase the size of the
==3530== main thread stack using the --main-stacksize= flag.
==3530== The main thread stack size used in this run was 8388608.
==3530== 1,024 bytes in 1 blocks are definitely lost in loss record 2,890 of 3,014
==3530== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3530== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3530== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3530== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3530== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3530== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3530== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3530== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3530== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3530== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3530== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3530== by 0x40BB675: trace_state (lj_trace.c:690)
==3530== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3530== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3530== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3530== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3530== by 0x407FA29: lua_resume (lj_api.c:1296)
==3530== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3530== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3530== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3530== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3530== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3530== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3530== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3530== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3530== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3530== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3530== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3530== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3530== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3530== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3530== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3530== by 0x8062D5B: main (nginx.c:385)
==3530==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 4: matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 4: matched with do - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hell
-nil
-nil
'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks ==3542== Invalid read of size 4
==3542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3542== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3542== by 0x8062D5B: main (nginx.c:385)
==3542== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3542==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks ==3542==
==3542== Process terminating with default action of signal 11 (SIGSEGV)
==3542== Access not within mapped region at address 0x0
==3542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3542== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3542== by 0x8062D5B: main (nginx.c:385)
==3542== If you believe this happened as a result of a stack
==3542== overflow in your program's main thread (unlikely but
==3542== possible), you can try to increase the size of the
==3542== main thread stack using the --main-stacksize= flag.
==3542== The main thread stack size used in this run was 8388608.
==3542== 1,024 bytes in 1 blocks are definitely lost in loss record 2,869 of 2,993
==3542== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3542== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3542== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3542== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3542== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3542== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3542== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3542== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3542== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3542== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3542== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3542== by 0x40BB675: trace_state (lj_trace.c:690)
==3542== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3542== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3542== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3542== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3542== by 0x407FA29: lua_resume (lj_api.c:1296)
==3542== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3542== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3542== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3542== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3542== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3542== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3542== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3542== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3542== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3542== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3542== by 0x8062D5B: main (nginx.c:385)
==3542==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks ==3563== Invalid read of size 4
==3563== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3563== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3563== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3563== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3563== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3563== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3563== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3563== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3563== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3563== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3563== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3563== by 0x8062D5B: main (nginx.c:385)
==3563== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3563==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks ==3563==
==3563== Process terminating with default action of signal 11 (SIGSEGV)
==3563== Access not within mapped region at address 0x0
==3563== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3563== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3563== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3563== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3563== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3563== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3563== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3563== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3563== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3563== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3563== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3563== by 0x8062D5B: main (nginx.c:385)
==3563== If you believe this happened as a result of a stack
==3563== overflow in your program's main thread (unlikely but
==3563== possible), you can try to increase the size of the
==3563== main thread stack using the --main-stacksize= flag.
==3563== The main thread stack size used in this run was 8388608.
==3563== 1,024 bytes in 1 blocks are definitely lost in loss record 2,869 of 2,993
==3563== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3563== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3563== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3563== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3563== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3563== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3563== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3563== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3563== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3563== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3563== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3563== by 0x40BB675: trace_state (lj_trace.c:690)
==3563== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3563== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3563== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3563== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3563== by 0x407FA29: lua_resume (lj_api.c:1296)
==3563== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3563== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3563== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3563== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3563== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3563== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3563== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3563== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3563== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3563== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3563== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3563== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3563== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3563== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3563== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3563== by 0x8062D5B: main (nginx.c:385)
==3563==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 3: not matched with j ==3575== Invalid read of size 4
==3575== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3575== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3575== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3575== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3575== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3575== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3575== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3575== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3575== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3575== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3575== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3575== by 0x8062D5B: main (nginx.c:385)
==3575== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3575==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 3: not matched with j ==3575==
==3575== Process terminating with default action of signal 11 (SIGSEGV)
==3575== Access not within mapped region at address 0x0
==3575== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3575== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3575== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3575== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3575== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3575== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3575== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3575== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3575== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3575== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3575== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3575== by 0x8062D5B: main (nginx.c:385)
==3575== If you believe this happened as a result of a stack
==3575== overflow in your program's main thread (unlikely but
==3575== possible), you can try to increase the size of the
==3575== main thread stack using the --main-stacksize= flag.
==3575== The main thread stack size used in this run was 8388608.
==3575== 1,024 bytes in 1 blocks are definitely lost in loss record 2,898 of 3,023
==3575== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3575== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3575== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3575== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3575== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3575== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3575== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3575== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3575== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3575== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3575== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3575== by 0x40BB675: trace_state (lj_trace.c:690)
==3575== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3575== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3575== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3575== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3575== by 0x407FA29: lua_resume (lj_api.c:1296)
==3575== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3575== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3575== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3575== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3575== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3575== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3575== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3575== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3575== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3575== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3575== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3575== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3575== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3575== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3575== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3575== by 0x8062D5B: main (nginx.c:385)
==3575==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 3: not matched with j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 3: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 3: not matched with j ==3596== Invalid read of size 4
==3596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3596== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3596== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3596== by 0x8062D5B: main (nginx.c:385)
==3596== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3596==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 3: not matched with j ==3596==
==3596== Process terminating with default action of signal 11 (SIGSEGV)
==3596== Access not within mapped region at address 0x0
==3596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3596== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3596== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3596== by 0x8062D5B: main (nginx.c:385)
==3596== If you believe this happened as a result of a stack
==3596== overflow in your program's main thread (unlikely but
==3596== possible), you can try to increase the size of the
==3596== main thread stack using the --main-stacksize= flag.
==3596== The main thread stack size used in this run was 8388608.
==3596== 1,024 bytes in 1 blocks are definitely lost in loss record 2,898 of 3,023
==3596== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3596== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3596== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3596== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3596== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3596== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3596== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3596== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3596== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3596== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3596== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3596== by 0x40BB675: trace_state (lj_trace.c:690)
==3596== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3596== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3596== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3596== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3596== by 0x407FA29: lua_resume (lj_api.c:1296)
==3596== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3596== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3596== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3596== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3596== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3596== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3596== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3596== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3596== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3596== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3596== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3596== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3596== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3596== by 0x8062D5B: main (nginx.c:385)
==3596==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 3: not matched with j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 3: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks ==3608== Invalid read of size 4
==3608== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3608== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3608== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3608== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3608== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3608== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3608== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3608== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3608== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3608== by 0x8062D5B: main (nginx.c:385)
==3608== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3608==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks ==3608==
==3608== Process terminating with default action of signal 11 (SIGSEGV)
==3608== Access not within mapped region at address 0x0
==3608== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3608== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3608== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3608== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3608== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3608== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3608== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3608== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3608== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3608== by 0x8062D5B: main (nginx.c:385)
==3608== If you believe this happened as a result of a stack
==3608== overflow in your program's main thread (unlikely but
==3608== possible), you can try to increase the size of the
==3608== main thread stack using the --main-stacksize= flag.
==3608== The main thread stack size used in this run was 8388608.
==3608== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,869
==3608== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3608== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3608== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3608== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3608== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3608== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3608== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3608== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3608== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3608== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3608== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3608== by 0x40BB675: trace_state (lj_trace.c:690)
==3608== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3608== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3608== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3608== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3608== by 0x407FA29: lua_resume (lj_api.c:1296)
==3608== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3608== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3608== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3608== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3608== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3608== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3608== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3608== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3608== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3608== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3608== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3608== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3608== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3608== by 0x8062D5B: main (nginx.c:385)
==3608==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks ==3629== Invalid read of size 4
==3629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3629== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3629== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3629== by 0x8062D5B: main (nginx.c:385)
==3629== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3629==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks ==3629==
==3629== Process terminating with default action of signal 11 (SIGSEGV)
==3629== Access not within mapped region at address 0x0
==3629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3629== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3629== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3629== by 0x8062D5B: main (nginx.c:385)
==3629== If you believe this happened as a result of a stack
==3629== overflow in your program's main thread (unlikely but
==3629== possible), you can try to increase the size of the
==3629== main thread stack using the --main-stacksize= flag.
==3629== The main thread stack size used in this run was 8388608.
==3629== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,869
==3629== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3629== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3629== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3629== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3629== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3629== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3629== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3629== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3629== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3629== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3629== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3629== by 0x40BB675: trace_state (lj_trace.c:690)
==3629== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3629== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3629== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3629== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3629== by 0x407FA29: lua_resume (lj_api.c:1296)
==3629== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3629== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3629== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3629== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3629== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3629== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3629== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3629== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3629== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3629== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3629== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3629== by 0x8062D5B: main (nginx.c:385)
==3629==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 5: not matched with do ==3641== Invalid read of size 4
==3641== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3641== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3641== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3641== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3641== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3641== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3641== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3641== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3641== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3641== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3641== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3641== by 0x8062D5B: main (nginx.c:385)
==3641== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3641==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 5: not matched with do ==3641==
==3641== Process terminating with default action of signal 11 (SIGSEGV)
==3641== Access not within mapped region at address 0x0
==3641== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3641== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3641== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3641== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3641== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3641== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3641== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3641== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3641== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3641== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3641== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3641== by 0x8062D5B: main (nginx.c:385)
==3641== If you believe this happened as a result of a stack
==3641== overflow in your program's main thread (unlikely but
==3641== possible), you can try to increase the size of the
==3641== main thread stack using the --main-stacksize= flag.
==3641== The main thread stack size used in this run was 8388608.
==3641== 1,024 bytes in 1 blocks are definitely lost in loss record 2,780 of 2,884
==3641== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3641== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3641== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3641== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3641== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3641== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3641== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3641== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3641== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3641== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3641== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3641== by 0x40BB675: trace_state (lj_trace.c:690)
==3641== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3641== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3641== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3641== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3641== by 0x407FA29: lua_resume (lj_api.c:1296)
==3641== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3641== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3641== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3641== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3641== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3641== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3641== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3641== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3641== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3641== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3641== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3641== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3641== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3641== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3641== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3641== by 0x8062D5B: main (nginx.c:385)
==3641==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 5: not matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 5: not matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 5: not matched with do ==3662== Invalid read of size 4
==3662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3662== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3662== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3662== by 0x8062D5B: main (nginx.c:385)
==3662== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3662==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 5: not matched with do ==3662==
==3662== Process terminating with default action of signal 11 (SIGSEGV)
==3662== Access not within mapped region at address 0x0
==3662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3662== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3662== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3662== by 0x8062D5B: main (nginx.c:385)
==3662== If you believe this happened as a result of a stack
==3662== overflow in your program's main thread (unlikely but
==3662== possible), you can try to increase the size of the
==3662== main thread stack using the --main-stacksize= flag.
==3662== The main thread stack size used in this run was 8388608.
==3662== 1,024 bytes in 1 blocks are definitely lost in loss record 2,780 of 2,884
==3662== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3662== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3662== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3662== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3662== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3662== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3662== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3662== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3662== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3662== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3662== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3662== by 0x40BB675: trace_state (lj_trace.c:690)
==3662== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3662== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3662== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3662== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3662== by 0x407FA29: lua_resume (lj_api.c:1296)
==3662== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3662== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3662== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3662== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3662== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3662== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3662== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3662== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3662== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3662== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3662== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3662== by 0x8062D5B: main (nginx.c:385)
==3662==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 5: not matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 5: not matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 2: matched with d + j ==3674== Invalid read of size 4
==3674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3674== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3674== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3674== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3674== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3674== by 0x8062D5B: main (nginx.c:385)
==3674== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3674==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 2: matched with d + j ==3674==
==3674== Process terminating with default action of signal 11 (SIGSEGV)
==3674== Access not within mapped region at address 0x0
==3674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3674== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3674== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3674== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3674== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3674== by 0x8062D5B: main (nginx.c:385)
==3674== If you believe this happened as a result of a stack
==3674== overflow in your program's main thread (unlikely but
==3674== possible), you can try to increase the size of the
==3674== main thread stack using the --main-stacksize= flag.
==3674== The main thread stack size used in this run was 8388608.
==3674== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,871
==3674== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3674== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3674== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3674== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3674== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3674== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3674== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3674== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3674== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3674== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3674== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3674== by 0x40BB675: trace_state (lj_trace.c:690)
==3674== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3674== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3674== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3674== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3674== by 0x407FA29: lua_resume (lj_api.c:1296)
==3674== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3674== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3674== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3674== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3674== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3674== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3674== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3674== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3674== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3674== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3674== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3674== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3674== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3674== by 0x8062D5B: main (nginx.c:385)
==3674==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 2: matched with d + j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 2: matched with d + j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 2: matched with d + j ==3695== Invalid read of size 4
==3695== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3695== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3695== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3695== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3695== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3695== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3695== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3695== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3695== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3695== by 0x8062D5B: main (nginx.c:385)
==3695== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3695==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
048-match-dfa.t TEST 2: matched with d + j ==3695==
==3695== Process terminating with default action of signal 11 (SIGSEGV)
==3695== Access not within mapped region at address 0x0
==3695== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3695== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3695== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3695== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3695== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3695== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3695== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3695== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3695== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3695== by 0x8062D5B: main (nginx.c:385)
==3695== If you believe this happened as a result of a stack
==3695== overflow in your program's main thread (unlikely but
==3695== possible), you can try to increase the size of the
==3695== main thread stack using the --main-stacksize= flag.
==3695== The main thread stack size used in this run was 8388608.

048-match-dfa.t TEST 2: matched with d + j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 2: matched with d + j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hell
'
049-gmatch-jit.t TEST 6: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3704== Invalid read of size 4
==3704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3704== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3704== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3704== by 0x8062D5B: main (nginx.c:385)
==3704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 6: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3704==
==3704== Process terminating with default action of signal 11 (SIGSEGV)
==3704== Access not within mapped region at address 0x0
==3704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3704== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3704== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3704== by 0x8062D5B: main (nginx.c:385)
==3704== If you believe this happened as a result of a stack
==3704== overflow in your program's main thread (unlikely but
==3704== possible), you can try to increase the size of the
==3704== main thread stack using the --main-stacksize= flag.
==3704== The main thread stack size used in this run was 8388608.
==3704== 1,024 bytes in 1 blocks are definitely lost in loss record 2,897 of 3,025
==3704== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3704== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3704== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3704== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3704== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3704== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3704== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3704== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3704== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3704== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3704== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3704== by 0x40BB675: trace_state (lj_trace.c:690)
==3704== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3704== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3704== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3704== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3704== by 0x407FA29: lua_resume (lj_api.c:1296)
==3704== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3704== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3704== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3704== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3704== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3704== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3704== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3704== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3704== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3704== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3704== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3704== by 0x8062D5B: main (nginx.c:385)
==3704==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 6: fail to match + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 6: fail to match + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 6: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3705== Invalid read of size 4
==3705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3705== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3705== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3705== by 0x8062D5B: main (nginx.c:385)
==3705== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3705==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 6: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3705==
==3705== Process terminating with default action of signal 11 (SIGSEGV)
==3705== Access not within mapped region at address 0x0
==3705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3705== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3705== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3705== by 0x8062D5B: main (nginx.c:385)
==3705== If you believe this happened as a result of a stack
==3705== overflow in your program's main thread (unlikely but
==3705== possible), you can try to increase the size of the
==3705== main thread stack using the --main-stacksize= flag.
==3705== The main thread stack size used in this run was 8388608.
==3705== 1,024 bytes in 1 blocks are definitely lost in loss record 2,897 of 3,025
==3705== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3705== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3705== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3705== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3705== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3705== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3705== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3705== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3705== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3705== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3705== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3705== by 0x40BB675: trace_state (lj_trace.c:690)
==3705== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3705== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3705== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3705== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3705== by 0x407FA29: lua_resume (lj_api.c:1296)
==3705== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3705== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3705== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3705== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3705== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3705== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3705== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3705== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3705== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3705== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3705== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3705== by 0x8062D5B: main (nginx.c:385)
==3705==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 6: fail to match + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 6: fail to match + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 6: fail to match + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 1: gmatch matched ==3717== Invalid read of size 4
==3717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3717== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3717== by 0x8062D5B: main (nginx.c:385)
==3717== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3717==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 1: gmatch matched ==3717==
==3717== Process terminating with default action of signal 11 (SIGSEGV)
==3717== Access not within mapped region at address 0x0
==3717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3717== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3717== by 0x8062D5B: main (nginx.c:385)
==3717== If you believe this happened as a result of a stack
==3717== overflow in your program's main thread (unlikely but
==3717== possible), you can try to increase the size of the
==3717== main thread stack using the --main-stacksize= flag.
==3717== The main thread stack size used in this run was 8388608.
==3717== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,856
==3717== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3717== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3717== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3717== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3717== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3717== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3717== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3717== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3717== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3717== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3717== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3717== by 0x40BB675: trace_state (lj_trace.c:690)
==3717== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3717== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3717== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3717== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3717== by 0x407FA29: lua_resume (lj_api.c:1296)
==3717== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3717== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3717== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3717== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3717== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3717== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3717== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3717== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3717== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3717== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3717== by 0x8062D5B: main (nginx.c:385)
==3717==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 1: gmatch matched - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 1: gmatch matched ==3738== Invalid read of size 4
==3738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3738== by 0x8062D5B: main (nginx.c:385)
==3738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 1: gmatch matched ==3738==
==3738== Process terminating with default action of signal 11 (SIGSEGV)
==3738== Access not within mapped region at address 0x0
==3738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3738== by 0x8062D5B: main (nginx.c:385)
==3738== If you believe this happened as a result of a stack
==3738== overflow in your program's main thread (unlikely but
==3738== possible), you can try to increase the size of the
==3738== main thread stack using the --main-stacksize= flag.
==3738== The main thread stack size used in this run was 8388608.
==3738== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,856
==3738== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3738== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3738== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3738== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3738== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3738== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3738== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3738== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3738== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3738== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3738== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3738== by 0x40BB675: trace_state (lj_trace.c:690)
==3738== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3738== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3738== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3738== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3738== by 0x407FA29: lua_resume (lj_api.c:1296)
==3738== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3738== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3738== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3738== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3738== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3738== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3738== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3738== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3738== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3738== by 0x8062D5B: main (nginx.c:385)
==3738==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 1: gmatch matched - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 9: bad pattern ==3749== Invalid read of size 4
==3749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3749== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3749== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3749== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3749== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3749== by 0x8062D5B: main (nginx.c:385)
==3749== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3749==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 9: bad pattern ==3749==
==3749== Process terminating with default action of signal 11 (SIGSEGV)
==3749== Access not within mapped region at address 0x0
==3749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3749== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3749== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3749== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3749== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3749== by 0x8062D5B: main (nginx.c:385)
==3749== If you believe this happened as a result of a stack
==3749== overflow in your program's main thread (unlikely but
==3749== possible), you can try to increase the size of the
==3749== main thread stack using the --main-stacksize= flag.
==3749== The main thread stack size used in this run was 8388608.
==3749== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,862
==3749== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3749== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3749== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3749== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3749== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3749== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3749== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3749== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3749== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3749== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3749== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3749== by 0x40BB675: trace_state (lj_trace.c:690)
==3749== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3749== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3749== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3749== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3749== by 0x407FA29: lua_resume (lj_api.c:1296)
==3749== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3749== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3749== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3749== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3749== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3749== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3749== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3749== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3749== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3749== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3749== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3749== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3749== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3749== by 0x8062D5B: main (nginx.c:385)
==3749==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 9: bad pattern - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 9: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 9: bad pattern ==3771== Invalid read of size 4
==3771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3771== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3771== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3771== by 0x8062D5B: main (nginx.c:385)
==3771== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3771==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 9: bad pattern ==3771==
==3771== Process terminating with default action of signal 11 (SIGSEGV)
==3771== Access not within mapped region at address 0x0
==3771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3771== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3771== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3771== by 0x8062D5B: main (nginx.c:385)
==3771== If you believe this happened as a result of a stack
==3771== overflow in your program's main thread (unlikely but
==3771== possible), you can try to increase the size of the
==3771== main thread stack using the --main-stacksize= flag.
==3771== The main thread stack size used in this run was 8388608.
==3771== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,862
==3771== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3771== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3771== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3771== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3771== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3771== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3771== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3771== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3771== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3771== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3771== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3771== by 0x40BB675: trace_state (lj_trace.c:690)
==3771== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3771== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3771== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3771== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3771== by 0x407FA29: lua_resume (lj_api.c:1296)
==3771== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3771== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3771== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3771== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3771== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3771== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3771== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3771== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3771== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3771== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3771== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3771== by 0x8062D5B: main (nginx.c:385)
==3771==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 9: bad pattern - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 9: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 2: fail to match ==3783== Invalid read of size 4
==3783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3783== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3783== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3783== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3783== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3783== by 0x8062D5B: main (nginx.c:385)
==3783== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3783==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 2: fail to match ==3783==
==3783== Process terminating with default action of signal 11 (SIGSEGV)
==3783== Access not within mapped region at address 0x0
==3783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3783== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3783== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3783== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3783== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3783== by 0x8062D5B: main (nginx.c:385)
==3783== If you believe this happened as a result of a stack
==3783== overflow in your program's main thread (unlikely but
==3783== possible), you can try to increase the size of the
==3783== main thread stack using the --main-stacksize= flag.
==3783== The main thread stack size used in this run was 8388608.
==3783== 1,024 bytes in 1 blocks are definitely lost in loss record 2,811 of 2,917
==3783== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3783== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3783== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3783== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3783== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3783== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3783== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3783== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3783== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3783== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3783== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3783== by 0x40BB675: trace_state (lj_trace.c:690)
==3783== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3783== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3783== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3783== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3783== by 0x407FA29: lua_resume (lj_api.c:1296)
==3783== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3783== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3783== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3783== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3783== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3783== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3783== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3783== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3783== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3783== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3783== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3783== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3783== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3783== by 0x8062D5B: main (nginx.c:385)
==3783==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 2: fail to match - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 2: fail to match - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 2: fail to match ==3804== Invalid read of size 4
==3804== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3804== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3804== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3804== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3804== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3804== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3804== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3804== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3804== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3804== by 0x8062D5B: main (nginx.c:385)
==3804== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3804==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 2: fail to match ==3804==
==3804== Process terminating with default action of signal 11 (SIGSEGV)
==3804== Access not within mapped region at address 0x0
==3804== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3804== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3804== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3804== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3804== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3804== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3804== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3804== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3804== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3804== by 0x8062D5B: main (nginx.c:385)
==3804== If you believe this happened as a result of a stack
==3804== overflow in your program's main thread (unlikely but
==3804== possible), you can try to increase the size of the
==3804== main thread stack using the --main-stacksize= flag.
==3804== The main thread stack size used in this run was 8388608.
==3804== 1,024 bytes in 1 blocks are definitely lost in loss record 2,811 of 2,917
==3804== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3804== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3804== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3804== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3804== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3804== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3804== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3804== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3804== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3804== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3804== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3804== by 0x40BB675: trace_state (lj_trace.c:690)
==3804== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3804== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3804== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3804== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3804== by 0x407FA29: lua_resume (lj_api.c:1296)
==3804== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3804== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3804== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3804== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3804== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3804== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3804== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3804== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3804== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3804== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3804== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3804== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3804== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3804== by 0x8062D5B: main (nginx.c:385)
==3804==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 2: fail to match - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 2: fail to match - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 5: gmatch matched + o ==3816== Invalid read of size 4
==3816== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3816== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3816== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3816== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3816== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3816== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3816== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3816== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3816== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3816== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3816== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3816== by 0x8062D5B: main (nginx.c:385)
==3816== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3816==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 5: gmatch matched + o ==3816==
==3816== Process terminating with default action of signal 11 (SIGSEGV)
==3816== Access not within mapped region at address 0x0
==3816== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3816== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3816== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3816== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3816== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3816== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3816== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3816== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3816== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3816== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3816== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3816== by 0x8062D5B: main (nginx.c:385)
==3816== If you believe this happened as a result of a stack
==3816== overflow in your program's main thread (unlikely but
==3816== possible), you can try to increase the size of the
==3816== main thread stack using the --main-stacksize= flag.
==3816== The main thread stack size used in this run was 8388608.
==3816== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==3816== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3816== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3816== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3816== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3816== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3816== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3816== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3816== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3816== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3816== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3816== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3816== by 0x40BB675: trace_state (lj_trace.c:690)
==3816== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3816== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3816== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3816== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3816== by 0x407FA29: lua_resume (lj_api.c:1296)
==3816== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3816== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3816== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3816== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3816== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3816== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3816== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3816== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3816== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3816== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3816== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3816== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3816== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3816== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3816== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3816== by 0x8062D5B: main (nginx.c:385)
==3816==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 5: gmatch matched + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 5: gmatch matched + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 5: gmatch matched + o ==3837== Invalid read of size 4
==3837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3837== by 0x8062D5B: main (nginx.c:385)
==3837== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3837==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 5: gmatch matched + o ==3837==
==3837== Process terminating with default action of signal 11 (SIGSEGV)
==3837== Access not within mapped region at address 0x0
==3837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3837== by 0x8062D5B: main (nginx.c:385)
==3837== If you believe this happened as a result of a stack
==3837== overflow in your program's main thread (unlikely but
==3837== possible), you can try to increase the size of the
==3837== main thread stack using the --main-stacksize= flag.
==3837== The main thread stack size used in this run was 8388608.
==3837== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,886
==3837== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3837== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3837== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3837== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3837== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3837== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3837== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3837== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3837== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3837== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3837== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3837== by 0x40BB675: trace_state (lj_trace.c:690)
==3837== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3837== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3837== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3837== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3837== by 0x407FA29: lua_resume (lj_api.c:1296)
==3837== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3837== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3837== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3837== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3837== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3837== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3837== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3837== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3837== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3837== by 0x8062D5B: main (nginx.c:385)
==3837==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 5: gmatch matched + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 5: gmatch matched + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 5: gmatch matched + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o ==3849== Invalid read of size 4
==3849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3849== by 0x8062D5B: main (nginx.c:385)
==3849== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3849==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o ==3849==
==3849== Process terminating with default action of signal 11 (SIGSEGV)
==3849== Access not within mapped region at address 0x0
==3849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3849== by 0x8062D5B: main (nginx.c:385)
==3849== If you believe this happened as a result of a stack
==3849== overflow in your program's main thread (unlikely but
==3849== possible), you can try to increase the size of the
==3849== main thread stack using the --main-stacksize= flag.
==3849== The main thread stack size used in this run was 8388608.
==3849== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,885
==3849== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3849== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3849== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3849== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3849== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3849== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3849== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3849== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3849== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3849== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3849== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3849== by 0x40BB675: trace_state (lj_trace.c:690)
==3849== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3849== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3849== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3849== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3849== by 0x407FA29: lua_resume (lj_api.c:1296)
==3849== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3849== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3849== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3849== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3849== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3849== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3849== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3849== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3849== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3849== by 0x8062D5B: main (nginx.c:385)
==3849==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o ==3870== Invalid read of size 4
==3870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3870== by 0x8062D5B: main (nginx.c:385)
==3870== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3870==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o ==3870==
==3870== Process terminating with default action of signal 11 (SIGSEGV)
==3870== Access not within mapped region at address 0x0
==3870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3870== by 0x8062D5B: main (nginx.c:385)
==3870== If you believe this happened as a result of a stack
==3870== overflow in your program's main thread (unlikely but
==3870== possible), you can try to increase the size of the
==3870== main thread stack using the --main-stacksize= flag.
==3870== The main thread stack size used in this run was 8388608.
==3870== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,885
==3870== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3870== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3870== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3870== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3870== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3870== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3870== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3870== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3870== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3870== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3870== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3870== by 0x40BB675: trace_state (lj_trace.c:690)
==3870== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3870== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3870== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3870== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3870== by 0x407FA29: lua_resume (lj_api.c:1296)
==3870== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3870== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3870== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3870== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3870== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3870== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3870== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3870== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3870== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3870== by 0x8062D5B: main (nginx.c:385)
==3870==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o ==3882== Invalid read of size 4
==3882== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3882== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3882== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3882== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3882== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3882== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3882== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3882== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3882== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3882== by 0x8062D5B: main (nginx.c:385)
==3882== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3882==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o ==3882==
==3882== Process terminating with default action of signal 11 (SIGSEGV)
==3882== Access not within mapped region at address 0x0
==3882== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3882== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3882== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3882== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3882== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3882== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3882== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3882== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3882== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3882== by 0x8062D5B: main (nginx.c:385)
==3882== If you believe this happened as a result of a stack
==3882== overflow in your program's main thread (unlikely but
==3882== possible), you can try to increase the size of the
==3882== main thread stack using the --main-stacksize= flag.
==3882== The main thread stack size used in this run was 8388608.
==3882== 1,024 bytes in 1 blocks are definitely lost in loss record 2,775 of 2,882
==3882== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3882== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3882== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3882== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3882== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3882== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3882== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3882== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3882== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3882== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3882== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3882== by 0x40BB675: trace_state (lj_trace.c:690)
==3882== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3882== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3882== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3882== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3882== by 0x407FA29: lua_resume (lj_api.c:1296)
==3882== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3882== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3882== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3882== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3882== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3882== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3882== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3882== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3882== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3882== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3882== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3882== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3882== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3882== by 0x8062D5B: main (nginx.c:385)
==3882==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o ==3903== Invalid read of size 4
==3903== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3903== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3903== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3903== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3903== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3903== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3903== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3903== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3903== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3903== by 0x8062D5B: main (nginx.c:385)
==3903== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3903==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o ==3903==
==3903== Process terminating with default action of signal 11 (SIGSEGV)
==3903== Access not within mapped region at address 0x0
==3903== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3903== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3903== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3903== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3903== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3903== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3903== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3903== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3903== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3903== by 0x8062D5B: main (nginx.c:385)
==3903== If you believe this happened as a result of a stack
==3903== overflow in your program's main thread (unlikely but
==3903== possible), you can try to increase the size of the
==3903== main thread stack using the --main-stacksize= flag.
==3903== The main thread stack size used in this run was 8388608.
==3903== 1,024 bytes in 1 blocks are definitely lost in loss record 2,775 of 2,882
==3903== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3903== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3903== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3903== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3903== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3903== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3903== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3903== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3903== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3903== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3903== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3903== by 0x40BB675: trace_state (lj_trace.c:690)
==3903== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3903== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3903== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3903== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3903== by 0x407FA29: lua_resume (lj_api.c:1296)
==3903== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3903== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3903== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3903== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3903== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3903== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3903== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3903== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3903== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3903== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3903== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3903== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3903== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3903== by 0x8062D5B: main (nginx.c:385)
==3903==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 3: gmatch matched but no iterate ==3915== Invalid read of size 4
==3915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3915== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3915== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3915== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3915== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3915== by 0x8062D5B: main (nginx.c:385)
==3915== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3915==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 3: gmatch matched but no iterate ==3915==
==3915== Process terminating with default action of signal 11 (SIGSEGV)
==3915== Access not within mapped region at address 0x0
==3915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3915== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3915== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3915== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3915== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3915== by 0x8062D5B: main (nginx.c:385)
==3915== If you believe this happened as a result of a stack
==3915== overflow in your program's main thread (unlikely but
==3915== possible), you can try to increase the size of the
==3915== main thread stack using the --main-stacksize= flag.
==3915== The main thread stack size used in this run was 8388608.
==3915== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,864
==3915== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3915== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3915== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3915== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3915== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3915== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3915== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3915== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3915== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3915== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3915== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3915== by 0x40BB675: trace_state (lj_trace.c:690)
==3915== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3915== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3915== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3915== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3915== by 0x407FA29: lua_resume (lj_api.c:1296)
==3915== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3915== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3915== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3915== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3915== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3915== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3915== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3915== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3915== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3915== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3915== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3915== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3915== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3915== by 0x8062D5B: main (nginx.c:385)
==3915==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 3: gmatch matched but no iterate ==3936== Invalid read of size 4
==3936== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3936== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3936== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3936== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3936== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3936== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3936== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3936== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3936== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3936== by 0x8062D5B: main (nginx.c:385)
==3936== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3936==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 3: gmatch matched but no iterate ==3936==
==3936== Process terminating with default action of signal 11 (SIGSEGV)
==3936== Access not within mapped region at address 0x0
==3936== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3936== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3936== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3936== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3936== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3936== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3936== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3936== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3936== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3936== by 0x8062D5B: main (nginx.c:385)
==3936== If you believe this happened as a result of a stack
==3936== overflow in your program's main thread (unlikely but
==3936== possible), you can try to increase the size of the
==3936== main thread stack using the --main-stacksize= flag.
==3936== The main thread stack size used in this run was 8388608.
==3936== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,864
==3936== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3936== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3936== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3936== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3936== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3936== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3936== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3936== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3936== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3936== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3936== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3936== by 0x40BB675: trace_state (lj_trace.c:690)
==3936== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3936== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3936== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3936== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3936== by 0x407FA29: lua_resume (lj_api.c:1296)
==3936== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3936== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3936== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3936== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3936== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3936== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3936== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3936== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3936== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3936== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3936== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3936== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3936== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3936== by 0x8062D5B: main (nginx.c:385)
==3936==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain ==3948== Invalid read of size 4
==3948== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3948== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3948== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3948== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3948== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3948== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3948== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3948== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3948== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3948== by 0x8062D5B: main (nginx.c:385)
==3948== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3948==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain ==3948==
==3948== Process terminating with default action of signal 11 (SIGSEGV)
==3948== Access not within mapped region at address 0x0
==3948== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3948== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3948== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3948== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3948== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3948== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3948== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3948== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3948== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3948== by 0x8062D5B: main (nginx.c:385)
==3948== If you believe this happened as a result of a stack
==3948== overflow in your program's main thread (unlikely but
==3948== possible), you can try to increase the size of the
==3948== main thread stack using the --main-stacksize= flag.
==3948== The main thread stack size used in this run was 8388608.
==3948== 1,024 bytes in 1 blocks are definitely lost in loss record 2,921 of 3,050
==3948== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3948== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3948== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3948== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3948== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3948== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3948== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3948== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3948== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3948== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3948== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3948== by 0x40BB675: trace_state (lj_trace.c:690)
==3948== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3948== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3948== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3948== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3948== by 0x407FA29: lua_resume (lj_api.c:1296)
==3948== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3948== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3948== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3948== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3948== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3948== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3948== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3948== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3948== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3948== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3948== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3948== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3948== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3948== by 0x8062D5B: main (nginx.c:385)
==3948==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain ==3969== Invalid read of size 4
==3969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3969== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3969== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3969== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3969== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3969== by 0x8062D5B: main (nginx.c:385)
==3969== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3969==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain ==3969==
==3969== Process terminating with default action of signal 11 (SIGSEGV)
==3969== Access not within mapped region at address 0x0
==3969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3969== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3969== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3969== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3969== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3969== by 0x8062D5B: main (nginx.c:385)
==3969== If you believe this happened as a result of a stack
==3969== overflow in your program's main thread (unlikely but
==3969== possible), you can try to increase the size of the
==3969== main thread stack using the --main-stacksize= flag.
==3969== The main thread stack size used in this run was 8388608.
==3969== 1,024 bytes in 1 blocks are definitely lost in loss record 2,921 of 3,050
==3969== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3969== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3969== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3969== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3969== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3969== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3969== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3969== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3969== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3969== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3969== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3969== by 0x40BB675: trace_state (lj_trace.c:690)
==3969== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3969== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3969== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3969== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3969== by 0x407FA29: lua_resume (lj_api.c:1296)
==3969== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3969== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3969== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3969== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3969== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3969== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3969== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3969== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3969== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3969== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3969== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3969== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3969== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3969== by 0x8062D5B: main (nginx.c:385)
==3969==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 7: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3978== Invalid read of size 4
==3978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3978== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3978== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3978== by 0x8062D5B: main (nginx.c:385)
==3978== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3978==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 7: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3978==
==3978== Process terminating with default action of signal 11 (SIGSEGV)
==3978== Access not within mapped region at address 0x0
==3978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3978== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3978== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3978== by 0x8062D5B: main (nginx.c:385)
==3978== If you believe this happened as a result of a stack
==3978== overflow in your program's main thread (unlikely but
==3978== possible), you can try to increase the size of the
==3978== main thread stack using the --main-stacksize= flag.
==3978== The main thread stack size used in this run was 8388608.
==3978== 1,024 bytes in 1 blocks are definitely lost in loss record 2,777 of 2,886
==3978== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3978== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3978== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3978== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3978== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3978== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3978== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3978== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3978== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3978== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3978== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3978== by 0x40BB675: trace_state (lj_trace.c:690)
==3978== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3978== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3978== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3978== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3978== by 0x407FA29: lua_resume (lj_api.c:1296)
==3978== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3978== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3978== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3978== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3978== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3978== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3978== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3978== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3978== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3978== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3978== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==3978== by 0x8062D5B: main (nginx.c:385)
==3978==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 7: fail to match + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 7: fail to match + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 7: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3979== Invalid read of size 4
==3979== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3979== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3979== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3979== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3979== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3979== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3979== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3979== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3979== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3979== by 0x8062D5B: main (nginx.c:385)
==3979== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3979==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 7: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==3979==
==3979== Process terminating with default action of signal 11 (SIGSEGV)
==3979== Access not within mapped region at address 0x0
==3979== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3979== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3979== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3979== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3979== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3979== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3979== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3979== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3979== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3979== by 0x8062D5B: main (nginx.c:385)
==3979== If you believe this happened as a result of a stack
==3979== overflow in your program's main thread (unlikely but
==3979== possible), you can try to increase the size of the
==3979== main thread stack using the --main-stacksize= flag.
==3979== The main thread stack size used in this run was 8388608.
==3979== 1,024 bytes in 1 blocks are definitely lost in loss record 2,777 of 2,886
==3979== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3979== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3979== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3979== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3979== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3979== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3979== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3979== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3979== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3979== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3979== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3979== by 0x40BB675: trace_state (lj_trace.c:690)
==3979== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3979== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3979== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3979== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3979== by 0x407FA29: lua_resume (lj_api.c:1296)
==3979== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3979== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3979== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3979== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3979== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3979== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3979== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3979== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3979== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3979== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3979== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3979== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==3979== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==3979== by 0x8062D5B: main (nginx.c:385)
==3979==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 7: fail to match + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 7: fail to match + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 2: d + j ==3991== Invalid read of size 4
==3991== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3991== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3991== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3991== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3991== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3991== by 0x8062D5B: main (nginx.c:385)
==3991== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3991==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 2: d + j ==3991==
==3991== Process terminating with default action of signal 11 (SIGSEGV)
==3991== Access not within mapped region at address 0x0
==3991== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==3991== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==3991== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==3991== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==3991== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==3991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3991== by 0x8062D5B: main (nginx.c:385)
==3991== If you believe this happened as a result of a stack
==3991== overflow in your program's main thread (unlikely but
==3991== possible), you can try to increase the size of the
==3991== main thread stack using the --main-stacksize= flag.
==3991== The main thread stack size used in this run was 8388608.
==3991== 1,024 bytes in 1 blocks are definitely lost in loss record 2,900 of 3,028
==3991== at 0x402C768: realloc (vg_replace_malloc.c:834)
==3991== by 0x40CC146: mem_alloc (lib_aux.c:335)
==3991== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==3991== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==3991== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==3991== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==3991== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==3991== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==3991== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==3991== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3991== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==3991== by 0x40BB675: trace_state (lj_trace.c:690)
==3991== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3991== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==3991== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==3991== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==3991== by 0x407FA29: lua_resume (lj_api.c:1296)
==3991== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==3991== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==3991== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==3991== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==3991== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==3991== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==3991== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==3991== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==3991== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==3991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==3991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==3991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==3991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==3991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==3991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==3991== by 0x8062D5B: main (nginx.c:385)
==3991==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 2: d + j - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 2: d + j - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 2: d + j ==4012== Invalid read of size 4
==4012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4012== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4012== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4012== by 0x8062D5B: main (nginx.c:385)
==4012== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4012==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 2: d + j ==4012==
==4012== Process terminating with default action of signal 11 (SIGSEGV)
==4012== Access not within mapped region at address 0x0
==4012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4012== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4012== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4012== by 0x8062D5B: main (nginx.c:385)
==4012== If you believe this happened as a result of a stack
==4012== overflow in your program's main thread (unlikely but
==4012== possible), you can try to increase the size of the
==4012== main thread stack using the --main-stacksize= flag.
==4012== The main thread stack size used in this run was 8388608.
==4012== 1,024 bytes in 1 blocks are definitely lost in loss record 2,900 of 3,028
==4012== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4012== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4012== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4012== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4012== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4012== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4012== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4012== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4012== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4012== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4012== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4012== by 0x40BB675: trace_state (lj_trace.c:690)
==4012== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4012== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4012== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4012== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4012== by 0x407FA29: lua_resume (lj_api.c:1296)
==4012== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4012== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4012== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4012== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4012== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4012== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4012== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4012== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4012== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4012== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4012== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4012== by 0x8062D5B: main (nginx.c:385)
==4012==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 2: d + j - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 2: d + j - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 1: gmatch matched ==4024== Invalid read of size 4
==4024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4024== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4024== by 0x8062D5B: main (nginx.c:385)
==4024== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4024==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 1: gmatch matched ==4024==
==4024== Process terminating with default action of signal 11 (SIGSEGV)
==4024== Access not within mapped region at address 0x0
==4024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4024== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4024== by 0x8062D5B: main (nginx.c:385)
==4024== If you believe this happened as a result of a stack
==4024== overflow in your program's main thread (unlikely but
==4024== possible), you can try to increase the size of the
==4024== main thread stack using the --main-stacksize= flag.
==4024== The main thread stack size used in this run was 8388608.
==4024== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,856
==4024== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4024== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4024== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4024== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4024== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4024== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4024== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4024== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4024== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4024== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4024== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4024== by 0x40BB675: trace_state (lj_trace.c:690)
==4024== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4024== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4024== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4024== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4024== by 0x407FA29: lua_resume (lj_api.c:1296)
==4024== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4024== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4024== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4024== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4024== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4024== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4024== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4024== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4024== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4024== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4024== by 0x8062D5B: main (nginx.c:385)
==4024==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 1: gmatch matched - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 1: gmatch matched ==4045== Invalid read of size 4
==4045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4045== by 0x8062D5B: main (nginx.c:385)
==4045== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4045==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 1: gmatch matched ==4045==
==4045== Process terminating with default action of signal 11 (SIGSEGV)
==4045== Access not within mapped region at address 0x0
==4045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4045== by 0x8062D5B: main (nginx.c:385)
==4045== If you believe this happened as a result of a stack
==4045== overflow in your program's main thread (unlikely but
==4045== possible), you can try to increase the size of the
==4045== main thread stack using the --main-stacksize= flag.
==4045== The main thread stack size used in this run was 8388608.
==4045== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,856
==4045== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4045== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4045== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4045== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4045== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4045== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4045== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4045== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4045== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4045== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4045== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4045== by 0x40BB675: trace_state (lj_trace.c:690)
==4045== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4045== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4045== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4045== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4045== by 0x407FA29: lua_resume (lj_api.c:1296)
==4045== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4045== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4045== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4045== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4045== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4045== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4045== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4045== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4045== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4045== by 0x8062D5B: main (nginx.c:385)
==4045==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 1: gmatch matched - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o ==4057== Invalid read of size 4
==4057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4057== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4057== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4057== by 0x8062D5B: main (nginx.c:385)
==4057== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4057==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o ==4057==
==4057== Process terminating with default action of signal 11 (SIGSEGV)
==4057== Access not within mapped region at address 0x0
==4057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4057== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4057== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4057== by 0x8062D5B: main (nginx.c:385)
==4057== If you believe this happened as a result of a stack
==4057== overflow in your program's main thread (unlikely but
==4057== possible), you can try to increase the size of the
==4057== main thread stack using the --main-stacksize= flag.
==4057== The main thread stack size used in this run was 8388608.
==4057== 1,024 bytes in 1 blocks are definitely lost in loss record 2,914 of 3,043
==4057== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4057== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4057== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4057== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4057== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4057== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4057== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4057== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4057== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4057== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4057== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4057== by 0x40BB675: trace_state (lj_trace.c:690)
==4057== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4057== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4057== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4057== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4057== by 0x407FA29: lua_resume (lj_api.c:1296)
==4057== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4057== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4057== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4057== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4057== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4057== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4057== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4057== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4057== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4057== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4057== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4057== by 0x8062D5B: main (nginx.c:385)
==4057==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o ==4078== Invalid read of size 4
==4078== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4078== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4078== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4078== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4078== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4078== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4078== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4078== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4078== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4078== by 0x8062D5B: main (nginx.c:385)
==4078== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4078==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o ==4078==
==4078== Process terminating with default action of signal 11 (SIGSEGV)
==4078== Access not within mapped region at address 0x0
==4078== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4078== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4078== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4078== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4078== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4078== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4078== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4078== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4078== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4078== by 0x8062D5B: main (nginx.c:385)
==4078== If you believe this happened as a result of a stack
==4078== overflow in your program's main thread (unlikely but
==4078== possible), you can try to increase the size of the
==4078== main thread stack using the --main-stacksize= flag.
==4078== The main thread stack size used in this run was 8388608.
==4078== 1,024 bytes in 1 blocks are definitely lost in loss record 2,914 of 3,043
==4078== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4078== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4078== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4078== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4078== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4078== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4078== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4078== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4078== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4078== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4078== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4078== by 0x40BB675: trace_state (lj_trace.c:690)
==4078== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4078== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4078== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4078== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4078== by 0x407FA29: lua_resume (lj_api.c:1296)
==4078== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4078== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4078== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4078== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4078== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4078== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4078== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4078== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4078== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4078== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4078== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4078== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4078== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4078== by 0x8062D5B: main (nginx.c:385)
==4078==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate ==4090== Invalid read of size 4
==4090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4090== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4090== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4090== by 0x8062D5B: main (nginx.c:385)
==4090== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4090==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate ==4090==
==4090== Process terminating with default action of signal 11 (SIGSEGV)
==4090== Access not within mapped region at address 0x0
==4090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4090== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4090== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4090== by 0x8062D5B: main (nginx.c:385)
==4090== If you believe this happened as a result of a stack
==4090== overflow in your program's main thread (unlikely but
==4090== possible), you can try to increase the size of the
==4090== main thread stack using the --main-stacksize= flag.
==4090== The main thread stack size used in this run was 8388608.
==4090== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==4090== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4090== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4090== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4090== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4090== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4090== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4090== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4090== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4090== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4090== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4090== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4090== by 0x40BB675: trace_state (lj_trace.c:690)
==4090== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4090== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4090== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4090== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4090== by 0x407FA29: lua_resume (lj_api.c:1296)
==4090== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4090== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4090== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4090== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4090== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4090== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4090== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4090== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4090== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4090== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4090== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4090== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4090== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4090== by 0x8062D5B: main (nginx.c:385)
==4090==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate ==4111== Invalid read of size 4
==4111== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4111== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4111== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4111== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4111== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4111== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4111== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4111== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4111== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4111== by 0x8062D5B: main (nginx.c:385)
==4111== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4111==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate ==4111==
==4111== Process terminating with default action of signal 11 (SIGSEGV)
==4111== Access not within mapped region at address 0x0
==4111== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4111== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4111== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4111== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4111== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4111== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4111== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4111== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4111== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4111== by 0x8062D5B: main (nginx.c:385)
==4111== If you believe this happened as a result of a stack
==4111== overflow in your program's main thread (unlikely but
==4111== possible), you can try to increase the size of the
==4111== main thread stack using the --main-stacksize= flag.
==4111== The main thread stack size used in this run was 8388608.
==4111== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==4111== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4111== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4111== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4111== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4111== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4111== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4111== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4111== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4111== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4111== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4111== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4111== by 0x40BB675: trace_state (lj_trace.c:690)
==4111== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4111== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4111== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4111== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4111== by 0x407FA29: lua_resume (lj_api.c:1296)
==4111== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4111== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4111== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4111== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4111== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4111== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4111== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4111== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4111== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4111== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4111== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4111== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4111== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4111== by 0x8062D5B: main (nginx.c:385)
==4111==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 10: bad pattern ==4123== Invalid read of size 4
==4123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4123== by 0x8062D5B: main (nginx.c:385)
==4123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 10: bad pattern ==4123==
==4123== Process terminating with default action of signal 11 (SIGSEGV)
==4123== Access not within mapped region at address 0x0
==4123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4123== by 0x8062D5B: main (nginx.c:385)
==4123== If you believe this happened as a result of a stack
==4123== overflow in your program's main thread (unlikely but
==4123== possible), you can try to increase the size of the
==4123== main thread stack using the --main-stacksize= flag.
==4123== The main thread stack size used in this run was 8388608.
==4123== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,858
==4123== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4123== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4123== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4123== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4123== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4123== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4123== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4123== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4123== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4123== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4123== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4123== by 0x40BB675: trace_state (lj_trace.c:690)
==4123== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4123== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4123== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4123== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4123== by 0x407FA29: lua_resume (lj_api.c:1296)
==4123== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4123== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4123== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4123== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4123== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4123== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4123== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4123== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4123== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4123== by 0x8062D5B: main (nginx.c:385)
==4123==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 10: bad pattern - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 10: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 10: bad pattern ==4144== Invalid read of size 4
==4144== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4144== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4144== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4144== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4144== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4144== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4144== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4144== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4144== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4144== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4144== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4144== by 0x8062D5B: main (nginx.c:385)
==4144== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4144==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 10: bad pattern ==4144==
==4144== Process terminating with default action of signal 11 (SIGSEGV)
==4144== Access not within mapped region at address 0x0
==4144== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4144== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4144== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4144== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4144== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4144== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4144== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4144== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4144== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4144== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4144== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4144== by 0x8062D5B: main (nginx.c:385)
==4144== If you believe this happened as a result of a stack
==4144== overflow in your program's main thread (unlikely but
==4144== possible), you can try to increase the size of the
==4144== main thread stack using the --main-stacksize= flag.
==4144== The main thread stack size used in this run was 8388608.
==4144== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,858
==4144== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4144== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4144== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4144== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4144== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4144== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4144== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4144== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4144== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4144== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4144== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4144== by 0x40BB675: trace_state (lj_trace.c:690)
==4144== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4144== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4144== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4144== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4144== by 0x407FA29: lua_resume (lj_api.c:1296)
==4144== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4144== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4144== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4144== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4144== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4144== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4144== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4144== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4144== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4144== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4144== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4144== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4144== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4144== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4144== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4144== by 0x8062D5B: main (nginx.c:385)
==4144==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 10: bad pattern - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 10: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks ==4156== Invalid read of size 4
==4156== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4156== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4156== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4156== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4156== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4156== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4156== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4156== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4156== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4156== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4156== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4156== by 0x8062D5B: main (nginx.c:385)
==4156== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4156==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks ==4156==
==4156== Process terminating with default action of signal 11 (SIGSEGV)
==4156== Access not within mapped region at address 0x0
==4156== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4156== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4156== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4156== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4156== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4156== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4156== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4156== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4156== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4156== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4156== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4156== by 0x8062D5B: main (nginx.c:385)
==4156== If you believe this happened as a result of a stack
==4156== overflow in your program's main thread (unlikely but
==4156== possible), you can try to increase the size of the
==4156== main thread stack using the --main-stacksize= flag.
==4156== The main thread stack size used in this run was 8388608.
==4156== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==4156== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4156== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4156== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4156== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4156== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4156== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4156== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4156== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4156== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4156== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4156== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4156== by 0x40BB675: trace_state (lj_trace.c:690)
==4156== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4156== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4156== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4156== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4156== by 0x407FA29: lua_resume (lj_api.c:1296)
==4156== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4156== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4156== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4156== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4156== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4156== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4156== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4156== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4156== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4156== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4156== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4156== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4156== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4156== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4156== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4156== by 0x8062D5B: main (nginx.c:385)
==4156==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks ==4177== Invalid read of size 4
==4177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4177== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4177== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4177== by 0x8062D5B: main (nginx.c:385)
==4177== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4177==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks ==4177==
==4177== Process terminating with default action of signal 11 (SIGSEGV)
==4177== Access not within mapped region at address 0x0
==4177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4177== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4177== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4177== by 0x8062D5B: main (nginx.c:385)
==4177== If you believe this happened as a result of a stack
==4177== overflow in your program's main thread (unlikely but
==4177== possible), you can try to increase the size of the
==4177== main thread stack using the --main-stacksize= flag.
==4177== The main thread stack size used in this run was 8388608.
==4177== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==4177== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4177== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4177== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4177== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4177== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4177== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4177== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4177== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4177== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4177== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4177== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4177== by 0x40BB675: trace_state (lj_trace.c:690)
==4177== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4177== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4177== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4177== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4177== by 0x407FA29: lua_resume (lj_api.c:1296)
==4177== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4177== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4177== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4177== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4177== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4177== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4177== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4177== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4177== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4177== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4177== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4177== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4177== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4177== by 0x8062D5B: main (nginx.c:385)
==4177==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 6: gmatch matched + o ==4189== Invalid read of size 4
==4189== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4189== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4189== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4189== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4189== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4189== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4189== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4189== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4189== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4189== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4189== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4189== by 0x8062D5B: main (nginx.c:385)
==4189== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4189==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 6: gmatch matched + o ==4189==
==4189== Process terminating with default action of signal 11 (SIGSEGV)
==4189== Access not within mapped region at address 0x0
==4189== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4189== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4189== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4189== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4189== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4189== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4189== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4189== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4189== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4189== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4189== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4189== by 0x8062D5B: main (nginx.c:385)
==4189== If you believe this happened as a result of a stack
==4189== overflow in your program's main thread (unlikely but
==4189== possible), you can try to increase the size of the
==4189== main thread stack using the --main-stacksize= flag.
==4189== The main thread stack size used in this run was 8388608.
==4189== 1,024 bytes in 1 blocks are definitely lost in loss record 2,871 of 2,990
==4189== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4189== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4189== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4189== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4189== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4189== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4189== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4189== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4189== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4189== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4189== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4189== by 0x40BB675: trace_state (lj_trace.c:690)
==4189== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4189== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4189== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4189== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4189== by 0x407FA29: lua_resume (lj_api.c:1296)
==4189== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4189== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4189== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4189== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4189== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4189== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4189== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4189== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4189== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4189== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4189== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4189== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4189== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4189== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4189== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4189== by 0x8062D5B: main (nginx.c:385)
==4189==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 6: gmatch matched + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 6: gmatch matched + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 6: gmatch matched + o ==4210== Invalid read of size 4
==4210== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4210== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4210== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4210== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4210== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4210== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4210== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4210== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4210== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4210== by 0x8062D5B: main (nginx.c:385)
==4210== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4210==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 6: gmatch matched + o ==4210==
==4210== Process terminating with default action of signal 11 (SIGSEGV)
==4210== Access not within mapped region at address 0x0
==4210== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4210== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4210== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4210== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4210== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4210== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4210== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4210== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4210== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4210== by 0x8062D5B: main (nginx.c:385)
==4210== If you believe this happened as a result of a stack
==4210== overflow in your program's main thread (unlikely but
==4210== possible), you can try to increase the size of the
==4210== main thread stack using the --main-stacksize= flag.
==4210== The main thread stack size used in this run was 8388608.
==4210== 1,024 bytes in 1 blocks are definitely lost in loss record 2,871 of 2,990
==4210== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4210== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4210== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4210== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4210== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4210== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4210== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4210== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4210== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4210== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4210== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4210== by 0x40BB675: trace_state (lj_trace.c:690)
==4210== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4210== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4210== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4210== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4210== by 0x407FA29: lua_resume (lj_api.c:1296)
==4210== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4210== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4210== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4210== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4210== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4210== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4210== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4210== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4210== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4210== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4210== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4210== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4210== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4210== by 0x8062D5B: main (nginx.c:385)
==4210==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 6: gmatch matched + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 6: gmatch matched + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o ==4222== Invalid read of size 4
==4222== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4222== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4222== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4222== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4222== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4222== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4222== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4222== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4222== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4222== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4222== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4222== by 0x8062D5B: main (nginx.c:385)
==4222== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4222==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o ==4222==
==4222== Process terminating with default action of signal 11 (SIGSEGV)
==4222== Access not within mapped region at address 0x0
==4222== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4222== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4222== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4222== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4222== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4222== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4222== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4222== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4222== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4222== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4222== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4222== by 0x8062D5B: main (nginx.c:385)
==4222== If you believe this happened as a result of a stack
==4222== overflow in your program's main thread (unlikely but
==4222== possible), you can try to increase the size of the
==4222== main thread stack using the --main-stacksize= flag.
==4222== The main thread stack size used in this run was 8388608.
==4222== 1,024 bytes in 1 blocks are definitely lost in loss record 2,917 of 3,046
==4222== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4222== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4222== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4222== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4222== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4222== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4222== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4222== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4222== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4222== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4222== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4222== by 0x40BB675: trace_state (lj_trace.c:690)
==4222== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4222== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4222== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4222== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4222== by 0x407FA29: lua_resume (lj_api.c:1296)
==4222== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4222== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4222== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4222== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4222== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4222== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4222== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4222== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4222== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4222== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4222== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4222== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4222== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4222== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4222== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4222== by 0x8062D5B: main (nginx.c:385)
==4222==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o ==4243== Invalid read of size 4
==4243== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4243== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4243== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4243== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4243== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4243== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4243== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4243== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4243== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4243== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4243== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4243== by 0x8062D5B: main (nginx.c:385)
==4243== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4243==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o ==4243==
==4243== Process terminating with default action of signal 11 (SIGSEGV)
==4243== Access not within mapped region at address 0x0
==4243== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4243== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4243== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4243== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4243== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4243== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4243== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4243== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4243== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4243== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4243== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4243== by 0x8062D5B: main (nginx.c:385)
==4243== If you believe this happened as a result of a stack
==4243== overflow in your program's main thread (unlikely but
==4243== possible), you can try to increase the size of the
==4243== main thread stack using the --main-stacksize= flag.
==4243== The main thread stack size used in this run was 8388608.
==4243== 1,024 bytes in 1 blocks are definitely lost in loss record 2,917 of 3,046
==4243== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4243== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4243== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4243== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4243== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4243== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4243== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4243== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4243== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4243== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4243== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4243== by 0x40BB675: trace_state (lj_trace.c:690)
==4243== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4243== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4243== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4243== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4243== by 0x407FA29: lua_resume (lj_api.c:1296)
==4243== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4243== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4243== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4243== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4243== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4243== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4243== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4243== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4243== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4243== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4243== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4243== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4243== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4243== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4243== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4243== by 0x8062D5B: main (nginx.c:385)
==4243==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 3: fail to match ==4255== Invalid read of size 4
==4255== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4255== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4255== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4255== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4255== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4255== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4255== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4255== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4255== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4255== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4255== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4255== by 0x8062D5B: main (nginx.c:385)
==4255== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4255==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 3: fail to match ==4255==
==4255== Process terminating with default action of signal 11 (SIGSEGV)
==4255== Access not within mapped region at address 0x0
==4255== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4255== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4255== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4255== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4255== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4255== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4255== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4255== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4255== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4255== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4255== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4255== by 0x8062D5B: main (nginx.c:385)
==4255== If you believe this happened as a result of a stack
==4255== overflow in your program's main thread (unlikely but
==4255== possible), you can try to increase the size of the
==4255== main thread stack using the --main-stacksize= flag.
==4255== The main thread stack size used in this run was 8388608.
==4255== 1,024 bytes in 1 blocks are definitely lost in loss record 2,872 of 2,996
==4255== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4255== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4255== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4255== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4255== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4255== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4255== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4255== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4255== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4255== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4255== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4255== by 0x40BB675: trace_state (lj_trace.c:690)
==4255== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4255== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4255== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4255== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4255== by 0x407FA29: lua_resume (lj_api.c:1296)
==4255== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4255== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4255== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4255== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4255== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4255== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4255== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4255== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4255== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4255== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4255== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4255== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4255== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4255== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4255== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4255== by 0x8062D5B: main (nginx.c:385)
==4255==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 3: fail to match - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 3: fail to match - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 3: fail to match ==4276== Invalid read of size 4
==4276== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4276== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4276== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4276== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4276== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4276== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4276== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4276== by 0x8062D5B: main (nginx.c:385)
==4276== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4276==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 3: fail to match ==4276==
==4276== Process terminating with default action of signal 11 (SIGSEGV)
==4276== Access not within mapped region at address 0x0
==4276== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4276== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4276== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4276== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4276== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4276== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4276== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4276== by 0x8062D5B: main (nginx.c:385)
==4276== If you believe this happened as a result of a stack
==4276== overflow in your program's main thread (unlikely but
==4276== possible), you can try to increase the size of the
==4276== main thread stack using the --main-stacksize= flag.
==4276== The main thread stack size used in this run was 8388608.
==4276== 1,024 bytes in 1 blocks are definitely lost in loss record 2,872 of 2,996
==4276== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4276== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4276== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4276== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4276== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4276== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4276== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4276== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4276== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4276== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4276== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4276== by 0x40BB675: trace_state (lj_trace.c:690)
==4276== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4276== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4276== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4276== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4276== by 0x407FA29: lua_resume (lj_api.c:1296)
==4276== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4276== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4276== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4276== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4276== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4276== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4276== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4276== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4276== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4276== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4276== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4276== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4276== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4276== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4276== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4276== by 0x8062D5B: main (nginx.c:385)
==4276==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 3: fail to match - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 3: fail to match - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain ==4288== Invalid read of size 4
==4288== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4288== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4288== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4288== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4288== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4288== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4288== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4288== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4288== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4288== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4288== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4288== by 0x8062D5B: main (nginx.c:385)
==4288== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4288==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain ==4288==
==4288== Process terminating with default action of signal 11 (SIGSEGV)
==4288== Access not within mapped region at address 0x0
==4288== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4288== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4288== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4288== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4288== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4288== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4288== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4288== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4288== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4288== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4288== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4288== by 0x8062D5B: main (nginx.c:385)
==4288== If you believe this happened as a result of a stack
==4288== overflow in your program's main thread (unlikely but
==4288== possible), you can try to increase the size of the
==4288== main thread stack using the --main-stacksize= flag.
==4288== The main thread stack size used in this run was 8388608.
==4288== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,859
==4288== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4288== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4288== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4288== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4288== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4288== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4288== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4288== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4288== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4288== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4288== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4288== by 0x40BB675: trace_state (lj_trace.c:690)
==4288== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4288== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4288== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4288== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4288== by 0x407FA29: lua_resume (lj_api.c:1296)
==4288== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4288== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4288== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4288== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4288== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4288== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4288== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4288== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4288== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4288== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4288== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4288== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4288== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4288== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4288== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4288== by 0x8062D5B: main (nginx.c:385)
==4288==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain ==4309== Invalid read of size 4
==4309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4309== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4309== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4309== by 0x8062D5B: main (nginx.c:385)
==4309== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4309==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain ==4309==
==4309== Process terminating with default action of signal 11 (SIGSEGV)
==4309== Access not within mapped region at address 0x0
==4309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4309== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4309== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4309== by 0x8062D5B: main (nginx.c:385)
==4309== If you believe this happened as a result of a stack
==4309== overflow in your program's main thread (unlikely but
==4309== possible), you can try to increase the size of the
==4309== main thread stack using the --main-stacksize= flag.
==4309== The main thread stack size used in this run was 8388608.
==4309== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,859
==4309== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4309== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4309== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4309== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4309== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4309== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4309== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4309== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4309== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4309== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4309== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4309== by 0x40BB675: trace_state (lj_trace.c:690)
==4309== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4309== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4309== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4309== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4309== by 0x407FA29: lua_resume (lj_api.c:1296)
==4309== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4309== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4309== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4309== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4309== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4309== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4309== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4309== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4309== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4309== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4309== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4309== by 0x8062D5B: main (nginx.c:385)
==4309==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks ==4321== Invalid read of size 4
==4321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4321== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4321== by 0x8062D5B: main (nginx.c:385)
==4321== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4321==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks ==4321==
==4321== Process terminating with default action of signal 11 (SIGSEGV)
==4321== Access not within mapped region at address 0x0
==4321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4321== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4321== by 0x8062D5B: main (nginx.c:385)
==4321== If you believe this happened as a result of a stack
==4321== overflow in your program's main thread (unlikely but
==4321== possible), you can try to increase the size of the
==4321== main thread stack using the --main-stacksize= flag.
==4321== The main thread stack size used in this run was 8388608.
==4321== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==4321== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4321== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4321== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4321== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4321== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4321== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4321== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4321== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4321== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4321== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4321== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4321== by 0x40BB675: trace_state (lj_trace.c:690)
==4321== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4321== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4321== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4321== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4321== by 0x407FA29: lua_resume (lj_api.c:1296)
==4321== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4321== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4321== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4321== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4321== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4321== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4321== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4321== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4321== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4321== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4321== by 0x8062D5B: main (nginx.c:385)
==4321==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks ==4342== Invalid read of size 4
==4342== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4342== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4342== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4342== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4342== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4342== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4342== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4342== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4342== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4342== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4342== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4342== by 0x8062D5B: main (nginx.c:385)
==4342== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4342==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks ==4342==
==4342== Process terminating with default action of signal 11 (SIGSEGV)
==4342== Access not within mapped region at address 0x0
==4342== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4342== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4342== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4342== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4342== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4342== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4342== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4342== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4342== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4342== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4342== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4342== by 0x8062D5B: main (nginx.c:385)
==4342== If you believe this happened as a result of a stack
==4342== overflow in your program's main thread (unlikely but
==4342== possible), you can try to increase the size of the
==4342== main thread stack using the --main-stacksize= flag.
==4342== The main thread stack size used in this run was 8388608.
==4342== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,865
==4342== at 0x402C768: realloc (vg_replace_malloc.c:834)
==4342== by 0x40CC146: mem_alloc (lib_aux.c:335)
==4342== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==4342== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==4342== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==4342== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==4342== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==4342== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==4342== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==4342== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4342== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==4342== by 0x40BB675: trace_state (lj_trace.c:690)
==4342== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4342== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==4342== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==4342== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==4342== by 0x407FA29: lua_resume (lj_api.c:1296)
==4342== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==4342== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==4342== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==4342== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==4342== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==4342== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==4342== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==4342== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==4342== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==4342== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4342== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4342== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4342== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4342== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4342== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4342== by 0x8062D5B: main (nginx.c:385)
==4342==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
051-sub-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==4351== Invalid read of size 4
==4351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4351== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4351== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4351== by 0x8062D5B: main (nginx.c:385)
==4351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==4351==
==4351== Process terminating with default action of signal 11 (SIGSEGV)
==4351== Access not within mapped region at address 0x0
==4351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4351== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4351== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4351== by 0x8062D5B: main (nginx.c:385)
==4351== If you believe this happened as a result of a stack
==4351== overflow in your program's main thread (unlikely but
==4351== possible), you can try to increase the size of the
==4351== main thread stack using the --main-stacksize= flag.
==4351== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==4352== Invalid read of size 4
==4352== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4352== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4352== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4352== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4352== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4352== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4352== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4352== by 0x8062D5B: main (nginx.c:385)
==4352== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4352==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==4352==
==4352== Process terminating with default action of signal 11 (SIGSEGV)
==4352== Access not within mapped region at address 0x0
==4352== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4352== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4352== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4352== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4352== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4352== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4352== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4352== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4352== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4352== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4352== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4352== by 0x8062D5B: main (nginx.c:385)
==4352== If you believe this happened as a result of a stack
==4352== overflow in your program's main thread (unlikely but
==4352== possible), you can try to increase the size of the
==4352== main thread stack using the --main-stacksize= flag.
==4352== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 4: not matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
051-sub-jit.t TEST 6: bad pattern + o ==4364== Invalid read of size 4
==4364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4364== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4364== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4364== by 0x8062D5B: main (nginx.c:385)
==4364== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4364==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 6: bad pattern + o ==4364==
==4364== Process terminating with default action of signal 11 (SIGSEGV)
==4364== Access not within mapped region at address 0x0
==4364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4364== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4364== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4364== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4364== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4364== by 0x8062D5B: main (nginx.c:385)
==4364== If you believe this happened as a result of a stack
==4364== overflow in your program's main thread (unlikely but
==4364== possible), you can try to increase the size of the
==4364== main thread stack using the --main-stacksize= flag.
==4364== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
051-sub-jit.t TEST 6: bad pattern + o ==4385== Invalid read of size 4
==4385== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4385== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4385== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4385== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4385== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4385== by 0x8062D5B: main (nginx.c:385)
==4385== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4385==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 6: bad pattern + o ==4385==
==4385== Process terminating with default action of signal 11 (SIGSEGV)
==4385== Access not within mapped region at address 0x0
==4385== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4385== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4385== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4385== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4385== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4385== by 0x8062D5B: main (nginx.c:385)
==4385== If you believe this happened as a result of a stack
==4385== overflow in your program's main thread (unlikely but
==4385== possible), you can try to increase the size of the
==4385== main thread stack using the --main-stacksize= flag.
==4385== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
051-sub-jit.t TEST 2: not matched with j ==4397== Invalid read of size 4
==4397== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4397== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4397== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4397== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4397== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4397== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4397== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4397== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4397== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4397== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4397== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4397== by 0x8062D5B: main (nginx.c:385)
==4397== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4397==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 2: not matched with j ==4397==
==4397== Process terminating with default action of signal 11 (SIGSEGV)
==4397== Access not within mapped region at address 0x0
==4397== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4397== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4397== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4397== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4397== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4397== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4397== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4397== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4397== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4397== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4397== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4397== by 0x8062D5B: main (nginx.c:385)
==4397== If you believe this happened as a result of a stack
==4397== overflow in your program's main thread (unlikely but
==4397== possible), you can try to increase the size of the
==4397== main thread stack using the --main-stacksize= flag.
==4397== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 2: not matched with j ==4418== Invalid read of size 4
==4418== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4418== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4418== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4418== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4418== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4418== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4418== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4418== by 0x8062D5B: main (nginx.c:385)
==4418== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4418==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 2: not matched with j ==4418==
==4418== Process terminating with default action of signal 11 (SIGSEGV)
==4418== Access not within mapped region at address 0x0
==4418== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4418== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4418== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4418== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4418== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4418== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4418== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4418== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4418== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4418== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4418== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4418== by 0x8062D5B: main (nginx.c:385)
==4418== If you believe this happened as a result of a stack
==4418== overflow in your program's main thread (unlikely but
==4418== possible), you can try to increase the size of the
==4418== main thread stack using the --main-stacksize= flag.
==4418== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 3: matched with jo ==4430== Invalid read of size 4
==4430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4430== by 0x8062D5B: main (nginx.c:385)
==4430== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4430==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 3: matched with jo ==4430==
==4430== Process terminating with default action of signal 11 (SIGSEGV)
==4430== Access not within mapped region at address 0x0
==4430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4430== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4430== by 0x8062D5B: main (nginx.c:385)
==4430== If you believe this happened as a result of a stack
==4430== overflow in your program's main thread (unlikely but
==4430== possible), you can try to increase the size of the
==4430== main thread stack using the --main-stacksize= flag.
==4430== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 3: matched with jo ==4451== Invalid read of size 4
==4451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4451== by 0x8062D5B: main (nginx.c:385)
==4451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 3: matched with jo ==4451==
==4451== Process terminating with default action of signal 11 (SIGSEGV)
==4451== Access not within mapped region at address 0x0
==4451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4451== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4451== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4451== by 0x8062D5B: main (nginx.c:385)
==4451== If you believe this happened as a result of a stack
==4451== overflow in your program's main thread (unlikely but
==4451== possible), you can try to increase the size of the
==4451== main thread stack using the --main-stacksize= flag.
==4451== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 3: matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
051-sub-jit.t TEST 1: matched with j ==4463== Invalid read of size 4
==4463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4463== by 0x8062D5B: main (nginx.c:385)
==4463== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4463==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 1: matched with j ==4463==
==4463== Process terminating with default action of signal 11 (SIGSEGV)
==4463== Access not within mapped region at address 0x0
==4463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4463== by 0x8062D5B: main (nginx.c:385)
==4463== If you believe this happened as a result of a stack
==4463== overflow in your program's main thread (unlikely but
==4463== possible), you can try to increase the size of the
==4463== main thread stack using the --main-stacksize= flag.
==4463== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 1: matched with j ==4484== Invalid read of size 4
==4484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4484== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4484== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4484== by 0x8062D5B: main (nginx.c:385)
==4484== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4484==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 1: matched with j ==4484==
==4484== Process terminating with default action of signal 11 (SIGSEGV)
==4484== Access not within mapped region at address 0x0
==4484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4484== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4484== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4484== by 0x8062D5B: main (nginx.c:385)
==4484== If you believe this happened as a result of a stack
==4484== overflow in your program's main thread (unlikely but
==4484== possible), you can try to increase the size of the
==4484== main thread stack using the --main-stacksize= flag.
==4484== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 5: bad pattern ==4496== Invalid read of size 4
==4496== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4496== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4496== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4496== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4496== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4496== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4496== by 0x8062D5B: main (nginx.c:385)
==4496== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4496==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 5: bad pattern ==4496==
==4496== Process terminating with default action of signal 11 (SIGSEGV)
==4496== Access not within mapped region at address 0x0
==4496== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4496== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4496== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4496== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4496== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4496== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4496== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4496== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4496== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4496== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4496== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4496== by 0x8062D5B: main (nginx.c:385)
==4496== If you believe this happened as a result of a stack
==4496== overflow in your program's main thread (unlikely but
==4496== possible), you can try to increase the size of the
==4496== main thread stack using the --main-stacksize= flag.
==4496== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
051-sub-jit.t TEST 5: bad pattern ==4517== Invalid read of size 4
==4517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4517== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4517== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4517== by 0x8062D5B: main (nginx.c:385)
==4517== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4517==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
051-sub-jit.t TEST 5: bad pattern ==4517==
==4517== Process terminating with default action of signal 11 (SIGSEGV)
==4517== Access not within mapped region at address 0x0
==4517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4517== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4517== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4517== by 0x8062D5B: main (nginx.c:385)
==4517== If you believe this happened as a result of a stack
==4517== overflow in your program's main thread (unlikely but
==4517== possible), you can try to increase the size of the
==4517== main thread stack using the --main-stacksize= flag.
==4517== The main thread stack size used in this run was 8388608.

051-sub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==4526== Invalid read of size 4
==4526== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4526== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4526== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4526== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4526== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4526== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4526== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4526== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4526== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4526== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4526== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4526== by 0x8062D5B: main (nginx.c:385)
==4526== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4526==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==4526==
==4526== Process terminating with default action of signal 11 (SIGSEGV)
==4526== Access not within mapped region at address 0x0
==4526== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4526== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4526== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4526== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4526== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4526== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4526== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4526== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4526== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4526== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4526== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4526== by 0x8062D5B: main (nginx.c:385)
==4526== If you believe this happened as a result of a stack
==4526== overflow in your program's main thread (unlikely but
==4526== possible), you can try to increase the size of the
==4526== main thread stack using the --main-stacksize= flag.
==4526== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==4527== Invalid read of size 4
==4527== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4527== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4527== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4527== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4527== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4527== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4527== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4527== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4527== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4527== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4527== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4527== by 0x8062D5B: main (nginx.c:385)
==4527== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4527==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==4527==
==4527== Process terminating with default action of signal 11 (SIGSEGV)
==4527== Access not within mapped region at address 0x0
==4527== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4527== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4527== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4527== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4527== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4527== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4527== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4527== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4527== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4527== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4527== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4527== by 0x8062D5B: main (nginx.c:385)
==4527== If you believe this happened as a result of a stack
==4527== overflow in your program's main thread (unlikely but
==4527== possible), you can try to increase the size of the
==4527== main thread stack using the --main-stacksize= flag.
==4527== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==4539== Invalid read of size 4
==4539== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4539== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4539== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4539== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4539== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4539== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4539== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4539== by 0x8062D5B: main (nginx.c:385)
==4539== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4539==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==4539==
==4539== Process terminating with default action of signal 11 (SIGSEGV)
==4539== Access not within mapped region at address 0x0
==4539== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4539== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4539== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4539== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4539== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4539== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4539== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4539== by 0x8062D5B: main (nginx.c:385)
==4539== If you believe this happened as a result of a stack
==4539== overflow in your program's main thread (unlikely but
==4539== possible), you can try to increase the size of the
==4539== main thread stack using the --main-stacksize= flag.
==4539== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==4560== Invalid read of size 4
==4560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4560== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4560== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4560== by 0x8062D5B: main (nginx.c:385)
==4560== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4560==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==4560==
==4560== Process terminating with default action of signal 11 (SIGSEGV)
==4560== Access not within mapped region at address 0x0
==4560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4560== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4560== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4560== by 0x8062D5B: main (nginx.c:385)
==4560== If you believe this happened as a result of a stack
==4560== overflow in your program's main thread (unlikely but
==4560== possible), you can try to increase the size of the
==4560== main thread stack using the --main-stacksize= flag.
==4560== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 3: matched with do ==4572== Invalid read of size 4
==4572== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4572== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4572== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4572== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4572== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4572== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4572== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4572== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4572== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4572== by 0x8062D5B: main (nginx.c:385)
==4572== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4572==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 3: matched with do ==4572==
==4572== Process terminating with default action of signal 11 (SIGSEGV)
==4572== Access not within mapped region at address 0x0
==4572== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4572== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4572== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4572== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4572== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4572== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4572== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4572== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4572== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4572== by 0x8062D5B: main (nginx.c:385)
==4572== If you believe this happened as a result of a stack
==4572== overflow in your program's main thread (unlikely but
==4572== possible), you can try to increase the size of the
==4572== main thread stack using the --main-stacksize= flag.
==4572== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 3: matched with do ==4593== Invalid read of size 4
==4593== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4593== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4593== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4593== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4593== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4593== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4593== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4593== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4593== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4593== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4593== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4593== by 0x8062D5B: main (nginx.c:385)
==4593== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4593==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 3: matched with do ==4593==
==4593== Process terminating with default action of signal 11 (SIGSEGV)
==4593== Access not within mapped region at address 0x0
==4593== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4593== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4593== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4593== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4593== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4593== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4593== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4593== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4593== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4593== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4593== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4593== by 0x8062D5B: main (nginx.c:385)
==4593== If you believe this happened as a result of a stack
==4593== overflow in your program's main thread (unlikely but
==4593== possible), you can try to increase the size of the
==4593== main thread stack using the --main-stacksize= flag.
==4593== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 5: bad pattern ==4605== Invalid read of size 4
==4605== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4605== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4605== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4605== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4605== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4605== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4605== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4605== by 0x8062D5B: main (nginx.c:385)
==4605== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4605==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 5: bad pattern ==4605==
==4605== Process terminating with default action of signal 11 (SIGSEGV)
==4605== Access not within mapped region at address 0x0
==4605== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4605== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4605== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4605== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4605== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4605== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4605== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4605== by 0x8062D5B: main (nginx.c:385)
==4605== If you believe this happened as a result of a stack
==4605== overflow in your program's main thread (unlikely but
==4605== possible), you can try to increase the size of the
==4605== main thread stack using the --main-stacksize= flag.
==4605== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 5: bad pattern ==4626== Invalid read of size 4
==4626== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4626== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4626== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4626== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4626== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4626== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4626== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4626== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4626== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4626== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4626== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4626== by 0x8062D5B: main (nginx.c:385)
==4626== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4626==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 5: bad pattern ==4626==
==4626== Process terminating with default action of signal 11 (SIGSEGV)
==4626== Access not within mapped region at address 0x0
==4626== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4626== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4626== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4626== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4626== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4626== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4626== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4626== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4626== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4626== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4626== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4626== by 0x8062D5B: main (nginx.c:385)
==4626== If you believe this happened as a result of a stack
==4626== overflow in your program's main thread (unlikely but
==4626== possible), you can try to increase the size of the
==4626== main thread stack using the --main-stacksize= flag.
==4626== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 1: matched with d ==4638== Invalid read of size 4
==4638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4638== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4638== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4638== by 0x8062D5B: main (nginx.c:385)
==4638== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4638==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 1: matched with d ==4638==
==4638== Process terminating with default action of signal 11 (SIGSEGV)
==4638== Access not within mapped region at address 0x0
==4638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4638== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4638== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4638== by 0x8062D5B: main (nginx.c:385)
==4638== If you believe this happened as a result of a stack
==4638== overflow in your program's main thread (unlikely but
==4638== possible), you can try to increase the size of the
==4638== main thread stack using the --main-stacksize= flag.
==4638== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 1: matched with d ==4659== Invalid read of size 4
==4659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4659== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4659== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4659== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4659== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4659== by 0x8062D5B: main (nginx.c:385)
==4659== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4659==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 1: matched with d ==4659==
==4659== Process terminating with default action of signal 11 (SIGSEGV)
==4659== Access not within mapped region at address 0x0
==4659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4659== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4659== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4659== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4659== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4659== by 0x8062D5B: main (nginx.c:385)
==4659== If you believe this happened as a result of a stack
==4659== overflow in your program's main thread (unlikely but
==4659== possible), you can try to increase the size of the
==4659== main thread stack using the --main-stacksize= flag.
==4659== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 6: bad pattern + o ==4671== Invalid read of size 4
==4671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4671== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4671== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4671== by 0x8062D5B: main (nginx.c:385)
==4671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 6: bad pattern + o ==4671==
==4671== Process terminating with default action of signal 11 (SIGSEGV)
==4671== Access not within mapped region at address 0x0
==4671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4671== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4671== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4671== by 0x8062D5B: main (nginx.c:385)
==4671== If you believe this happened as a result of a stack
==4671== overflow in your program's main thread (unlikely but
==4671== possible), you can try to increase the size of the
==4671== main thread stack using the --main-stacksize= flag.
==4671== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 6: bad pattern + o ==4692== Invalid read of size 4
==4692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4692== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4692== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4692== by 0x8062D5B: main (nginx.c:385)
==4692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 6: bad pattern + o ==4692==
==4692== Process terminating with default action of signal 11 (SIGSEGV)
==4692== Access not within mapped region at address 0x0
==4692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4692== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4692== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4692== by 0x8062D5B: main (nginx.c:385)
==4692== If you believe this happened as a result of a stack
==4692== overflow in your program's main thread (unlikely but
==4692== possible), you can try to increase the size of the
==4692== main thread stack using the --main-stacksize= flag.
==4692== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 4: not matched with do ==4704== Invalid read of size 4
==4704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4704== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4704== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4704== by 0x8062D5B: main (nginx.c:385)
==4704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 4: not matched with do ==4704==
==4704== Process terminating with default action of signal 11 (SIGSEGV)
==4704== Access not within mapped region at address 0x0
==4704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4704== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4704== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4704== by 0x8062D5B: main (nginx.c:385)
==4704== If you believe this happened as a result of a stack
==4704== overflow in your program's main thread (unlikely but
==4704== possible), you can try to increase the size of the
==4704== main thread stack using the --main-stacksize= flag.
==4704== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 4: not matched with do ==4725== Invalid read of size 4
==4725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4725== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4725== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4725== by 0x8062D5B: main (nginx.c:385)
==4725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 4: not matched with do ==4725==
==4725== Process terminating with default action of signal 11 (SIGSEGV)
==4725== Access not within mapped region at address 0x0
==4725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4725== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4725== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4725== by 0x8062D5B: main (nginx.c:385)
==4725== If you believe this happened as a result of a stack
==4725== overflow in your program's main thread (unlikely but
==4725== possible), you can try to increase the size of the
==4725== main thread stack using the --main-stacksize= flag.
==4725== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 2: not matched with d ==4737== Invalid read of size 4
==4737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4737== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4737== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4737== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4737== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4737== by 0x8062D5B: main (nginx.c:385)
==4737== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4737==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 2: not matched with d ==4737==
==4737== Process terminating with default action of signal 11 (SIGSEGV)
==4737== Access not within mapped region at address 0x0
==4737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4737== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4737== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4737== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4737== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4737== by 0x8062D5B: main (nginx.c:385)
==4737== If you believe this happened as a result of a stack
==4737== overflow in your program's main thread (unlikely but
==4737== possible), you can try to increase the size of the
==4737== main thread stack using the --main-stacksize= flag.
==4737== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 2: not matched with d ==4758== Invalid read of size 4
==4758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4758== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4758== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4758== by 0x8062D5B: main (nginx.c:385)
==4758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
052-sub-dfa.t TEST 2: not matched with d ==4758==
==4758== Process terminating with default action of signal 11 (SIGSEGV)
==4758== Access not within mapped region at address 0x0
==4758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4758== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4758== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4758== by 0x8062D5B: main (nginx.c:385)
==4758== If you believe this happened as a result of a stack
==4758== overflow in your program's main thread (unlikely but
==4758== possible), you can try to increase the size of the
==4758== main thread stack using the --main-stacksize= flag.
==4758== The main thread stack size used in this run was 8388608.

052-sub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==4767== Invalid read of size 4
==4767== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4767== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4767== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4767== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4767== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4767== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4767== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4767== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4767== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4767== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4767== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4767== by 0x8062D5B: main (nginx.c:385)
==4767== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4767==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==4767==
==4767== Process terminating with default action of signal 11 (SIGSEGV)
==4767== Access not within mapped region at address 0x0
==4767== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4767== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4767== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4767== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4767== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4767== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4767== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4767== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4767== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4767== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4767== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4767== by 0x8062D5B: main (nginx.c:385)
==4767== If you believe this happened as a result of a stack
==4767== overflow in your program's main thread (unlikely but
==4767== possible), you can try to increase the size of the
==4767== main thread stack using the --main-stacksize= flag.
==4767== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==4768== Invalid read of size 4
==4768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4768== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4768== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4768== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4768== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4768== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4768== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4768== by 0x8062D5B: main (nginx.c:385)
==4768== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4768==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==4768==
==4768== Process terminating with default action of signal 11 (SIGSEGV)
==4768== Access not within mapped region at address 0x0
==4768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4768== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4768== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4768== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4768== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4768== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4768== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4768== by 0x8062D5B: main (nginx.c:385)
==4768== If you believe this happened as a result of a stack
==4768== overflow in your program's main thread (unlikely but
==4768== possible), you can try to increase the size of the
==4768== main thread stack using the --main-stacksize= flag.
==4768== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 3: matched with jo ==4780== Invalid read of size 4
==4780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4780== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4780== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4780== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4780== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4780== by 0x8062D5B: main (nginx.c:385)
==4780== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4780==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 3: matched with jo ==4780==
==4780== Process terminating with default action of signal 11 (SIGSEGV)
==4780== Access not within mapped region at address 0x0
==4780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4780== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4780== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4780== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4780== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4780== by 0x8062D5B: main (nginx.c:385)
==4780== If you believe this happened as a result of a stack
==4780== overflow in your program's main thread (unlikely but
==4780== possible), you can try to increase the size of the
==4780== main thread stack using the --main-stacksize= flag.
==4780== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 3: matched with jo ==4801== Invalid read of size 4
==4801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4801== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4801== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4801== by 0x8062D5B: main (nginx.c:385)
==4801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 3: matched with jo ==4801==
==4801== Process terminating with default action of signal 11 (SIGSEGV)
==4801== Access not within mapped region at address 0x0
==4801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4801== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4801== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4801== by 0x8062D5B: main (nginx.c:385)
==4801== If you believe this happened as a result of a stack
==4801== overflow in your program's main thread (unlikely but
==4801== possible), you can try to increase the size of the
==4801== main thread stack using the --main-stacksize= flag.
==4801== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 3: matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
053-gsub-jit.t TEST 6: bad pattern + o ==4813== Invalid read of size 4
==4813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4813== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4813== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4813== by 0x8062D5B: main (nginx.c:385)
==4813== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4813==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 6: bad pattern + o ==4813==
==4813== Process terminating with default action of signal 11 (SIGSEGV)
==4813== Access not within mapped region at address 0x0
==4813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4813== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4813== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4813== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4813== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4813== by 0x8062D5B: main (nginx.c:385)
==4813== If you believe this happened as a result of a stack
==4813== overflow in your program's main thread (unlikely but
==4813== possible), you can try to increase the size of the
==4813== main thread stack using the --main-stacksize= flag.
==4813== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 6: bad pattern + o ==4834== Invalid read of size 4
==4834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4834== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4834== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4834== by 0x8062D5B: main (nginx.c:385)
==4834== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4834==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 6: bad pattern + o ==4834==
==4834== Process terminating with default action of signal 11 (SIGSEGV)
==4834== Access not within mapped region at address 0x0
==4834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4834== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4834== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4834== by 0x8062D5B: main (nginx.c:385)
==4834== If you believe this happened as a result of a stack
==4834== overflow in your program's main thread (unlikely but
==4834== possible), you can try to increase the size of the
==4834== main thread stack using the --main-stacksize= flag.
==4834== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 4: not matched with jo ==4846== Invalid read of size 4
==4846== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4846== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4846== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4846== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4846== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4846== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4846== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4846== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4846== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4846== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4846== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4846== by 0x8062D5B: main (nginx.c:385)
==4846== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4846==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 4: not matched with jo ==4846==
==4846== Process terminating with default action of signal 11 (SIGSEGV)
==4846== Access not within mapped region at address 0x0
==4846== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4846== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4846== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4846== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4846== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4846== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4846== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4846== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4846== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4846== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4846== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4846== by 0x8062D5B: main (nginx.c:385)
==4846== If you believe this happened as a result of a stack
==4846== overflow in your program's main thread (unlikely but
==4846== possible), you can try to increase the size of the
==4846== main thread stack using the --main-stacksize= flag.
==4846== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 4: not matched with jo ==4867== Invalid read of size 4
==4867== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4867== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4867== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4867== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4867== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4867== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4867== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4867== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4867== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4867== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4867== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4867== by 0x8062D5B: main (nginx.c:385)
==4867== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4867==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 4: not matched with jo ==4867==
==4867== Process terminating with default action of signal 11 (SIGSEGV)
==4867== Access not within mapped region at address 0x0
==4867== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4867== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4867== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4867== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4867== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4867== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4867== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4867== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4867== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4867== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4867== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4867== by 0x8062D5B: main (nginx.c:385)
==4867== If you believe this happened as a result of a stack
==4867== overflow in your program's main thread (unlikely but
==4867== possible), you can try to increase the size of the
==4867== main thread stack using the --main-stacksize= flag.
==4867== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 4: not matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
053-gsub-jit.t TEST 2: not matched with j ==4879== Invalid read of size 4
==4879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4879== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4879== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4879== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4879== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4879== by 0x8062D5B: main (nginx.c:385)
==4879== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4879==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 2: not matched with j ==4879==
==4879== Process terminating with default action of signal 11 (SIGSEGV)
==4879== Access not within mapped region at address 0x0
==4879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4879== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4879== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4879== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4879== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4879== by 0x8062D5B: main (nginx.c:385)
==4879== If you believe this happened as a result of a stack
==4879== overflow in your program's main thread (unlikely but
==4879== possible), you can try to increase the size of the
==4879== main thread stack using the --main-stacksize= flag.
==4879== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 2: not matched with j ==4900== Invalid read of size 4
==4900== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4900== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4900== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4900== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4900== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4900== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4900== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4900== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4900== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4900== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4900== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4900== by 0x8062D5B: main (nginx.c:385)
==4900== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4900==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 2: not matched with j ==4900==
==4900== Process terminating with default action of signal 11 (SIGSEGV)
==4900== Access not within mapped region at address 0x0
==4900== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4900== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4900== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4900== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4900== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4900== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4900== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4900== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4900== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4900== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4900== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4900== by 0x8062D5B: main (nginx.c:385)
==4900== If you believe this happened as a result of a stack
==4900== overflow in your program's main thread (unlikely but
==4900== possible), you can try to increase the size of the
==4900== main thread stack using the --main-stacksize= flag.
==4900== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 1: matched with j ==4912== Invalid read of size 4
==4912== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4912== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4912== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4912== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4912== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4912== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4912== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4912== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4912== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4912== by 0x8062D5B: main (nginx.c:385)
==4912== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4912==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 1: matched with j ==4912==
==4912== Process terminating with default action of signal 11 (SIGSEGV)
==4912== Access not within mapped region at address 0x0
==4912== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4912== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4912== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4912== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4912== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4912== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4912== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4912== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4912== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4912== by 0x8062D5B: main (nginx.c:385)
==4912== If you believe this happened as a result of a stack
==4912== overflow in your program's main thread (unlikely but
==4912== possible), you can try to increase the size of the
==4912== main thread stack using the --main-stacksize= flag.
==4912== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 1: matched with j ==4933== Invalid read of size 4
==4933== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4933== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4933== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4933== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4933== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4933== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4933== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4933== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4933== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4933== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4933== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4933== by 0x8062D5B: main (nginx.c:385)
==4933== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4933==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
053-gsub-jit.t TEST 1: matched with j ==4933==
==4933== Process terminating with default action of signal 11 (SIGSEGV)
==4933== Access not within mapped region at address 0x0
==4933== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4933== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4933== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4933== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4933== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4933== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4933== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4933== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4933== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4933== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4933== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4933== by 0x8062D5B: main (nginx.c:385)
==4933== If you believe this happened as a result of a stack
==4933== overflow in your program's main thread (unlikely but
==4933== possible), you can try to increase the size of the
==4933== main thread stack using the --main-stacksize= flag.
==4933== The main thread stack size used in this run was 8388608.

053-gsub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world world: 2
'
054-gsub-dfa.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==4942== Invalid read of size 4
==4942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4942== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4942== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4942== by 0x8062D5B: main (nginx.c:385)
==4942== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4942==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==4942==
==4942== Process terminating with default action of signal 11 (SIGSEGV)
==4942== Access not within mapped region at address 0x0
==4942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4942== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4942== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==4942== by 0x8062D5B: main (nginx.c:385)
==4942== If you believe this happened as a result of a stack
==4942== overflow in your program's main thread (unlikely but
==4942== possible), you can try to increase the size of the
==4942== main thread stack using the --main-stacksize= flag.
==4942== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==4943== Invalid read of size 4
==4943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4943== by 0x8062D5B: main (nginx.c:385)
==4943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==4943==
==4943== Process terminating with default action of signal 11 (SIGSEGV)
==4943== Access not within mapped region at address 0x0
==4943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4943== by 0x8062D5B: main (nginx.c:385)
==4943== If you believe this happened as a result of a stack
==4943== overflow in your program's main thread (unlikely but
==4943== possible), you can try to increase the size of the
==4943== main thread stack using the --main-stacksize= flag.
==4943== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks ==4955== Invalid read of size 4
==4955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4955== by 0x8062D5B: main (nginx.c:385)
==4955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks ==4955==
==4955== Process terminating with default action of signal 11 (SIGSEGV)
==4955== Access not within mapped region at address 0x0
==4955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4955== by 0x8062D5B: main (nginx.c:385)
==4955== If you believe this happened as a result of a stack
==4955== overflow in your program's main thread (unlikely but
==4955== possible), you can try to increase the size of the
==4955== main thread stack using the --main-stacksize= flag.
==4955== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks ==4976== Invalid read of size 4
==4976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4976== by 0x8062D5B: main (nginx.c:385)
==4976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks ==4976==
==4976== Process terminating with default action of signal 11 (SIGSEGV)
==4976== Access not within mapped region at address 0x0
==4976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==4976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==4976== by 0x8062D5B: main (nginx.c:385)
==4976== If you believe this happened as a result of a stack
==4976== overflow in your program's main thread (unlikely but
==4976== possible), you can try to increase the size of the
==4976== main thread stack using the --main-stacksize= flag.
==4976== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 3: matched with do ==4988== Invalid read of size 4
==4988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4988== by 0x8062D5B: main (nginx.c:385)
==4988== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4988==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 3: matched with do ==4988==
==4988== Process terminating with default action of signal 11 (SIGSEGV)
==4988== Access not within mapped region at address 0x0
==4988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==4988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==4988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==4988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==4988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==4988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==4988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==4988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==4988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==4988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==4988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==4988== by 0x8062D5B: main (nginx.c:385)
==4988== If you believe this happened as a result of a stack
==4988== overflow in your program's main thread (unlikely but
==4988== possible), you can try to increase the size of the
==4988== main thread stack using the --main-stacksize= flag.
==4988== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 3: matched with do ==5009== Invalid read of size 4
==5009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5009== by 0x8062D5B: main (nginx.c:385)
==5009== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5009==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 3: matched with do ==5009==
==5009== Process terminating with default action of signal 11 (SIGSEGV)
==5009== Access not within mapped region at address 0x0
==5009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5009== by 0x8062D5B: main (nginx.c:385)
==5009== If you believe this happened as a result of a stack
==5009== overflow in your program's main thread (unlikely but
==5009== possible), you can try to increase the size of the
==5009== main thread stack using the --main-stacksize= flag.
==5009== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 2: not matched with d ==5021== Invalid read of size 4
==5021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5021== by 0x8062D5B: main (nginx.c:385)
==5021== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5021==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 2: not matched with d ==5021==
==5021== Process terminating with default action of signal 11 (SIGSEGV)
==5021== Access not within mapped region at address 0x0
==5021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5021== by 0x8062D5B: main (nginx.c:385)
==5021== If you believe this happened as a result of a stack
==5021== overflow in your program's main thread (unlikely but
==5021== possible), you can try to increase the size of the
==5021== main thread stack using the --main-stacksize= flag.
==5021== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 2: not matched with d ==5042== Invalid read of size 4
==5042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5042== by 0x8062D5B: main (nginx.c:385)
==5042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 2: not matched with d ==5042==
==5042== Process terminating with default action of signal 11 (SIGSEGV)
==5042== Access not within mapped region at address 0x0
==5042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5042== by 0x8062D5B: main (nginx.c:385)
==5042== If you believe this happened as a result of a stack
==5042== overflow in your program's main thread (unlikely but
==5042== possible), you can try to increase the size of the
==5042== main thread stack using the --main-stacksize= flag.
==5042== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==5054== Invalid read of size 4
==5054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5054== by 0x8062D5B: main (nginx.c:385)
==5054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==5054==
==5054== Process terminating with default action of signal 11 (SIGSEGV)
==5054== Access not within mapped region at address 0x0
==5054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5054== by 0x8062D5B: main (nginx.c:385)
==5054== If you believe this happened as a result of a stack
==5054== overflow in your program's main thread (unlikely but
==5054== possible), you can try to increase the size of the
==5054== main thread stack using the --main-stacksize= flag.
==5054== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==5075== Invalid read of size 4
==5075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5075== by 0x8062D5B: main (nginx.c:385)
==5075== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5075==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks ==5075==
==5075== Process terminating with default action of signal 11 (SIGSEGV)
==5075== Access not within mapped region at address 0x0
==5075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5075== by 0x8062D5B: main (nginx.c:385)
==5075== If you believe this happened as a result of a stack
==5075== overflow in your program's main thread (unlikely but
==5075== possible), you can try to increase the size of the
==5075== main thread stack using the --main-stacksize= flag.
==5075== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 1: matched with d ==5087== Invalid read of size 4
==5087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5087== by 0x8062D5B: main (nginx.c:385)
==5087== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5087==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 1: matched with d ==5087==
==5087== Process terminating with default action of signal 11 (SIGSEGV)
==5087== Access not within mapped region at address 0x0
==5087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5087== by 0x8062D5B: main (nginx.c:385)
==5087== If you believe this happened as a result of a stack
==5087== overflow in your program's main thread (unlikely but
==5087== possible), you can try to increase the size of the
==5087== main thread stack using the --main-stacksize= flag.
==5087== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 1: matched with d ==5108== Invalid read of size 4
==5108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5108== by 0x8062D5B: main (nginx.c:385)
==5108== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5108==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 1: matched with d ==5108==
==5108== Process terminating with default action of signal 11 (SIGSEGV)
==5108== Access not within mapped region at address 0x0
==5108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5108== by 0x8062D5B: main (nginx.c:385)
==5108== If you believe this happened as a result of a stack
==5108== overflow in your program's main thread (unlikely but
==5108== possible), you can try to increase the size of the
==5108== main thread stack using the --main-stacksize= flag.
==5108== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 5: bad pattern ==5120== Invalid read of size 4
==5120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5120== by 0x8062D5B: main (nginx.c:385)
==5120== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 5: bad pattern ==5120==
==5120== Process terminating with default action of signal 11 (SIGSEGV)
==5120== Access not within mapped region at address 0x0
==5120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5120== by 0x8062D5B: main (nginx.c:385)
==5120== If you believe this happened as a result of a stack
==5120== overflow in your program's main thread (unlikely but
==5120== possible), you can try to increase the size of the
==5120== main thread stack using the --main-stacksize= flag.
==5120== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 5: bad pattern ==5159== Invalid read of size 4
==5159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5159== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5159== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5159== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5159== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5159== by 0x8062D5B: main (nginx.c:385)
==5159== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5159==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 5: bad pattern ==5159==
==5159== Process terminating with default action of signal 11 (SIGSEGV)
==5159== Access not within mapped region at address 0x0
==5159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5159== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5159== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5159== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5159== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5159== by 0x8062D5B: main (nginx.c:385)
==5159== If you believe this happened as a result of a stack
==5159== overflow in your program's main thread (unlikely but
==5159== possible), you can try to increase the size of the
==5159== main thread stack using the --main-stacksize= flag.
==5159== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 4: not matched with do ==5171== Invalid read of size 4
==5171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5171== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5171== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5171== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5171== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5171== by 0x8062D5B: main (nginx.c:385)
==5171== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5171==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 4: not matched with do ==5171==
==5171== Process terminating with default action of signal 11 (SIGSEGV)
==5171== Access not within mapped region at address 0x0
==5171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5171== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5171== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5171== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5171== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5171== by 0x8062D5B: main (nginx.c:385)
==5171== If you believe this happened as a result of a stack
==5171== overflow in your program's main thread (unlikely but
==5171== possible), you can try to increase the size of the
==5171== main thread stack using the --main-stacksize= flag.
==5171== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 4: not matched with do ==5193== Invalid read of size 4
==5193== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5193== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5193== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5193== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5193== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5193== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5193== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5193== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5193== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5193== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5193== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5193== by 0x8062D5B: main (nginx.c:385)
==5193== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5193==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
054-gsub-dfa.t TEST 4: not matched with do ==5193==
==5193== Process terminating with default action of signal 11 (SIGSEGV)
==5193== Access not within mapped region at address 0x0
==5193== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5193== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5193== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5193== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5193== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5193== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5193== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5193== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5193== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5193== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5193== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5193== by 0x8062D5B: main (nginx.c:385)
==5193== If you believe this happened as a result of a stack
==5193== overflow in your program's main thread (unlikely but
==5193== possible), you can try to increase the size of the
==5193== main thread stack using the --main-stacksize= flag.
==5193== The main thread stack size used in this run was 8388608.

054-gsub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
056-flush.t TEST 2: flush no wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==5202== Invalid read of size 4
==5202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5202== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5202== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5202== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5202== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==5202== by 0x8062D5B: main (nginx.c:385)
==5202== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5202==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 2: flush no wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==5202==
==5202== Process terminating with default action of signal 11 (SIGSEGV)
==5202== Access not within mapped region at address 0x0
==5202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5202== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5202== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5202== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5202== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==5202== by 0x8062D5B: main (nginx.c:385)
==5202== If you believe this happened as a result of a stack
==5202== overflow in your program's main thread (unlikely but
==5202== possible), you can try to increase the size of the
==5202== main thread stack using the --main-stacksize= flag.
==5202== The main thread stack size used in this run was 8388608.

056-flush.t TEST 2: flush no wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 2: flush no wait - content - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 2: flush no wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==5203== Invalid read of size 4
==5203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5203== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5203== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5203== by 0x8062D5B: main (nginx.c:385)
==5203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 2: flush no wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==5203==
==5203== Process terminating with default action of signal 11 (SIGSEGV)
==5203== Access not within mapped region at address 0x0
==5203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5203== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5203== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5203== by 0x8062D5B: main (nginx.c:385)
==5203== If you believe this happened as a result of a stack
==5203== overflow in your program's main thread (unlikely but
==5203== possible), you can try to increase the size of the
==5203== main thread stack using the --main-stacksize= flag.
==5203== The main thread stack size used in this run was 8388608.

056-flush.t TEST 2: flush no wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 2: flush no wait - content - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 1: flush wait - content ==5215== Invalid read of size 4
==5215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5215== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5215== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5215== by 0x8062D5B: main (nginx.c:385)
==5215== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5215==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 1: flush wait - content ==5215==
==5215== Process terminating with default action of signal 11 (SIGSEGV)
==5215== Access not within mapped region at address 0x0
==5215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5215== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5215== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5215== by 0x8062D5B: main (nginx.c:385)
==5215== If you believe this happened as a result of a stack
==5215== overflow in your program's main thread (unlikely but
==5215== possible), you can try to increase the size of the
==5215== main thread stack using the --main-stacksize= flag.
==5215== The main thread stack size used in this run was 8388608.

056-flush.t TEST 1: flush wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 1: flush wait - content - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 1: flush wait - content ==5236== Invalid read of size 4
==5236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5236== by 0x8062D5B: main (nginx.c:385)
==5236== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5236==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 1: flush wait - content ==5236==
==5236== Process terminating with default action of signal 11 (SIGSEGV)
==5236== Access not within mapped region at address 0x0
==5236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5236== by 0x8062D5B: main (nginx.c:385)
==5236== If you believe this happened as a result of a stack
==5236== overflow in your program's main thread (unlikely but
==5236== possible), you can try to increase the size of the
==5236== main thread stack using the --main-stacksize= flag.
==5236== The main thread stack size used in this run was 8388608.

056-flush.t TEST 1: flush wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 1: flush wait - content - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 4: flush wait in a user coroutine ==5248== Invalid read of size 4
==5248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5248== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5248== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5248== by 0x8062D5B: main (nginx.c:385)
==5248== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5248==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 4: flush wait in a user coroutine ==5248==
==5248== Process terminating with default action of signal 11 (SIGSEGV)
==5248== Access not within mapped region at address 0x0
==5248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5248== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5248== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5248== by 0x8062D5B: main (nginx.c:385)
==5248== If you believe this happened as a result of a stack
==5248== overflow in your program's main thread (unlikely but
==5248== possible), you can try to increase the size of the
==5248== main thread stack using the --main-stacksize= flag.
==5248== The main thread stack size used in this run was 8388608.

056-flush.t TEST 4: flush wait in a user coroutine - status code ok got: ''
expected: '200'
056-flush.t TEST 4: flush wait in a user coroutine - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, world
-true
-hiya
-true
'
056-flush.t TEST 4: flush wait in a user coroutine ==5269== Invalid read of size 4
==5269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5269== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5269== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5269== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5269== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5269== by 0x8062D5B: main (nginx.c:385)
==5269== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5269==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 4: flush wait in a user coroutine ==5269==
==5269== Process terminating with default action of signal 11 (SIGSEGV)
==5269== Access not within mapped region at address 0x0
==5269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5269== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5269== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5269== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5269== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5269== by 0x8062D5B: main (nginx.c:385)
==5269== If you believe this happened as a result of a stack
==5269== overflow in your program's main thread (unlikely but
==5269== possible), you can try to increase the size of the
==5269== main thread stack using the --main-stacksize= flag.
==5269== The main thread stack size used in this run was 8388608.

056-flush.t TEST 4: flush wait in a user coroutine - status code ok got: ''
expected: '200'
056-flush.t TEST 4: flush wait in a user coroutine - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, world
-true
-hiya
-true
'
056-flush.t TEST 5: flush before sending out the header ==5281== Invalid read of size 4
==5281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5281== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5281== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5281== by 0x8062D5B: main (nginx.c:385)
==5281== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 5: flush before sending out the header ==5281==
==5281== Process terminating with default action of signal 11 (SIGSEGV)
==5281== Access not within mapped region at address 0x0
==5281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5281== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5281== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5281== by 0x8062D5B: main (nginx.c:385)
==5281== If you believe this happened as a result of a stack
==5281== overflow in your program's main thread (unlikely but
==5281== possible), you can try to increase the size of the
==5281== main thread stack using the --main-stacksize= flag.
==5281== The main thread stack size used in this run was 8388608.

056-flush.t TEST 5: flush before sending out the header - status code ok got: ''
expected: '200'
056-flush.t TEST 5: flush before sending out the header - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not found
'
056-flush.t TEST 5: flush before sending out the header ==5302== Invalid read of size 4
==5302== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5302== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5302== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5302== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5302== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5302== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5302== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5302== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5302== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5302== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5302== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5302== by 0x8062D5B: main (nginx.c:385)
==5302== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5302==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
056-flush.t TEST 5: flush before sending out the header ==5302==
==5302== Process terminating with default action of signal 11 (SIGSEGV)
==5302== Access not within mapped region at address 0x0
==5302== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5302== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5302== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5302== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5302== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5302== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5302== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5302== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5302== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5302== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5302== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5302== by 0x8062D5B: main (nginx.c:385)
==5302== If you believe this happened as a result of a stack
==5302== overflow in your program's main thread (unlikely but
==5302== possible), you can try to increase the size of the
==5302== main thread stack using the --main-stacksize= flag.
==5302== The main thread stack size used in this run was 8388608.

056-flush.t TEST 5: flush before sending out the header - status code ok got: ''
expected: '200'
056-flush.t TEST 5: flush before sending out the header - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not found
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - Can't connect to 127.0.0.1:1984: Connection refused ==5311== Invalid read of size 4
==5311== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5311== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5311== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5311== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5311== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5311== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5311== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5311== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5311== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5311== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5311== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==5311== by 0x8062D5B: main (nginx.c:385)
==5311== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5311==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - Can't connect to 127.0.0.1:1984: Connection refused ==5311==
==5311== Process terminating with default action of signal 11 (SIGSEGV)
==5311== Access not within mapped region at address 0x0
==5311== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5311== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5311== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5311== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5311== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5311== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5311== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5311== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5311== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5311== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5311== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==5311== by 0x8062D5B: main (nginx.c:385)
==5311== If you believe this happened as a result of a stack
==5311== overflow in your program's main thread (unlikely but
==5311== possible), you can try to increase the size of the
==5311== main thread stack using the --main-stacksize= flag.
==5311== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:22:37 [alert] 5310\#0: worker process 5311 exited on signal 11" (req 0) 2020/10/27 04:22:37 [debug] 5310\#0: shmtx forced unlock
2020/10/27 04:22:37 [debug] 5310\#0: wake up, sigio 0
2020/10/27 04:22:37 [debug] 5310\#0: reap children
2020/10/27 04:22:37 [debug] 5310\#0: child: 0 5311 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:22:37 [debug] 5310\#0: channel 3:9
2020/10/27 04:22:37 [notice] 5310\#0: start worker process 5312
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - Can't connect to 127.0.0.1:1984: Connection refused ==5312== Invalid read of size 4
==5312== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5312== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5312== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5312== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5312== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5312== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5312== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5312== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5312== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5312== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5312== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5312== by 0x8062D5B: main (nginx.c:385)
==5312== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5312==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - Can't connect to 127.0.0.1:1984: Connection refused ==5312==
==5312== Process terminating with default action of signal 11 (SIGSEGV)
==5312== Access not within mapped region at address 0x0
==5312== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5312== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5312== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5312== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5312== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5312== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5312== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5312== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5312== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5312== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5312== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5312== by 0x8062D5B: main (nginx.c:385)
==5312== If you believe this happened as a result of a stack
==5312== overflow in your program's main thread (unlikely but
==5312== possible), you can try to increase the size of the
==5312== main thread stack using the --main-stacksize= flag.
==5312== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:22:38 [alert] 5310\#0: worker process 5312 exited on signal 11" (req 1) 2020/10/27 04:22:38 [debug] 5310\#0: shmtx forced unlock
2020/10/27 04:22:38 [debug] 5310\#0: wake up, sigio 0
2020/10/27 04:22:38 [debug] 5310\#0: reap children
2020/10/27 04:22:38 [debug] 5310\#0: child: 0 5312 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:22:38 [debug] 5310\#0: channel 3:9
2020/10/27 04:22:38 [notice] 5310\#0: start worker process 5313
'
057-flush-timeout.t TEST 1: flush wait - timeout ==5320== Invalid read of size 4
==5320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5320== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5320== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5320== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5320== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5320== by 0x8062D5B: main (nginx.c:385)
==5320== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5320==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 1: flush wait - timeout ==5320==
==5320== Process terminating with default action of signal 11 (SIGSEGV)
==5320== Access not within mapped region at address 0x0
==5320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5320== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5320== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5320== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5320== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5320== by 0x8062D5B: main (nginx.c:385)
==5320== If you believe this happened as a result of a stack
==5320== overflow in your program's main thread (unlikely but
==5320== possible), you can try to increase the size of the
==5320== main thread stack using the --main-stacksize= flag.
==5320== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 1: flush wait - timeout - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 1: flush wait - timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 0)
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:stream response: hello, world, client)" should match a line in error.log (req 0)
057-flush-timeout.t TEST 1: flush wait - timeout ==5341== Invalid read of size 4
==5341== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5341== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5341== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5341== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5341== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5341== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5341== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5341== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5341== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5341== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5341== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5341== by 0x8062D5B: main (nginx.c:385)
==5341== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5341==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 1: flush wait - timeout ==5341==
==5341== Process terminating with default action of signal 11 (SIGSEGV)
==5341== Access not within mapped region at address 0x0
==5341== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5341== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5341== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5341== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5341== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5341== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5341== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5341== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5341== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5341== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5341== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5341== by 0x8062D5B: main (nginx.c:385)
==5341== If you believe this happened as a result of a stack
==5341== overflow in your program's main thread (unlikely but
==5341== possible), you can try to increase the size of the
==5341== main thread stack using the --main-stacksize= flag.
==5341== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 1: flush wait - timeout - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 1: flush wait - timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 1)
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:stream response: hello, world, client)" should match a line in error.log (req 1)
057-flush-timeout.t TEST 2: send timeout timer got removed in time ==5349== Invalid read of size 4
==5349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5349== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5349== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5349== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5349== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5349== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5349== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5349== by 0x8062D5B: main (nginx.c:385)
==5349== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5349==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 2: send timeout timer got removed in time ==5349==
==5349== Process terminating with default action of signal 11 (SIGSEGV)
==5349== Access not within mapped region at address 0x0
==5349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5349== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5349== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5349== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5349== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5349== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5349== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5349== by 0x8062D5B: main (nginx.c:385)
==5349== If you believe this happened as a result of a stack
==5349== overflow in your program's main thread (unlikely but
==5349== possible), you can try to increase the size of the
==5349== main thread stack using the --main-stacksize= flag.
==5349== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 2: send timeout timer got removed in time - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 2: send timeout timer got removed in time - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 141 bytes of response data.
'
057-flush-timeout.t TEST 2: send timeout timer got removed in time ==5371== Invalid read of size 4
==5371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5371== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5371== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5371== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5371== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5371== by 0x8062D5B: main (nginx.c:385)
==5371== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5371==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 2: send timeout timer got removed in time ==5371==
==5371== Process terminating with default action of signal 11 (SIGSEGV)
==5371== Access not within mapped region at address 0x0
==5371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5371== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5371== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5371== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5371== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5371== by 0x8062D5B: main (nginx.c:385)
==5371== If you believe this happened as a result of a stack
==5371== overflow in your program's main thread (unlikely but
==5371== possible), you can try to increase the size of the
==5371== main thread stack using the --main-stacksize= flag.
==5371== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 2: send timeout timer got removed in time - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 2: send timeout timer got removed in time - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 141 bytes of response data.
'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) ==5379== Invalid read of size 4
==5379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5379== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5379== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5379== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5379== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5379== by 0x8062D5B: main (nginx.c:385)
==5379== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) ==5379==
==5379== Process terminating with default action of signal 11 (SIGSEGV)
==5379== Access not within mapped region at address 0x0
==5379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5379== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5379== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5379== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5379== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5379== by 0x8062D5B: main (nginx.c:385)
==5379== If you believe this happened as a result of a stack
==5379== overflow in your program's main thread (unlikely but
==5379== possible), you can try to increase the size of the
==5379== main thread stack using the --main-stacksize= flag.
==5379== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 41 bytes of response data.
'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) ==5400== Invalid read of size 4
==5400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5400== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5400== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5400== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5400== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5400== by 0x8062D5B: main (nginx.c:385)
==5400== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5400==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) ==5400==
==5400== Process terminating with default action of signal 11 (SIGSEGV)
==5400== Access not within mapped region at address 0x0
==5400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5400== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5400== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5400== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5400== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5400== by 0x8062D5B: main (nginx.c:385)
==5400== If you believe this happened as a result of a stack
==5400== overflow in your program's main thread (unlikely but
==5400== possible), you can try to increase the size of the
==5400== main thread stack using the --main-stacksize= flag.
==5400== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 41 bytes of response data.
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error ==5408== Invalid read of size 4
==5408== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5408== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5408== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5408== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5408== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5408== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5408== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5408== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5408== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5408== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5408== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5408== by 0x8062D5B: main (nginx.c:385)
==5408== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5408==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 4: flush wait - return "timeout" error ==5408==
==5408== Process terminating with default action of signal 11 (SIGSEGV)
==5408== Access not within mapped region at address 0x0
==5408== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5408== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5408== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5408== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5408== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5408== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5408== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5408== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5408== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5408== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5408== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5408== by 0x8062D5B: main (nginx.c:385)
==5408== If you believe this happened as a result of a stack
==5408== overflow in your program's main thread (unlikely but
==5408== possible), you can try to increase the size of the
==5408== main thread stack using the --main-stacksize= flag.
==5408== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 4: flush wait - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 0)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:23:39 [alert] 5310\#0: worker process 5408 exited on signal 11" (req 0) 2020/10/27 04:23:39 [debug] 5310\#0: shmtx forced unlock
2020/10/27 04:23:39 [debug] 5310\#0: wake up, sigio 0
2020/10/27 04:23:39 [debug] 5310\#0: reap children
2020/10/27 04:23:39 [debug] 5310\#0: child: 0 5408 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:23:39 [debug] 5310\#0: channel 3:4
2020/10/27 04:23:39 [notice] 5310\#0: start worker process 5429
2020/10/27 04:23:39 [debug] 5310\#0: sigsuspend
2020/10/27 04:23:39 [debug] 5429\#0: malloc: 05A21918:12
2020/10/27 04:23:39 [debug] 5429\#0: malloc: 05A21958:8
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error ==5429== Invalid read of size 4
==5429== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5429== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5429== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5429== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5429== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5429== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5429== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5429== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5429== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5429== by 0x8062D5B: main (nginx.c:385)
==5429== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5429==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
057-flush-timeout.t TEST 4: flush wait - return "timeout" error ==5429==
==5429== Process terminating with default action of signal 11 (SIGSEGV)
==5429== Access not within mapped region at address 0x0
==5429== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5429== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5429== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5429== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5429== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5429== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==5429== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==5429== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5429== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5429== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5429== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5429== by 0x8062D5B: main (nginx.c:385)
==5429== If you believe this happened as a result of a stack
==5429== overflow in your program's main thread (unlikely but
==5429== possible), you can try to increase the size of the
==5429== main thread stack using the --main-stacksize= flag.
==5429== The main thread stack size used in this run was 8388608.

057-flush-timeout.t TEST 4: flush wait - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 1)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:23:41 [alert] 5310\#0: worker process 5429 exited on signal 11" (req 1) 2020/10/27 04:23:41 [debug] 5310\#0: shmtx forced unlock
2020/10/27 04:23:41 [debug] 5310\#0: wake up, sigio 0
2020/10/27 04:23:41 [debug] 5310\#0: reap children
2020/10/27 04:23:41 [debug] 5310\#0: child: 0 5429 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 5: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==5438== Invalid read of size 4
==5438== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5438== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5438== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5438== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5438== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5438== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5438== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5438== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5438== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5438== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5438== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==5438== by 0x8062D5B: main (nginx.c:385)
==5438== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5438==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 5: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==5438==
==5438== Process terminating with default action of signal 11 (SIGSEGV)
==5438== Access not within mapped region at address 0x0
==5438== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5438== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5438== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5438== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5438== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5438== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5438== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5438== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5438== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5438== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5438== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==5438== by 0x8062D5B: main (nginx.c:385)
==5438== If you believe this happened as a result of a stack
==5438== overflow in your program's main thread (unlikely but
==5438== possible), you can try to increase the size of the
==5438== main thread stack using the --main-stacksize= flag.
==5438== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 5: connection refused (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 5: connection refused (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 5: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==5439== Invalid read of size 4
==5439== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5439== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5439== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5439== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5439== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5439== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5439== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5439== by 0x8062D5B: main (nginx.c:385)
==5439== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5439==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 5: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==5439==
==5439== Process terminating with default action of signal 11 (SIGSEGV)
==5439== Access not within mapped region at address 0x0
==5439== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5439== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5439== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5439== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5439== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5439== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5439== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5439== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5439== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5439== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5439== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5439== by 0x8062D5B: main (nginx.c:385)
==5439== If you believe this happened as a result of a stack
==5439== overflow in your program's main thread (unlikely but
==5439== possible), you can try to increase the size of the
==5439== main thread stack using the --main-stacksize= flag.
==5439== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 5: connection refused (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 5: connection refused (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 53: reuse cleanup ==5451== Invalid read of size 4
==5451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5451== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5451== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5451== by 0x8062D5B: main (nginx.c:385)
==5451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 53: reuse cleanup ==5451==
==5451== Process terminating with default action of signal 11 (SIGSEGV)
==5451== Access not within mapped region at address 0x0
==5451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5451== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5451== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5451== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5451== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5451== by 0x8062D5B: main (nginx.c:385)
==5451== If you believe this happened as a result of a stack
==5451== overflow in your program's main thread (unlikely but
==5451== possible), you can try to increase the size of the
==5451== main thread stack using the --main-stacksize= flag.
==5451== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 53: reuse cleanup - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 53: reuse cleanup - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 53: reuse cleanup - pattern "lua stream cleanup reuse" should match a line in error.log (req 0)
058-tcp-socket.t TEST 53: reuse cleanup ==5472== Invalid read of size 4
==5472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5472== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5472== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5472== by 0x8062D5B: main (nginx.c:385)
==5472== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5472==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 53: reuse cleanup ==5472==
==5472== Process terminating with default action of signal 11 (SIGSEGV)
==5472== Access not within mapped region at address 0x0
==5472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5472== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5472== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5472== by 0x8062D5B: main (nginx.c:385)
==5472== If you believe this happened as a result of a stack
==5472== overflow in your program's main thread (unlikely but
==5472== possible), you can try to increase the size of the
==5472== main thread stack using the --main-stacksize= flag.
==5472== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 53: reuse cleanup - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 53: reuse cleanup - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 53: reuse cleanup - pattern "lua stream cleanup reuse" should match a line in error.log (req 1)
058-tcp-socket.t TEST 50: tcp_nodelay off ==5484== Invalid read of size 4
==5484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5484== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5484== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5484== by 0x8062D5B: main (nginx.c:385)
==5484== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5484==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 50: tcp_nodelay off ==5484==
==5484== Process terminating with default action of signal 11 (SIGSEGV)
==5484== Access not within mapped region at address 0x0
==5484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5484== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5484== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5484== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5484== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5484== by 0x8062D5B: main (nginx.c:385)
==5484== If you believe this happened as a result of a stack
==5484== overflow in your program's main thread (unlikely but
==5484== possible), you can try to increase the size of the
==5484== main thread stack using the --main-stacksize= flag.
==5484== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 50: tcp_nodelay off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 50: tcp_nodelay off - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 50: tcp_nodelay off ==5505== Invalid read of size 4
==5505== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5505== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5505== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5505== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5505== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5505== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5505== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5505== by 0x8062D5B: main (nginx.c:385)
==5505== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5505==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 50: tcp_nodelay off ==5505==
==5505== Process terminating with default action of signal 11 (SIGSEGV)
==5505== Access not within mapped region at address 0x0
==5505== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5505== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5505== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5505== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5505== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5505== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5505== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5505== by 0x8062D5B: main (nginx.c:385)
==5505== If you believe this happened as a result of a stack
==5505== overflow in your program's main thread (unlikely but
==5505== possible), you can try to increase the size of the
==5505== main thread stack using the --main-stacksize= flag.
==5505== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 50: tcp_nodelay off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 50: tcp_nodelay off - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) ==5517== Invalid read of size 4
==5517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5517== by 0x8062D5B: main (nginx.c:385)
==5517== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5517==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) ==5517==
==5517== Process terminating with default action of signal 11 (SIGSEGV)
==5517== Access not within mapped region at address 0x0
==5517== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5517== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5517== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5517== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5517== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5517== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5517== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5517== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5517== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5517== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5517== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5517== by 0x8062D5B: main (nginx.c:385)
==5517== If you believe this happened as a result of a stack
==5517== overflow in your program's main thread (unlikely but
==5517== possible), you can try to increase the size of the
==5517== main thread stack using the --main-stacksize= flag.
==5517== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to receive: timeout
-failed to receive: timeout
'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) ==5538== Invalid read of size 4
==5538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5538== by 0x8062D5B: main (nginx.c:385)
==5538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) ==5538==
==5538== Process terminating with default action of signal 11 (SIGSEGV)
==5538== Access not within mapped region at address 0x0
==5538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5538== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5538== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5538== by 0x8062D5B: main (nginx.c:385)
==5538== If you believe this happened as a result of a stack
==5538== overflow in your program's main thread (unlikely but
==5538== possible), you can try to increase the size of the
==5538== main thread stack using the --main-stacksize= flag.
==5538== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to receive: timeout
-failed to receive: timeout
'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
058-tcp-socket.t TEST 62: receiveany method in cosocket ==5550== Invalid read of size 4
==5550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5550== by 0x8062D5B: main (nginx.c:385)
==5550== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5550==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 62: receiveany method in cosocket ==5550==
==5550== Process terminating with default action of signal 11 (SIGSEGV)
==5550== Access not within mapped region at address 0x0
==5550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5550== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5550== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5550== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5550== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5550== by 0x8062D5B: main (nginx.c:385)
==5550== If you believe this happened as a result of a stack
==5550== overflow in your program's main thread (unlikely but
==5550== possible), you can try to increase the size of the
==5550== main thread stack using the --main-stacksize= flag.
==5550== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 62: receiveany method in cosocket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 62: receiveany method in cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-1
-22
-hello world
'
058-tcp-socket.t TEST 62: receiveany method in cosocket ==5571== Invalid read of size 4
==5571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5571== by 0x8062D5B: main (nginx.c:385)
==5571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 62: receiveany method in cosocket ==5571==
==5571== Process terminating with default action of signal 11 (SIGSEGV)
==5571== Access not within mapped region at address 0x0
==5571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5571== by 0x8062D5B: main (nginx.c:385)
==5571== If you believe this happened as a result of a stack
==5571== overflow in your program's main thread (unlikely but
==5571== possible), you can try to increase the size of the
==5571== main thread stack using the --main-stacksize= flag.
==5571== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 62: receiveany method in cosocket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 62: receiveany method in cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-1
-22
-hello world
'
058-tcp-socket.t TEST 1: sanity ==5583== Invalid read of size 4
==5583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5583== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5583== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5583== by 0x8062D5B: main (nginx.c:385)
==5583== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5583==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 1: sanity ==5583==
==5583== Process terminating with default action of signal 11 (SIGSEGV)
==5583== Access not within mapped region at address 0x0
==5583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5583== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5583== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5583== by 0x8062D5B: main (nginx.c:385)
==5583== If you believe this happened as a result of a stack
==5583== overflow in your program's main thread (unlikely but
==5583== possible), you can try to increase the size of the
==5583== main thread stack using the --main-stacksize= flag.
==5583== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 1: sanity ==5604== Invalid read of size 4
==5604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5604== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5604== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5604== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5604== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5604== by 0x8062D5B: main (nginx.c:385)
==5604== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5604==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 1: sanity ==5604==
==5604== Process terminating with default action of signal 11 (SIGSEGV)
==5604== Access not within mapped region at address 0x0
==5604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5604== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5604== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5604== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5604== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5604== by 0x8062D5B: main (nginx.c:385)
==5604== If you believe this happened as a result of a stack
==5604== overflow in your program's main thread (unlikely but
==5604== possible), you can try to increase the size of the
==5604== main thread stack using the --main-stacksize= flag.
==5604== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive ==5616== Invalid read of size 4
==5616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5616== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5616== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5616== by 0x8062D5B: main (nginx.c:385)
==5616== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5616==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 45: bad request tries to set keepalive ==5616==
==5616== Process terminating with default action of signal 11 (SIGSEGV)
==5616== Access not within mapped region at address 0x0
==5616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5616== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5616== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5616== by 0x8062D5B: main (nginx.c:385)
==5616== If you believe this happened as a result of a stack
==5616== overflow in your program's main thread (unlikely but
==5616== possible), you can try to increase the size of the
==5616== main thread stack using the --main-stacksize= flag.
==5616== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 45: bad request tries to set keepalive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:07 [alert] 5437\#0: worker process 5616 exited on signal 11" (req 0) 2020/10/27 04:24:07 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:07 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:07 [debug] 5437\#0: reap children
2020/10/27 04:24:07 [debug] 5437\#0: child: 0 5616 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive ==5637== Invalid read of size 4
==5637== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5637== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5637== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5637== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5637== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5637== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5637== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5637== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5637== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5637== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5637== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5637== by 0x8062D5B: main (nginx.c:385)
==5637== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5637==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 45: bad request tries to set keepalive ==5637==
==5637== Process terminating with default action of signal 11 (SIGSEGV)
==5637== Access not within mapped region at address 0x0
==5637== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5637== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5637== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5637== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5637== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5637== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5637== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5637== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5637== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5637== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5637== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5637== by 0x8062D5B: main (nginx.c:385)
==5637== If you believe this happened as a result of a stack
==5637== overflow in your program's main thread (unlikely but
==5637== possible), you can try to increase the size of the
==5637== main thread stack using the --main-stacksize= flag.
==5637== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 45: bad request tries to set keepalive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:08 [alert] 5437\#0: worker process 5637 exited on signal 11" (req 1) 2020/10/27 04:24:08 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:08 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:08 [debug] 5437\#0: reap children
2020/10/27 04:24:08 [debug] 5437\#0: child: 0 5637 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 63: receiveany send data after read side closed ==5650== Invalid read of size 4
==5650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5650== by 0x8062D5B: main (nginx.c:385)
==5650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 63: receiveany send data after read side closed ==5650==
==5650== Process terminating with default action of signal 11 (SIGSEGV)
==5650== Access not within mapped region at address 0x0
==5650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5650== by 0x8062D5B: main (nginx.c:385)
==5650== If you believe this happened as a result of a stack
==5650== overflow in your program's main thread (unlikely but
==5650== possible), you can try to increase the size of the
==5650== main thread stack using the --main-stacksize= flag.
==5650== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 63: receiveany send data after read side closed - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 63: receiveany send data after read side closed ==5673== Invalid read of size 4
==5673== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5673== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5673== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5673== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5673== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5673== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5673== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5673== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5673== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5673== by 0x8062D5B: main (nginx.c:385)
==5673== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5673==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 63: receiveany send data after read side closed ==5673==
==5673== Process terminating with default action of signal 11 (SIGSEGV)
==5673== Access not within mapped region at address 0x0
==5673== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5673== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5673== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5673== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5673== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5673== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5673== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5673== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5673== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5673== by 0x8062D5B: main (nginx.c:385)
==5673== If you believe this happened as a result of a stack
==5673== overflow in your program's main thread (unlikely but
==5673== possible), you can try to increase the size of the
==5673== main thread stack using the --main-stacksize= flag.
==5673== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 63: receiveany send data after read side closed - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) ==5687== Invalid read of size 4
==5687== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5687== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5687== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5687== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5687== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5687== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5687== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5687== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5687== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5687== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5687== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5687== by 0x8062D5B: main (nginx.c:385)
==5687== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5687==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) ==5687==
==5687== Process terminating with default action of signal 11 (SIGSEGV)
==5687== Access not within mapped region at address 0x0
==5687== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5687== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5687== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5687== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5687== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5687== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5687== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5687== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5687== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5687== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5687== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5687== by 0x8062D5B: main (nginx.c:385)
==5687== If you believe this happened as a result of a stack
==5687== overflow in your program's main thread (unlikely but
==5687== possible), you can try to increase the size of the
==5687== main thread stack using the --main-stacksize= flag.
==5687== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) ==5708== Invalid read of size 4
==5708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5708== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5708== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5708== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5708== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5708== by 0x8062D5B: main (nginx.c:385)
==5708== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5708==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) ==5708==
==5708== Process terminating with default action of signal 11 (SIGSEGV)
==5708== Access not within mapped region at address 0x0
==5708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5708== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5708== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5708== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5708== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5708== by 0x8062D5B: main (nginx.c:385)
==5708== If you believe this happened as a result of a stack
==5708== overflow in your program's main thread (unlikely but
==5708== possible), you can try to increase the size of the
==5708== main thread stack using the --main-stacksize= flag.
==5708== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 11: *a pattern for receive ==5720== Invalid read of size 4
==5720== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5720== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5720== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5720== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5720== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5720== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5720== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5720== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5720== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5720== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5720== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5720== by 0x8062D5B: main (nginx.c:385)
==5720== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5720==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 11: *a pattern for receive ==5720==
==5720== Process terminating with default action of signal 11 (SIGSEGV)
==5720== Access not within mapped region at address 0x0
==5720== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5720== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5720== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5720== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5720== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5720== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5720== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5720== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5720== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5720== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5720== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5720== by 0x8062D5B: main (nginx.c:385)
==5720== If you believe this happened as a result of a stack
==5720== overflow in your program's main thread (unlikely but
==5720== possible), you can try to increase the size of the
==5720== main thread stack using the --main-stacksize= flag.
==5720== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 11: *a pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 11: *a pattern for receive - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 11: *a pattern for receive ==5741== Invalid read of size 4
==5741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5741== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5741== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5741== by 0x8062D5B: main (nginx.c:385)
==5741== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5741==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 11: *a pattern for receive ==5741==
==5741== Process terminating with default action of signal 11 (SIGSEGV)
==5741== Access not within mapped region at address 0x0
==5741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5741== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5741== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5741== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5741== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5741== by 0x8062D5B: main (nginx.c:385)
==5741== If you believe this happened as a result of a stack
==5741== overflow in your program's main thread (unlikely but
==5741== possible), you can try to increase the size of the
==5741== main thread stack using the --main-stacksize= flag.
==5741== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 11: *a pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 11: *a pattern for receive - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 49: tcp_nodelay on ==5753== Invalid read of size 4
==5753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5753== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5753== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5753== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5753== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5753== by 0x8062D5B: main (nginx.c:385)
==5753== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5753==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 49: tcp_nodelay on ==5753==
==5753== Process terminating with default action of signal 11 (SIGSEGV)
==5753== Access not within mapped region at address 0x0
==5753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5753== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5753== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5753== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5753== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5753== by 0x8062D5B: main (nginx.c:385)
==5753== If you believe this happened as a result of a stack
==5753== overflow in your program's main thread (unlikely but
==5753== possible), you can try to increase the size of the
==5753== main thread stack using the --main-stacksize= flag.
==5753== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 49: tcp_nodelay on - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 49: tcp_nodelay on - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 49: tcp_nodelay on ==5774== Invalid read of size 4
==5774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5774== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5774== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5774== by 0x8062D5B: main (nginx.c:385)
==5774== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5774==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 49: tcp_nodelay on ==5774==
==5774== Process terminating with default action of signal 11 (SIGSEGV)
==5774== Access not within mapped region at address 0x0
==5774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5774== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5774== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5774== by 0x8062D5B: main (nginx.c:385)
==5774== If you believe this happened as a result of a stack
==5774== overflow in your program's main thread (unlikely but
==5774== possible), you can try to increase the size of the
==5774== main thread stack using the --main-stacksize= flag.
==5774== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 49: tcp_nodelay on - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 49: tcp_nodelay on - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) ==5786== Invalid read of size 4
==5786== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5786== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5786== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5786== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5786== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5786== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5786== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5786== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5786== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5786== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5786== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5786== by 0x8062D5B: main (nginx.c:385)
==5786== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5786==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 18: receive by chunks (stringified size) ==5786==
==5786== Process terminating with default action of signal 11 (SIGSEGV)
==5786== Access not within mapped region at address 0x0
==5786== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5786== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5786== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5786== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5786== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5786== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5786== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5786== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5786== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5786== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5786== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5786== by 0x8062D5B: main (nginx.c:385)
==5786== If you believe this happened as a result of a stack
==5786== overflow in your program's main thread (unlikely but
==5786== possible), you can try to increase the size of the
==5786== main thread stack using the --main-stacksize= flag.
==5786== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 18: receive by chunks (stringified size) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) ==5807== Invalid read of size 4
==5807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5807== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5807== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5807== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5807== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5807== by 0x8062D5B: main (nginx.c:385)
==5807== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5807==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 18: receive by chunks (stringified size) ==5807==
==5807== Process terminating with default action of signal 11 (SIGSEGV)
==5807== Access not within mapped region at address 0x0
==5807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5807== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5807== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5807== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5807== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5807== by 0x8062D5B: main (nginx.c:385)
==5807== If you believe this happened as a result of a stack
==5807== overflow in your program's main thread (unlikely but
==5807== possible), you can try to increase the size of the
==5807== main thread stack using the --main-stacksize= flag.
==5807== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 18: receive by chunks (stringified size) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 2: no trailing newline ==5819== Invalid read of size 4
==5819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5819== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5819== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5819== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5819== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5819== by 0x8062D5B: main (nginx.c:385)
==5819== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5819==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 2: no trailing newline ==5819==
==5819== Process terminating with default action of signal 11 (SIGSEGV)
==5819== Access not within mapped region at address 0x0
==5819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5819== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5819== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5819== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5819== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5819== by 0x8062D5B: main (nginx.c:385)
==5819== If you believe this happened as a result of a stack
==5819== overflow in your program's main thread (unlikely but
==5819== possible), you can try to increase the size of the
==5819== main thread stack using the --main-stacksize= flag.
==5819== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 2: no trailing newline - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 2: no trailing newline - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 3
-received: Connection: close
-received:
-failed to receive a line: closed [foo]
-closed
'
058-tcp-socket.t TEST 2: no trailing newline ==5840== Invalid read of size 4
==5840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5840== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5840== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5840== by 0x8062D5B: main (nginx.c:385)
==5840== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5840==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 2: no trailing newline ==5840==
==5840== Process terminating with default action of signal 11 (SIGSEGV)
==5840== Access not within mapped region at address 0x0
==5840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5840== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5840== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5840== by 0x8062D5B: main (nginx.c:385)
==5840== If you believe this happened as a result of a stack
==5840== overflow in your program's main thread (unlikely but
==5840== possible), you can try to increase the size of the
==5840== main thread stack using the --main-stacksize= flag.
==5840== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 2: no trailing newline - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 2: no trailing newline - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 3
-received: Connection: close
-received:
-failed to receive a line: closed [foo]
-closed
'
058-tcp-socket.t TEST 7: not closed manually ==5852== Invalid read of size 4
==5852== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5852== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5852== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5852== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5852== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5852== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5852== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5852== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5852== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5852== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5852== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5852== by 0x8062D5B: main (nginx.c:385)
==5852== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5852==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 7: not closed manually ==5852==
==5852== Process terminating with default action of signal 11 (SIGSEGV)
==5852== Access not within mapped region at address 0x0
==5852== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5852== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5852== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5852== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5852== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5852== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5852== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5852== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5852== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5852== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5852== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5852== by 0x8062D5B: main (nginx.c:385)
==5852== If you believe this happened as a result of a stack
==5852== overflow in your program's main thread (unlikely but
==5852== possible), you can try to increase the size of the
==5852== main thread stack using the --main-stacksize= flag.
==5852== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 7: not closed manually - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 7: not closed manually - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 7: not closed manually ==5873== Invalid read of size 4
==5873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5873== by 0x8062D5B: main (nginx.c:385)
==5873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 7: not closed manually ==5873==
==5873== Process terminating with default action of signal 11 (SIGSEGV)
==5873== Access not within mapped region at address 0x0
==5873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5873== by 0x8062D5B: main (nginx.c:385)
==5873== If you believe this happened as a result of a stack
==5873== overflow in your program's main thread (unlikely but
==5873== possible), you can try to increase the size of the
==5873== main thread stack using the --main-stacksize= flag.
==5873== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 7: not closed manually - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 7: not closed manually - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 39: empty options table ==5885== Invalid read of size 4
==5885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5885== by 0x8062D5B: main (nginx.c:385)
==5885== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5885==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 39: empty options table ==5885==
==5885== Process terminating with default action of signal 11 (SIGSEGV)
==5885== Access not within mapped region at address 0x0
==5885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5885== by 0x8062D5B: main (nginx.c:385)
==5885== If you believe this happened as a result of a stack
==5885== overflow in your program's main thread (unlikely but
==5885== possible), you can try to increase the size of the
==5885== main thread stack using the --main-stacksize= flag.
==5885== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 39: empty options table - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 39: empty options table - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 39: empty options table ==5906== Invalid read of size 4
==5906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5906== by 0x8062D5B: main (nginx.c:385)
==5906== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5906==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 39: empty options table ==5906==
==5906== Process terminating with default action of signal 11 (SIGSEGV)
==5906== Access not within mapped region at address 0x0
==5906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5906== by 0x8062D5B: main (nginx.c:385)
==5906== If you believe this happened as a result of a stack
==5906== overflow in your program's main thread (unlikely but
==5906== possible), you can try to increase the size of the
==5906== main thread stack using the --main-stacksize= flag.
==5906== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 39: empty options table - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 39: empty options table - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data ==5918== Invalid read of size 4
==5918== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5918== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5918== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5918== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5918== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5918== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5918== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5918== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5918== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5918== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5918== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5918== by 0x8062D5B: main (nginx.c:385)
==5918== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5918==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data ==5918==
==5918== Process terminating with default action of signal 11 (SIGSEGV)
==5918== Access not within mapped region at address 0x0
==5918== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5918== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5918== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5918== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5918== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5918== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5918== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5918== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5918== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5918== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5918== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5918== by 0x8062D5B: main (nginx.c:385)
==5918== If you believe this happened as a result of a stack
==5918== overflow in your program's main thread (unlikely but
==5918== possible), you can try to increase the size of the
==5918== main thread stack using the --main-stacksize= flag.
==5918== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data ==5939== Invalid read of size 4
==5939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5939== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5939== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5939== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5939== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5939== by 0x8062D5B: main (nginx.c:385)
==5939== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5939==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data ==5939==
==5939== Process terminating with default action of signal 11 (SIGSEGV)
==5939== Access not within mapped region at address 0x0
==5939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5939== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5939== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5939== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5939== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5939== by 0x8062D5B: main (nginx.c:385)
==5939== If you believe this happened as a result of a stack
==5939== overflow in your program's main thread (unlikely but
==5939== possible), you can try to increase the size of the
==5939== main thread stack using the --main-stacksize= flag.
==5939== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
058-tcp-socket.t TEST 31: send("") ==5951== Invalid read of size 4
==5951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5951== by 0x8062D5B: main (nginx.c:385)
==5951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5951==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 31: send("") ==5951==
==5951== Process terminating with default action of signal 11 (SIGSEGV)
==5951== Access not within mapped region at address 0x0
==5951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5951== by 0x8062D5B: main (nginx.c:385)
==5951== If you believe this happened as a result of a stack
==5951== overflow in your program's main thread (unlikely but
==5951== possible), you can try to increase the size of the
==5951== main thread stack using the --main-stacksize= flag.
==5951== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 31: send("") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 31: send("") - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-send(""): 0
-close: 1 nil
'
058-tcp-socket.t TEST 31: send("") - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:46 [alert] 5437\#0: worker process 5951 exited on signal 11" (req 0) 2020/10/27 04:24:46 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:46 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:46 [debug] 5437\#0: reap children
2020/10/27 04:24:46 [debug] 5437\#0: child: 0 5951 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 31: send("") ==5972== Invalid read of size 4
==5972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5972== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5972== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5972== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5972== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5972== by 0x8062D5B: main (nginx.c:385)
==5972== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5972==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 31: send("") ==5972==
==5972== Process terminating with default action of signal 11 (SIGSEGV)
==5972== Access not within mapped region at address 0x0
==5972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5972== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5972== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5972== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==5972== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==5972== by 0x8062D5B: main (nginx.c:385)
==5972== If you believe this happened as a result of a stack
==5972== overflow in your program's main thread (unlikely but
==5972== possible), you can try to increase the size of the
==5972== main thread stack using the --main-stacksize= flag.
==5972== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 31: send("") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 31: send("") - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-send(""): 0
-close: 1 nil
'
058-tcp-socket.t TEST 31: send("") - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:47 [alert] 5437\#0: worker process 5972 exited on signal 11" (req 1) 2020/10/27 04:24:47 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:47 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:47 [debug] 5437\#0: reap children
2020/10/27 04:24:47 [debug] 5437\#0: child: 0 5972 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) ==5984== Invalid read of size 4
==5984== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5984== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5984== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5984== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5984== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5984== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5984== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5984== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5984== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5984== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5984== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5984== by 0x8062D5B: main (nginx.c:385)
==5984== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5984==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) ==5984==
==5984== Process terminating with default action of signal 11 (SIGSEGV)
==5984== Access not within mapped region at address 0x0
==5984== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==5984== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==5984== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==5984== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==5984== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==5984== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==5984== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==5984== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==5984== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==5984== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==5984== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==5984== by 0x8062D5B: main (nginx.c:385)
==5984== If you believe this happened as a result of a stack
==5984== overflow in your program's main thread (unlikely but
==5984== possible), you can try to increase the size of the
==5984== main thread stack using the --main-stacksize= flag.
==5984== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:50 [alert] 5437\#0: worker process 5984 exited on signal 11" (req 0) 2020/10/27 04:24:50 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:50 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:50 [debug] 5437\#0: reap children
2020/10/27 04:24:50 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:24:50 [debug] 5437\#0: child: 1 5984 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) ==6005== Invalid read of size 4
==6005== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6005== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6005== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6005== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6005== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6005== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6005== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6005== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6005== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6005== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6005== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6005== by 0x8062D5B: main (nginx.c:385)
==6005== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6005==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) ==6005==
==6005== Process terminating with default action of signal 11 (SIGSEGV)
==6005== Access not within mapped region at address 0x0
==6005== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6005== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6005== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6005== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6005== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6005== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6005== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6005== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6005== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6005== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6005== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6005== by 0x8062D5B: main (nginx.c:385)
==6005== If you believe this happened as a result of a stack
==6005== overflow in your program's main thread (unlikely but
==6005== possible), you can try to increase the size of the
==6005== main thread stack using the --main-stacksize= flag.
==6005== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:51 [alert] 5437\#0: worker process 6005 exited on signal 11" (req 1) 2020/10/27 04:24:51 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:51 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:51 [debug] 5437\#0: reap children
2020/10/27 04:24:51 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:24:51 [debug] 5437\#0: child: 1 6005 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket ==6017== Invalid read of size 4
==6017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6017== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6017== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6017== by 0x8062D5B: main (nginx.c:385)
==6017== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6017==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 52: kill a thread with a connecting socket ==6017==
==6017== Process terminating with default action of signal 11 (SIGSEGV)
==6017== Access not within mapped region at address 0x0
==6017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6017== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6017== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6017== by 0x8062D5B: main (nginx.c:385)
==6017== If you believe this happened as a result of a stack
==6017== overflow in your program's main thread (unlikely but
==6017== possible), you can try to increase the size of the
==6017== main thread stack using the --main-stacksize= flag.
==6017== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 52: kill a thread with a connecting socket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to setkeepalive: closed
'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket ==6038== Invalid read of size 4
==6038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6038== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6038== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6038== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6038== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6038== by 0x8062D5B: main (nginx.c:385)
==6038== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6038==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 52: kill a thread with a connecting socket ==6038==
==6038== Process terminating with default action of signal 11 (SIGSEGV)
==6038== Access not within mapped region at address 0x0
==6038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6038== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6038== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6038== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6038== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6038== by 0x8062D5B: main (nginx.c:385)
==6038== If you believe this happened as a result of a stack
==6038== overflow in your program's main thread (unlikely but
==6038== possible), you can try to increase the size of the
==6038== main thread stack using the --main-stacksize= flag.
==6038== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 52: kill a thread with a connecting socket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to setkeepalive: closed
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) ==6050== Invalid read of size 4
==6050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6050== by 0x8062D5B: main (nginx.c:385)
==6050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) ==6050==
==6050== Process terminating with default action of signal 11 (SIGSEGV)
==6050== Access not within mapped region at address 0x0
==6050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6050== by 0x8062D5B: main (nginx.c:385)
==6050== If you believe this happened as a result of a stack
==6050== overflow in your program's main thread (unlikely but
==6050== possible), you can try to increase the size of the
==6050== main thread stack using the --main-stacksize= flag.
==6050== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:59 [alert] 5437\#0: worker process 6050 exited on signal 11" (req 0) 2020/10/27 04:24:59 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:59 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:59 [debug] 5437\#0: reap children
2020/10/27 04:24:59 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:24:59 [debug] 5437\#0: child: 1 6050 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) ==6071== Invalid read of size 4
==6071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6071== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6071== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6071== by 0x8062D5B: main (nginx.c:385)
==6071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) ==6071==
==6071== Process terminating with default action of signal 11 (SIGSEGV)
==6071== Access not within mapped region at address 0x0
==6071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6071== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6071== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6071== by 0x8062D5B: main (nginx.c:385)
==6071== If you believe this happened as a result of a stack
==6071== overflow in your program's main thread (unlikely but
==6071== possible), you can try to increase the size of the
==6071== main thread stack using the --main-stacksize= flag.
==6071== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:24:59 [alert] 5437\#0: worker process 6071 exited on signal 11" (req 1) 2020/10/27 04:24:59 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:24:59 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:24:59 [debug] 5437\#0: reap children
2020/10/27 04:24:59 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:24:59 [debug] 5437\#0: child: 1 6071 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) ==6083== Invalid read of size 4
==6083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6083== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6083== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6083== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6083== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6083== by 0x8062D5B: main (nginx.c:385)
==6083== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6083==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) ==6083==
==6083== Process terminating with default action of signal 11 (SIGSEGV)
==6083== Access not within mapped region at address 0x0
==6083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6083== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6083== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6083== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6083== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6083== by 0x8062D5B: main (nginx.c:385)
==6083== If you believe this happened as a result of a stack
==6083== overflow in your program's main thread (unlikely but
==6083== possible), you can try to increase the size of the
==6083== main thread stack using the --main-stacksize= flag.
==6083== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:03 [alert] 5437\#0: worker process 6083 exited on signal 11" (req 0) 2020/10/27 04:25:03 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:03 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:03 [debug] 5437\#0: reap children
2020/10/27 04:25:03 [debug] 5437\#0: child: 0 6083 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:25:03 [debug] 5437\#0: channel 3:4
2020/10/27 04:25:03 [notice] 5437\#0: start worker process 6104
2020/10/27 04:25:03 [debug] 5437\#0: sigsuspend
2020/10/27 04:25:03 [debug] 6104\#0: malloc: 05871578:12
2020/10/27 04:25:03 [debug] 6104\#0: malloc: 054FC9B8:8
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) ==6104== Invalid read of size 4
==6104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6104== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6104== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6104== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6104== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6104== by 0x8062D5B: main (nginx.c:385)
==6104== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6104==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) ==6104==
==6104== Process terminating with default action of signal 11 (SIGSEGV)
==6104== Access not within mapped region at address 0x0
==6104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6104== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6104== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6104== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6104== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6104== by 0x8062D5B: main (nginx.c:385)
==6104== If you believe this happened as a result of a stack
==6104== overflow in your program's main thread (unlikely but
==6104== possible), you can try to increase the size of the
==6104== main thread stack using the --main-stacksize= flag.
==6104== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:04 [alert] 5437\#0: worker process 6104 exited on signal 11" (req 1) 2020/10/27 04:25:04 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:04 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:04 [debug] 5437\#0: reap children
2020/10/27 04:25:04 [debug] 5437\#0: child: 0 6104 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:25:04 [debug] 5437\#0: channel 3:4
2020/10/27 04:25:04 [notice] 5437\#0: start worker process 6105
2020/10/27 04:25:04 [debug] 5437\#0: sigsuspend
2020/10/27 04:25:04 [debug] 6105\#0: malloc: 05871578:12
2020/10/27 04:25:04 [debug] 6105\#0: malloc: 054FC9B8:8
'
058-tcp-socket.t TEST 3: no resolver defined ==6116== Invalid read of size 4
==6116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6116== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6116== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6116== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6116== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6116== by 0x8062D5B: main (nginx.c:385)
==6116== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6116==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 3: no resolver defined ==6116==
==6116== Process terminating with default action of signal 11 (SIGSEGV)
==6116== Access not within mapped region at address 0x0
==6116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6116== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6116== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6116== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6116== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6116== by 0x8062D5B: main (nginx.c:385)
==6116== If you believe this happened as a result of a stack
==6116== overflow in your program's main thread (unlikely but
==6116== possible), you can try to increase the size of the
==6116== main thread stack using the --main-stacksize= flag.
==6116== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 3: no resolver defined - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 3: no resolver defined - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
058-tcp-socket.t TEST 3: no resolver defined ==6137== Invalid read of size 4
==6137== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6137== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6137== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6137== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6137== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6137== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6137== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6137== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6137== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6137== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6137== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6137== by 0x8062D5B: main (nginx.c:385)
==6137== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6137==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 3: no resolver defined ==6137==
==6137== Process terminating with default action of signal 11 (SIGSEGV)
==6137== Access not within mapped region at address 0x0
==6137== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6137== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6137== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6137== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6137== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6137== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6137== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6137== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6137== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6137== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6137== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6137== by 0x8062D5B: main (nginx.c:385)
==6137== If you believe this happened as a result of a stack
==6137== overflow in your program's main thread (unlikely but
==6137== possible), you can try to increase the size of the
==6137== main thread stack using the --main-stacksize= flag.
==6137== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 3: no resolver defined - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 3: no resolver defined - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
058-tcp-socket.t TEST 23: connect again immediately ==6149== Invalid read of size 4
==6149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6149== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6149== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6149== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6149== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6149== by 0x8062D5B: main (nginx.c:385)
==6149== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6149==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 23: connect again immediately ==6149==
==6149== Process terminating with default action of signal 11 (SIGSEGV)
==6149== Access not within mapped region at address 0x0
==6149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6149== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6149== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6149== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6149== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6149== by 0x8062D5B: main (nginx.c:385)
==6149== If you believe this happened as a result of a stack
==6149== overflow in your program's main thread (unlikely but
==6149== possible), you can try to increase the size of the
==6149== main thread stack using the --main-stacksize= flag.
==6149== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t TEST 23: connect again immediately ==6170== Invalid read of size 4
==6170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6170== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6170== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6170== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6170== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6170== by 0x8062D5B: main (nginx.c:385)
==6170== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 23: connect again immediately ==6170==
==6170== Process terminating with default action of signal 11 (SIGSEGV)
==6170== Access not within mapped region at address 0x0
==6170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6170== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6170== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6170== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6170== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6170== by 0x8062D5B: main (nginx.c:385)
==6170== If you believe this happened as a result of a stack
==6170== overflow in your program's main thread (unlikely but
==6170== possible), you can try to increase the size of the
==6170== main thread stack using the --main-stacksize= flag.
==6170== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t TEST 44: bad request tries to close ==6182== Invalid read of size 4
==6182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6182== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6182== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6182== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6182== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6182== by 0x8062D5B: main (nginx.c:385)
==6182== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6182==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 44: bad request tries to close ==6182==
==6182== Process terminating with default action of signal 11 (SIGSEGV)
==6182== Access not within mapped region at address 0x0
==6182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6182== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6182== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6182== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6182== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6182== by 0x8062D5B: main (nginx.c:385)
==6182== If you believe this happened as a result of a stack
==6182== overflow in your program's main thread (unlikely but
==6182== possible), you can try to increase the size of the
==6182== main thread stack using the --main-stacksize= flag.
==6182== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 44: bad request tries to close - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 44: bad request tries to close - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 44: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:15 [alert] 5437\#0: worker process 6182 exited on signal 11" (req 0) 2020/10/27 04:25:15 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:15 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:15 [debug] 5437\#0: reap children
2020/10/27 04:25:15 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:25:15 [debug] 5437\#0: child: 1 6182 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 44: bad request tries to close ==6203== Invalid read of size 4
==6203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6203== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6203== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6203== by 0x8062D5B: main (nginx.c:385)
==6203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 44: bad request tries to close ==6203==
==6203== Process terminating with default action of signal 11 (SIGSEGV)
==6203== Access not within mapped region at address 0x0
==6203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6203== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6203== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6203== by 0x8062D5B: main (nginx.c:385)
==6203== If you believe this happened as a result of a stack
==6203== overflow in your program's main thread (unlikely but
==6203== possible), you can try to increase the size of the
==6203== main thread stack using the --main-stacksize= flag.
==6203== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 44: bad request tries to close - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 44: bad request tries to close - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 44: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:16 [alert] 5437\#0: worker process 6203 exited on signal 11" (req 1) 2020/10/27 04:25:16 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:16 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:16 [debug] 5437\#0: reap children
2020/10/27 04:25:16 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:25:16 [debug] 5437\#0: child: 1 6203 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) ==6216== Invalid read of size 4
==6216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6216== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6216== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6216== by 0x8062D5B: main (nginx.c:385)
==6216== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6216==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) ==6216==
==6216== Process terminating with default action of signal 11 (SIGSEGV)
==6216== Access not within mapped region at address 0x0
==6216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6216== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6216== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6216== by 0x8062D5B: main (nginx.c:385)
==6216== If you believe this happened as a result of a stack
==6216== overflow in your program's main thread (unlikely but
==6216== possible), you can try to increase the size of the
==6216== main thread stack using the --main-stacksize= flag.
==6216== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:20 [alert] 5437\#0: worker process 6216 exited on signal 11" (req 0) 2020/10/27 04:25:20 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:20 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:20 [debug] 5437\#0: reap children
2020/10/27 04:25:20 [debug] 5437\#0: child: 0 6216 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:25:20 [debug] 5437\#0: channel 3:4
2020/10/27 04:25:20 [notice] 5437\#0: start worker process 6237
2020/10/27 04:25:20 [debug] 5437\#0: sigsuspend
2020/10/27 04:25:20 [debug] 6237\#0: malloc: 049731F8:12
2020/10/27 04:25:20 [debug] 6237\#0: malloc: 04BD87A8:8
'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) ==6237== Invalid read of size 4
==6237== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6237== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6237== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6237== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6237== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6237== by 0x8062D5B: main (nginx.c:385)
==6237== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6237==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) ==6237==
==6237== Process terminating with default action of signal 11 (SIGSEGV)
==6237== Access not within mapped region at address 0x0
==6237== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6237== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6237== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6237== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6237== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6237== by 0x8062D5B: main (nginx.c:385)
==6237== If you believe this happened as a result of a stack
==6237== overflow in your program's main thread (unlikely but
==6237== possible), you can try to increase the size of the
==6237== main thread stack using the --main-stacksize= flag.
==6237== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:20 [alert] 5437\#0: worker process 6237 exited on signal 11" (req 1) 2020/10/27 04:25:20 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:20 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:20 [debug] 5437\#0: reap children
2020/10/27 04:25:20 [debug] 5437\#0: child: 0 6237 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:25:20 [debug] 5437\#0: channel 3:4
2020/10/27 04:25:20 [notice] 5437\#0: start worker process 6238
2020/10/27 04:25:20 [debug] 5437\#0: sigsuspend
2020/10/27 04:25:20 [debug] 6238\#0: malloc: 049731F8:12
2020/10/27 04:25:20 [debug] 6238\#0: malloc: 04BD87A8:8
'
058-tcp-socket.t TEST 30: receive(0) ==6250== Invalid read of size 4
==6250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6250== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6250== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6250== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6250== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6250== by 0x8062D5B: main (nginx.c:385)
==6250== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6250==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 30: receive(0) ==6250==
==6250== Process terminating with default action of signal 11 (SIGSEGV)
==6250== Access not within mapped region at address 0x0
==6250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6250== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6250== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6250== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6250== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6250== by 0x8062D5B: main (nginx.c:385)
==6250== If you believe this happened as a result of a stack
==6250== overflow in your program's main thread (unlikely but
==6250== possible), you can try to increase the size of the
==6250== main thread stack using the --main-stacksize= flag.
==6250== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 30: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 30: receive(0) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-receive(0): []
-close: 1 nil
'
058-tcp-socket.t TEST 30: receive(0) ==6271== Invalid read of size 4
==6271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6271== by 0x8062D5B: main (nginx.c:385)
==6271== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6271==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 30: receive(0) ==6271==
==6271== Process terminating with default action of signal 11 (SIGSEGV)
==6271== Access not within mapped region at address 0x0
==6271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6271== by 0x8062D5B: main (nginx.c:385)
==6271== If you believe this happened as a result of a stack
==6271== overflow in your program's main thread (unlikely but
==6271== possible), you can try to increase the size of the
==6271== main thread stack using the --main-stacksize= flag.
==6271== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 30: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 30: receive(0) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-receive(0): []
-close: 1 nil
'
058-tcp-socket.t TEST 43: bad request tries to send ==6283== Invalid read of size 4
==6283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6283== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6283== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6283== by 0x8062D5B: main (nginx.c:385)
==6283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 43: bad request tries to send ==6283==
==6283== Process terminating with default action of signal 11 (SIGSEGV)
==6283== Access not within mapped region at address 0x0
==6283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6283== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6283== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6283== by 0x8062D5B: main (nginx.c:385)
==6283== If you believe this happened as a result of a stack
==6283== overflow in your program's main thread (unlikely but
==6283== possible), you can try to increase the size of the
==6283== main thread stack using the --main-stacksize= flag.
==6283== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 43: bad request tries to send - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 43: bad request tries to send - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 43: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:28 [alert] 5437\#0: worker process 6283 exited on signal 11" (req 0) 2020/10/27 04:25:28 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:28 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:28 [debug] 5437\#0: reap children
2020/10/27 04:25:28 [debug] 5437\#0: child: 0 6283 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 43: bad request tries to send ==6304== Invalid read of size 4
==6304== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6304== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6304== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6304== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6304== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6304== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6304== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6304== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6304== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6304== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6304== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6304== by 0x8062D5B: main (nginx.c:385)
==6304== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6304==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 43: bad request tries to send ==6304==
==6304== Process terminating with default action of signal 11 (SIGSEGV)
==6304== Access not within mapped region at address 0x0
==6304== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6304== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6304== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6304== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6304== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6304== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6304== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6304== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6304== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6304== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6304== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6304== by 0x8062D5B: main (nginx.c:385)
==6304== If you believe this happened as a result of a stack
==6304== overflow in your program's main thread (unlikely but
==6304== possible), you can try to increase the size of the
==6304== main thread stack using the --main-stacksize= flag.
==6304== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 43: bad request tries to send - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 43: bad request tries to send - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 43: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:25:29 [alert] 5437\#0: worker process 6304 exited on signal 11" (req 1) 2020/10/27 04:25:29 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:25:29 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:25:29 [debug] 5437\#0: reap children
2020/10/27 04:25:29 [debug] 5437\#0: child: 0 6304 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 9: resolver error (timeout) ==6317== Invalid read of size 4
==6317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6317== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6317== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6317== by 0x8062D5B: main (nginx.c:385)
==6317== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6317==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 9: resolver error (timeout) ==6317==
==6317== Process terminating with default action of signal 11 (SIGSEGV)
==6317== Access not within mapped region at address 0x0
==6317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6317== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6317== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6317== by 0x8062D5B: main (nginx.c:385)
==6317== If you believe this happened as a result of a stack
==6317== overflow in your program's main thread (unlikely but
==6317== possible), you can try to increase the size of the
==6317== main thread stack using the --main-stacksize= flag.
==6317== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 9: resolver error (timeout) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 9: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 9: resolver error (timeout) ==6338== Invalid read of size 4
==6338== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6338== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6338== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6338== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6338== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6338== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6338== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6338== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6338== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6338== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6338== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6338== by 0x8062D5B: main (nginx.c:385)
==6338== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6338==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 9: resolver error (timeout) ==6338==
==6338== Process terminating with default action of signal 11 (SIGSEGV)
==6338== Access not within mapped region at address 0x0
==6338== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6338== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6338== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6338== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6338== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6338== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6338== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6338== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6338== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6338== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6338== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6338== by 0x8062D5B: main (nginx.c:385)
==6338== If you believe this happened as a result of a stack
==6338== overflow in your program's main thread (unlikely but
==6338== possible), you can try to increase the size of the
==6338== main thread stack using the --main-stacksize= flag.
==6338== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 9: resolver error (timeout) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 9: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 24: two sockets mix together ==6350== Invalid read of size 4
==6350== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6350== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6350== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6350== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6350== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6350== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6350== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6350== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6350== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6350== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6350== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6350== by 0x8062D5B: main (nginx.c:385)
==6350== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6350==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 24: two sockets mix together ==6350==
==6350== Process terminating with default action of signal 11 (SIGSEGV)
==6350== Access not within mapped region at address 0x0
==6350== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6350== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6350== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6350== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6350== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6350== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6350== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6350== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6350== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6350== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6350== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6350== by 0x8062D5B: main (nginx.c:385)
==6350== If you believe this happened as a result of a stack
==6350== overflow in your program's main thread (unlikely but
==6350== possible), you can try to increase the size of the
==6350== main thread stack using the --main-stacksize= flag.
==6350== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-1: connected: 1
-2: connected: 1
-1: request sent: 11
-2: request sent: 57
-1: received: OK
-2: received: HTTP/1.1 200 OK
-1: close: 1 nil
-2: close: 1 nil
'
058-tcp-socket.t TEST 24: two sockets mix together ==6371== Invalid read of size 4
==6371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6371== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6371== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6371== by 0x8062D5B: main (nginx.c:385)
==6371== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6371==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 24: two sockets mix together ==6371==
==6371== Process terminating with default action of signal 11 (SIGSEGV)
==6371== Access not within mapped region at address 0x0
==6371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6371== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6371== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6371== by 0x8062D5B: main (nginx.c:385)
==6371== If you believe this happened as a result of a stack
==6371== overflow in your program's main thread (unlikely but
==6371== possible), you can try to increase the size of the
==6371== main thread stack using the --main-stacksize= flag.
==6371== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-1: connected: 1
-2: connected: 1
-1: request sent: 11
-2: request sent: 57
-1: received: OK
-2: received: HTTP/1.1 200 OK
-1: close: 1 nil
-2: close: 1 nil
'
058-tcp-socket.t TEST 8: resolver error (host not found) ==6383== Invalid read of size 4
==6383== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6383== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6383== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6383== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6383== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6383== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6383== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6383== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6383== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6383== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6383== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6383== by 0x8062D5B: main (nginx.c:385)
==6383== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6383==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 8: resolver error (host not found) ==6383==
==6383== Process terminating with default action of signal 11 (SIGSEGV)
==6383== Access not within mapped region at address 0x0
==6383== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6383== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6383== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6383== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6383== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6383== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6383== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6383== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6383== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6383== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6383== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6383== by 0x8062D5B: main (nginx.c:385)
==6383== If you believe this happened as a result of a stack
==6383== overflow in your program's main thread (unlikely but
==6383== possible), you can try to increase the size of the
==6383== main thread stack using the --main-stacksize= flag.
==6383== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 8: resolver error (host not found) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 8: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 8: resolver error (host not found) ==6404== Invalid read of size 4
==6404== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6404== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6404== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6404== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6404== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6404== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6404== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6404== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6404== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6404== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6404== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6404== by 0x8062D5B: main (nginx.c:385)
==6404== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6404==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 8: resolver error (host not found) ==6404==
==6404== Process terminating with default action of signal 11 (SIGSEGV)
==6404== Access not within mapped region at address 0x0
==6404== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6404== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6404== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6404== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6404== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6404== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6404== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6404== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6404== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6404== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6404== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6404== by 0x8062D5B: main (nginx.c:385)
==6404== If you believe this happened as a result of a stack
==6404== overflow in your program's main thread (unlikely but
==6404== possible), you can try to increase the size of the
==6404== main thread stack using the --main-stacksize= flag.
==6404== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 8: resolver error (host not found) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 8: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 13: receive by chunks ==6416== Invalid read of size 4
==6416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6416== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6416== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6416== by 0x8062D5B: main (nginx.c:385)
==6416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 13: receive by chunks ==6416==
==6416== Process terminating with default action of signal 11 (SIGSEGV)
==6416== Access not within mapped region at address 0x0
==6416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6416== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6416== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6416== by 0x8062D5B: main (nginx.c:385)
==6416== If you believe this happened as a result of a stack
==6416== overflow in your program's main thread (unlikely but
==6416== possible), you can try to increase the size of the
==6416== main thread stack using the --main-stacksize= flag.
==6416== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 13: receive by chunks - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 13: receive by chunks - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 13: receive by chunks ==6437== Invalid read of size 4
==6437== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6437== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6437== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6437== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6437== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6437== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6437== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6437== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6437== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6437== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6437== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6437== by 0x8062D5B: main (nginx.c:385)
==6437== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6437==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 13: receive by chunks ==6437==
==6437== Process terminating with default action of signal 11 (SIGSEGV)
==6437== Access not within mapped region at address 0x0
==6437== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6437== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6437== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6437== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6437== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6437== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6437== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6437== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6437== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6437== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6437== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6437== by 0x8062D5B: main (nginx.c:385)
==6437== If you believe this happened as a result of a stack
==6437== overflow in your program's main thread (unlikely but
==6437== possible), you can try to increase the size of the
==6437== main thread stack using the --main-stacksize= flag.
==6437== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 13: receive by chunks - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 13: receive by chunks - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) ==6449== Invalid read of size 4
==6449== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6449== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6449== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6449== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6449== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6449== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6449== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6449== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6449== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6449== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6449== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6449== by 0x8062D5B: main (nginx.c:385)
==6449== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6449==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) ==6449==
==6449== Process terminating with default action of signal 11 (SIGSEGV)
==6449== Access not within mapped region at address 0x0
==6449== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6449== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6449== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6449== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6449== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6449== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6449== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6449== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6449== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6449== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6449== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6449== by 0x8062D5B: main (nginx.c:385)
==6449== If you believe this happened as a result of a stack
==6449== overflow in your program's main thread (unlikely but
==6449== possible), you can try to increase the size of the
==6449== main thread stack using the --main-stacksize= flag.
==6449== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) ==6470== Invalid read of size 4
==6470== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6470== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6470== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6470== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6470== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6470== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6470== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6470== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6470== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6470== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6470== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6470== by 0x8062D5B: main (nginx.c:385)
==6470== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6470==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) ==6470==
==6470== Process terminating with default action of signal 11 (SIGSEGV)
==6470== Access not within mapped region at address 0x0
==6470== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6470== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6470== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6470== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6470== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6470== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6470== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6470== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6470== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6470== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6470== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6470== by 0x8062D5B: main (nginx.c:385)
==6470== If you believe this happened as a result of a stack
==6470== overflow in your program's main thread (unlikely but
==6470== possible), you can try to increase the size of the
==6470== main thread stack using the --main-stacksize= flag.
==6470== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 60: send boolean and nil ==6482== Invalid read of size 4
==6482== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6482== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6482== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6482== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6482== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6482== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6482== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6482== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6482== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6482== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6482== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6482== by 0x8062D5B: main (nginx.c:385)
==6482== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6482==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 60: send boolean and nil ==6482==
==6482== Process terminating with default action of signal 11 (SIGSEGV)
==6482== Access not within mapped region at address 0x0
==6482== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6482== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6482== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6482== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6482== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6482== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6482== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6482== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6482== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6482== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6482== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6482== by 0x8062D5B: main (nginx.c:385)
==6482== If you believe this happened as a result of a stack
==6482== overflow in your program's main thread (unlikely but
==6482== possible), you can try to increase the size of the
==6482== main thread stack using the --main-stacksize= flag.
==6482== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 60: send boolean and nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 60: send boolean and nil - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Connection: close
-received:
-received: truefalsenil
'
058-tcp-socket.t TEST 60: send boolean and nil ==6504== Invalid read of size 4
==6504== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6504== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6504== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6504== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6504== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6504== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6504== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6504== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6504== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6504== by 0x8062D5B: main (nginx.c:385)
==6504== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6504==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 60: send boolean and nil ==6504==
==6504== Process terminating with default action of signal 11 (SIGSEGV)
==6504== Access not within mapped region at address 0x0
==6504== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6504== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6504== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6504== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6504== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6504== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6504== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6504== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6504== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6504== by 0x8062D5B: main (nginx.c:385)
==6504== If you believe this happened as a result of a stack
==6504== overflow in your program's main thread (unlikely but
==6504== possible), you can try to increase the size of the
==6504== main thread stack using the --main-stacksize= flag.
==6504== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 60: send boolean and nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 60: send boolean and nil - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Connection: close
-received:
-received: truefalsenil
'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown ==6516== Invalid read of size 4
==6516== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6516== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6516== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6516== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6516== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6516== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6516== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6516== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6516== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6516== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6516== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6516== by 0x8062D5B: main (nginx.c:385)
==6516== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6516==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown ==6516==
==6516== Process terminating with default action of signal 11 (SIGSEGV)
==6516== Access not within mapped region at address 0x0
==6516== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6516== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6516== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6516== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6516== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6516== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6516== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6516== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6516== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6516== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6516== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6516== by 0x8062D5B: main (nginx.c:385)
==6516== If you believe this happened as a result of a stack
==6516== overflow in your program's main thread (unlikely but
==6516== possible), you can try to increase the size of the
==6516== main thread stack using the --main-stacksize= flag.
==6516== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown ==6537== Invalid read of size 4
==6537== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6537== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6537== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6537== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6537== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6537== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6537== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6537== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6537== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6537== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6537== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6537== by 0x8062D5B: main (nginx.c:385)
==6537== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6537==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown ==6537==
==6537== Process terminating with default action of signal 11 (SIGSEGV)
==6537== Access not within mapped region at address 0x0
==6537== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6537== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6537== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6537== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6537== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6537== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6537== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6537== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6537== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6537== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6537== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6537== by 0x8062D5B: main (nginx.c:385)
==6537== If you believe this happened as a result of a stack
==6537== overflow in your program's main thread (unlikely but
==6537== possible), you can try to increase the size of the
==6537== main thread stack using the --main-stacksize= flag.
==6537== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 4: with resolver ==6549== Invalid read of size 4
==6549== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6549== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6549== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6549== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6549== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6549== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6549== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6549== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6549== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6549== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6549== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6549== by 0x8062D5B: main (nginx.c:385)
==6549== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6549==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 4: with resolver ==6549==
==6549== Process terminating with default action of signal 11 (SIGSEGV)
==6549== Access not within mapped region at address 0x0
==6549== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6549== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6549== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6549== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6549== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6549== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6549== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6549== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6549== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6549== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6549== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6549== by 0x8062D5B: main (nginx.c:385)
==6549== If you believe this happened as a result of a stack
==6549== overflow in your program's main thread (unlikely but
==6549== possible), you can try to increase the size of the
==6549== main thread stack using the --main-stacksize= flag.
==6549== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 4: with resolver - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 4: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
058-tcp-socket.t TEST 4: with resolver ==6571== Invalid read of size 4
==6571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6571== by 0x8062D5B: main (nginx.c:385)
==6571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 4: with resolver ==6571==
==6571== Process terminating with default action of signal 11 (SIGSEGV)
==6571== Access not within mapped region at address 0x0
==6571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6571== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6571== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6571== by 0x8062D5B: main (nginx.c:385)
==6571== If you believe this happened as a result of a stack
==6571== overflow in your program's main thread (unlikely but
==6571== possible), you can try to increase the size of the
==6571== main thread stack using the --main-stacksize= flag.
==6571== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 4: with resolver - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 4: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) ==6583== Invalid read of size 4
==6583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6583== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6583== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6583== by 0x8062D5B: main (nginx.c:385)
==6583== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6583==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) ==6583==
==6583== Process terminating with default action of signal 11 (SIGSEGV)
==6583== Access not within mapped region at address 0x0
==6583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6583== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6583== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6583== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6583== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6583== by 0x8062D5B: main (nginx.c:385)
==6583== If you believe this happened as a result of a stack
==6583== overflow in your program's main thread (unlikely but
==6583== possible), you can try to increase the size of the
==6583== main thread stack using the --main-stacksize= flag.
==6583== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:26:07 [alert] 5437\#0: worker process 6583 exited on signal 11" (req 0) 2020/10/27 04:26:07 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:26:07 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:26:07 [debug] 5437\#0: reap children
2020/10/27 04:26:07 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:26:07 [debug] 5437\#0: child: 1 6583 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) ==6604== Invalid read of size 4
==6604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6604== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6604== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6604== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6604== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6604== by 0x8062D5B: main (nginx.c:385)
==6604== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6604==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) ==6604==
==6604== Process terminating with default action of signal 11 (SIGSEGV)
==6604== Access not within mapped region at address 0x0
==6604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6604== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6604== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6604== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6604== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6604== by 0x8062D5B: main (nginx.c:385)
==6604== If you believe this happened as a result of a stack
==6604== overflow in your program's main thread (unlikely but
==6604== possible), you can try to increase the size of the
==6604== main thread stack using the --main-stacksize= flag.
==6604== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:26:08 [alert] 5437\#0: worker process 6604 exited on signal 11" (req 1) 2020/10/27 04:26:08 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:26:08 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:26:08 [debug] 5437\#0: reap children
2020/10/27 04:26:08 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:26:08 [debug] 5437\#0: child: 1 6604 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data ==6616== Invalid read of size 4
==6616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6616== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6616== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6616== by 0x8062D5B: main (nginx.c:385)
==6616== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6616==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data ==6616==
==6616== Process terminating with default action of signal 11 (SIGSEGV)
==6616== Access not within mapped region at address 0x0
==6616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6616== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6616== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6616== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6616== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6616== by 0x8062D5B: main (nginx.c:385)
==6616== If you believe this happened as a result of a stack
==6616== overflow in your program's main thread (unlikely but
==6616== possible), you can try to increase the size of the
==6616== main thread stack using the --main-stacksize= flag.
==6616== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello w
-orld
'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data ==6638== Invalid read of size 4
==6638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6638== by 0x8062D5B: main (nginx.c:385)
==6638== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6638==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data ==6638==
==6638== Process terminating with default action of signal 11 (SIGSEGV)
==6638== Access not within mapped region at address 0x0
==6638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6638== by 0x8062D5B: main (nginx.c:385)
==6638== If you believe this happened as a result of a stack
==6638== overflow in your program's main thread (unlikely but
==6638== possible), you can try to increase the size of the
==6638== main thread stack using the --main-stacksize= flag.
==6638== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello w
-orld
'
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() ==6650== Invalid read of size 4
==6650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6650== by 0x8062D5B: main (nginx.c:385)
==6650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() ==6650==
==6650== Process terminating with default action of signal 11 (SIGSEGV)
==6650== Access not within mapped region at address 0x0
==6650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6650== by 0x8062D5B: main (nginx.c:385)
==6650== If you believe this happened as a result of a stack
==6650== overflow in your program's main thread (unlikely but
==6650== possible), you can try to increase the size of the
==6650== main thread stack using the --main-stacksize= flag.
==6650== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() ==6671== Invalid read of size 4
==6671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6671== by 0x8062D5B: main (nginx.c:385)
==6671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() ==6671==
==6671== Process terminating with default action of signal 11 (SIGSEGV)
==6671== Access not within mapped region at address 0x0
==6671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6671== by 0x8062D5B: main (nginx.c:385)
==6671== If you believe this happened as a result of a stack
==6671== overflow in your program's main thread (unlikely but
==6671== possible), you can try to increase the size of the
==6671== main thread stack using the --main-stacksize= flag.
==6671== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) ==6683== Invalid read of size 4
==6683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6683== by 0x8062D5B: main (nginx.c:385)
==6683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) ==6683==
==6683== Process terminating with default action of signal 11 (SIGSEGV)
==6683== Access not within mapped region at address 0x0
==6683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6683== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6683== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6683== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6683== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6683== by 0x8062D5B: main (nginx.c:385)
==6683== If you believe this happened as a result of a stack
==6683== overflow in your program's main thread (unlikely but
==6683== possible), you can try to increase the size of the
==6683== main thread stack using the --main-stacksize= flag.
==6683== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) ==6704== Invalid read of size 4
==6704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6704== by 0x8062D5B: main (nginx.c:385)
==6704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) ==6704==
==6704== Process terminating with default action of signal 11 (SIGSEGV)
==6704== Access not within mapped region at address 0x0
==6704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6704== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6704== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6704== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6704== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6704== by 0x8062D5B: main (nginx.c:385)
==6704== If you believe this happened as a result of a stack
==6704== overflow in your program's main thread (unlikely but
==6704== possible), you can try to increase the size of the
==6704== main thread stack using the --main-stacksize= flag.
==6704== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 10: explicit *l pattern for receive ==6716== Invalid read of size 4
==6716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6716== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6716== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6716== by 0x8062D5B: main (nginx.c:385)
==6716== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6716==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 10: explicit *l pattern for receive ==6716==
==6716== Process terminating with default action of signal 11 (SIGSEGV)
==6716== Access not within mapped region at address 0x0
==6716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6716== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6716== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6716== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6716== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6716== by 0x8062D5B: main (nginx.c:385)
==6716== If you believe this happened as a result of a stack
==6716== overflow in your program's main thread (unlikely but
==6716== possible), you can try to increase the size of the
==6716== main thread stack using the --main-stacksize= flag.
==6716== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 10: explicit *l pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 10: explicit *l pattern for receive - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
058-tcp-socket.t TEST 10: explicit *l pattern for receive ==6738== Invalid read of size 4
==6738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6738== by 0x8062D5B: main (nginx.c:385)
==6738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 10: explicit *l pattern for receive ==6738==
==6738== Process terminating with default action of signal 11 (SIGSEGV)
==6738== Access not within mapped region at address 0x0
==6738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6738== by 0x8062D5B: main (nginx.c:385)
==6738== If you believe this happened as a result of a stack
==6738== overflow in your program's main thread (unlikely but
==6738== possible), you can try to increase the size of the
==6738== main thread stack using the --main-stacksize= flag.
==6738== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 10: explicit *l pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 10: explicit *l pattern for receive - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) ==6750== Invalid read of size 4
==6750== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6750== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6750== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6750== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6750== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6750== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6750== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6750== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6750== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6750== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6750== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6750== by 0x8062D5B: main (nginx.c:385)
==6750== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6750==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) ==6750==
==6750== Process terminating with default action of signal 11 (SIGSEGV)
==6750== Access not within mapped region at address 0x0
==6750== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6750== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6750== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6750== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6750== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6750== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6750== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6750== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6750== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6750== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6750== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6750== by 0x8062D5B: main (nginx.c:385)
==6750== If you believe this happened as a result of a stack
==6750== overflow in your program's main thread (unlikely but
==6750== possible), you can try to increase the size of the
==6750== main thread stack using the --main-stacksize= flag.
==6750== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) ==6771== Invalid read of size 4
==6771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6771== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6771== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6771== by 0x8062D5B: main (nginx.c:385)
==6771== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6771==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) ==6771==
==6771== Process terminating with default action of signal 11 (SIGSEGV)
==6771== Access not within mapped region at address 0x0
==6771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6771== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6771== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6771== by 0x8062D5B: main (nginx.c:385)
==6771== If you believe this happened as a result of a stack
==6771== overflow in your program's main thread (unlikely but
==6771== possible), you can try to increase the size of the
==6771== main thread stack using the --main-stacksize= flag.
==6771== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") ==6783== Invalid read of size 4
==6783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6783== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6783== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6783== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6783== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6783== by 0x8062D5B: main (nginx.c:385)
==6783== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6783==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") ==6783==
==6783== Process terminating with default action of signal 11 (SIGSEGV)
==6783== Access not within mapped region at address 0x0
==6783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6783== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6783== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6783== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6783== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6783== by 0x8062D5B: main (nginx.c:385)
==6783== If you believe this happened as a result of a stack
==6783== overflow in your program's main thread (unlikely but
==6783== possible), you can try to increase the size of the
==6783== main thread stack using the --main-stacksize= flag.
==6783== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") ==6805== Invalid read of size 4
==6805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6805== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6805== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6805== by 0x8062D5B: main (nginx.c:385)
==6805== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6805==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") ==6805==
==6805== Process terminating with default action of signal 11 (SIGSEGV)
==6805== Access not within mapped region at address 0x0
==6805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6805== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6805== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6805== by 0x8062D5B: main (nginx.c:385)
==6805== If you believe this happened as a result of a stack
==6805== overflow in your program's main thread (unlikely but
==6805== possible), you can try to increase the size of the
==6805== main thread stack using the --main-stacksize= flag.
==6805== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil ==6817== Invalid read of size 4
==6817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6817== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6817== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6817== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6817== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6817== by 0x8062D5B: main (nginx.c:385)
==6817== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6817==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 46: bad request tries to receiveuntil ==6817==
==6817== Process terminating with default action of signal 11 (SIGSEGV)
==6817== Access not within mapped region at address 0x0
==6817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6817== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6817== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6817== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6817== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6817== by 0x8062D5B: main (nginx.c:385)
==6817== If you believe this happened as a result of a stack
==6817== overflow in your program's main thread (unlikely but
==6817== possible), you can try to increase the size of the
==6817== main thread stack using the --main-stacksize= flag.
==6817== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 46: bad request tries to receiveuntil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:26:38 [alert] 5437\#0: worker process 6817 exited on signal 11" (req 0) 2020/10/27 04:26:38 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:26:38 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:26:38 [debug] 5437\#0: reap children
2020/10/27 04:26:38 [debug] 5437\#0: child: 0 6817 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil ==6839== Invalid read of size 4
==6839== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6839== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6839== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6839== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6839== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6839== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6839== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6839== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6839== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6839== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6839== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6839== by 0x8062D5B: main (nginx.c:385)
==6839== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6839==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 46: bad request tries to receiveuntil ==6839==
==6839== Process terminating with default action of signal 11 (SIGSEGV)
==6839== Access not within mapped region at address 0x0
==6839== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6839== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6839== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6839== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6839== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6839== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6839== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6839== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6839== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6839== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6839== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6839== by 0x8062D5B: main (nginx.c:385)
==6839== If you believe this happened as a result of a stack
==6839== overflow in your program's main thread (unlikely but
==6839== possible), you can try to increase the size of the
==6839== main thread stack using the --main-stacksize= flag.
==6839== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 46: bad request tries to receiveuntil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:26:39 [alert] 5437\#0: worker process 6839 exited on signal 11" (req 1) 2020/10/27 04:26:39 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:26:39 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:26:39 [debug] 5437\#0: reap children
2020/10/27 04:26:39 [debug] 5437\#0: child: 0 6839 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 51: IPv6 ==6854== Invalid read of size 4
==6854== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6854== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6854== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6854== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6854== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6854== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6854== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6854== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6854== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6854== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6854== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6854== by 0x8062D5B: main (nginx.c:385)
==6854== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6854==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 51: IPv6 ==6854==
==6854== Process terminating with default action of signal 11 (SIGSEGV)
==6854== Access not within mapped region at address 0x0
==6854== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6854== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6854== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6854== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6854== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6854== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6854== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6854== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6854== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6854== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6854== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6854== by 0x8062D5B: main (nginx.c:385)
==6854== If you believe this happened as a result of a stack
==6854== overflow in your program's main thread (unlikely but
==6854== possible), you can try to increase the size of the
==6854== main thread stack using the --main-stacksize= flag.
==6854== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 51: IPv6 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 51: IPv6 - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 51: IPv6 ==6876== Invalid read of size 4
==6876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6876== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6876== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6876== by 0x8062D5B: main (nginx.c:385)
==6876== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6876==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 51: IPv6 ==6876==
==6876== Process terminating with default action of signal 11 (SIGSEGV)
==6876== Access not within mapped region at address 0x0
==6876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6876== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6876== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6876== by 0x8062D5B: main (nginx.c:385)
==6876== If you believe this happened as a result of a stack
==6876== overflow in your program's main thread (unlikely but
==6876== possible), you can try to increase the size of the
==6876== main thread stack using the --main-stacksize= flag.
==6876== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 51: IPv6 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 51: IPv6 - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive ==6888== Invalid read of size 4
==6888== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6888== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6888== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6888== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6888== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6888== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6888== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6888== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6888== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6888== by 0x8062D5B: main (nginx.c:385)
==6888== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6888==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive ==6888==
==6888== Process terminating with default action of signal 11 (SIGSEGV)
==6888== Access not within mapped region at address 0x0
==6888== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6888== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6888== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6888== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6888== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6888== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6888== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6888== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6888== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6888== by 0x8062D5B: main (nginx.c:385)
==6888== If you believe this happened as a result of a stack
==6888== overflow in your program's main thread (unlikely but
==6888== possible), you can try to increase the size of the
==6888== main thread stack using the --main-stacksize= flag.
==6888== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - response_body - response is expected (repeated req 0, req 0) @@ -1,13 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-err: nil
-receive: Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive ==6910== Invalid read of size 4
==6910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6910== by 0x8062D5B: main (nginx.c:385)
==6910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive ==6910==
==6910== Process terminating with default action of signal 11 (SIGSEGV)
==6910== Access not within mapped region at address 0x0
==6910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6910== by 0x8062D5B: main (nginx.c:385)
==6910== If you believe this happened as a result of a stack
==6910== overflow in your program's main thread (unlikely but
==6910== possible), you can try to increase the size of the
==6910== main thread stack using the --main-stacksize= flag.
==6910== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - response_body - response is expected (repeated req 1, req 0) @@ -1,13 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-err: nil
-receive: Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 41: bad request tries to connect ==6922== Invalid read of size 4
==6922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6922== by 0x8062D5B: main (nginx.c:385)
==6922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6922==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 41: bad request tries to connect ==6922==
==6922== Process terminating with default action of signal 11 (SIGSEGV)
==6922== Access not within mapped region at address 0x0
==6922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6922== by 0x8062D5B: main (nginx.c:385)
==6922== If you believe this happened as a result of a stack
==6922== overflow in your program's main thread (unlikely but
==6922== possible), you can try to increase the size of the
==6922== main thread stack using the --main-stacksize= flag.
==6922== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 41: bad request tries to connect - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 41: bad request tries to connect - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 41: bad request tries to connect - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:26:52 [alert] 5437\#0: worker process 6922 exited on signal 11" (req 0) 2020/10/27 04:26:52 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:26:52 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:26:52 [debug] 5437\#0: reap children
2020/10/27 04:26:52 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:26:52 [debug] 5437\#0: child: 1 6922 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 41: bad request tries to connect ==6944== Invalid read of size 4
==6944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6944== by 0x8062D5B: main (nginx.c:385)
==6944== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6944==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 41: bad request tries to connect ==6944==
==6944== Process terminating with default action of signal 11 (SIGSEGV)
==6944== Access not within mapped region at address 0x0
==6944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6944== by 0x8062D5B: main (nginx.c:385)
==6944== If you believe this happened as a result of a stack
==6944== overflow in your program's main thread (unlikely but
==6944== possible), you can try to increase the size of the
==6944== main thread stack using the --main-stacksize= flag.
==6944== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 41: bad request tries to connect - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 41: bad request tries to connect - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 41: bad request tries to connect - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:26:52 [alert] 5437\#0: worker process 6944 exited on signal 11" (req 1) 2020/10/27 04:26:52 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:26:52 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:26:52 [debug] 5437\#0: reap children
2020/10/27 04:26:52 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:26:52 [debug] 5437\#0: child: 1 6944 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) ==6957== Invalid read of size 4
==6957== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6957== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6957== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6957== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6957== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6957== by 0x8062D5B: main (nginx.c:385)
==6957== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6957==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) ==6957==
==6957== Process terminating with default action of signal 11 (SIGSEGV)
==6957== Access not within mapped region at address 0x0
==6957== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6957== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6957== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6957== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6957== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6957== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6957== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6957== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6957== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6957== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6957== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6957== by 0x8062D5B: main (nginx.c:385)
==6957== If you believe this happened as a result of a stack
==6957== overflow in your program's main thread (unlikely but
==6957== possible), you can try to increase the size of the
==6957== main thread stack using the --main-stacksize= flag.
==6957== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) ==6978== Invalid read of size 4
==6978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6978== by 0x8062D5B: main (nginx.c:385)
==6978== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6978==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) ==6978==
==6978== Process terminating with default action of signal 11 (SIGSEGV)
==6978== Access not within mapped region at address 0x0
==6978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6978== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6978== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6978== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==6978== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==6978== by 0x8062D5B: main (nginx.c:385)
==6978== If you believe this happened as a result of a stack
==6978== overflow in your program's main thread (unlikely but
==6978== possible), you can try to increase the size of the
==6978== main thread stack using the --main-stacksize= flag.
==6978== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 ==6991== Invalid read of size 4
==6991== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6991== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6991== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6991== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6991== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6991== by 0x8062D5B: main (nginx.c:385)
==6991== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 ==6991==
==6991== Process terminating with default action of signal 11 (SIGSEGV)
==6991== Access not within mapped region at address 0x0
==6991== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==6991== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==6991== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==6991== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==6991== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==6991== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==6991== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==6991== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==6991== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==6991== by 0x8062D5B: main (nginx.c:385)
==6991== If you believe this happened as a result of a stack
==6991== overflow in your program's main thread (unlikely but
==6991== possible), you can try to increase the size of the
==6991== main thread stack using the --main-stacksize= flag.
==6991== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-bad argument \#2 to '?' (bad max argument)
-bad argument \#2 to '?' (bad max argument)
-expecting 2 arguments (including the object), but got 1
-bad argument \#2 to '?' (bad max argument)
'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 ==7012== Invalid read of size 4
==7012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7012== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7012== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7012== by 0x8062D5B: main (nginx.c:385)
==7012== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7012==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 ==7012==
==7012== Process terminating with default action of signal 11 (SIGSEGV)
==7012== Access not within mapped region at address 0x0
==7012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7012== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7012== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7012== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7012== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7012== by 0x8062D5B: main (nginx.c:385)
==7012== If you believe this happened as a result of a stack
==7012== overflow in your program's main thread (unlikely but
==7012== possible), you can try to increase the size of the
==7012== main thread stack using the --main-stacksize= flag.
==7012== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-bad argument \#2 to '?' (bad max argument)
-bad argument \#2 to '?' (bad max argument)
-expecting 2 arguments (including the object), but got 1
-bad argument \#2 to '?' (bad max argument)
'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) ==7024== Invalid read of size 4
==7024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7024== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7024== by 0x8062D5B: main (nginx.c:385)
==7024== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7024==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) ==7024==
==7024== Process terminating with default action of signal 11 (SIGSEGV)
==7024== Access not within mapped region at address 0x0
==7024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7024== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7024== by 0x8062D5B: main (nginx.c:385)
==7024== If you believe this happened as a result of a stack
==7024== overflow in your program's main thread (unlikely but
==7024== possible), you can try to increase the size of the
==7024== main thread stack using the --main-stacksize= flag.
==7024== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) ==7045== Invalid read of size 4
==7045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7045== by 0x8062D5B: main (nginx.c:385)
==7045== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7045==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) ==7045==
==7045== Process terminating with default action of signal 11 (SIGSEGV)
==7045== Access not within mapped region at address 0x0
==7045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7045== by 0x8062D5B: main (nginx.c:385)
==7045== If you believe this happened as a result of a stack
==7045== overflow in your program's main thread (unlikely but
==7045== possible), you can try to increase the size of the
==7045== main thread stack using the --main-stacksize= flag.
==7045== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) ==7058== Invalid read of size 4
==7058== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7058== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7058== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7058== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7058== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7058== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7058== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7058== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7058== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7058== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7058== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7058== by 0x8062D5B: main (nginx.c:385)
==7058== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) ==7058==
==7058== Process terminating with default action of signal 11 (SIGSEGV)
==7058== Access not within mapped region at address 0x0
==7058== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7058== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7058== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7058== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7058== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7058== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7058== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7058== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7058== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7058== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7058== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7058== by 0x8062D5B: main (nginx.c:385)
==7058== If you believe this happened as a result of a stack
==7058== overflow in your program's main thread (unlikely but
==7058== possible), you can try to increase the size of the
==7058== main thread stack using the --main-stacksize= flag.
==7058== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:27:09 [alert] 5437\#0: worker process 7058 exited on signal 11" (req 0) 2020/10/27 04:27:09 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:27:09 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:27:09 [debug] 5437\#0: reap children
2020/10/27 04:27:09 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:27:09 [debug] 5437\#0: child: 1 7058 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) ==7080== Invalid read of size 4
==7080== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7080== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7080== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7080== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7080== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7080== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7080== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7080== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7080== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7080== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7080== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7080== by 0x8062D5B: main (nginx.c:385)
==7080== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7080==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) ==7080==
==7080== Process terminating with default action of signal 11 (SIGSEGV)
==7080== Access not within mapped region at address 0x0
==7080== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7080== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7080== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7080== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7080== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7080== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7080== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7080== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7080== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7080== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7080== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7080== by 0x8062D5B: main (nginx.c:385)
==7080== If you believe this happened as a result of a stack
==7080== overflow in your program's main thread (unlikely but
==7080== possible), you can try to increase the size of the
==7080== main thread stack using the --main-stacksize= flag.
==7080== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:27:10 [alert] 5437\#0: worker process 7080 exited on signal 11" (req 1) 2020/10/27 04:27:10 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:27:10 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:27:10 [debug] 5437\#0: reap children
2020/10/27 04:27:10 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:27:10 [debug] 5437\#0: child: 1 7080 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 15: line reading (very small buffer) ==7092== Invalid read of size 4
==7092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7092== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7092== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7092== by 0x8062D5B: main (nginx.c:385)
==7092== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7092==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 15: line reading (very small buffer) ==7092==
==7092== Process terminating with default action of signal 11 (SIGSEGV)
==7092== Access not within mapped region at address 0x0
==7092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7092== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7092== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7092== by 0x8062D5B: main (nginx.c:385)
==7092== If you believe this happened as a result of a stack
==7092== overflow in your program's main thread (unlikely but
==7092== possible), you can try to increase the size of the
==7092== main thread stack using the --main-stacksize= flag.
==7092== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 15: line reading (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 15: line reading (very small buffer) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 15: line reading (very small buffer) ==7113== Invalid read of size 4
==7113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7113== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7113== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7113== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7113== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7113== by 0x8062D5B: main (nginx.c:385)
==7113== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7113==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 15: line reading (very small buffer) ==7113==
==7113== Process terminating with default action of signal 11 (SIGSEGV)
==7113== Access not within mapped region at address 0x0
==7113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7113== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7113== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7113== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7113== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7113== by 0x8062D5B: main (nginx.c:385)
==7113== If you believe this happened as a result of a stack
==7113== overflow in your program's main thread (unlikely but
==7113== possible), you can try to increase the size of the
==7113== main thread stack using the --main-stacksize= flag.
==7113== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 15: line reading (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 15: line reading (very small buffer) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 40: u->coctx left over bug ==7125== Invalid read of size 4
==7125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7125== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7125== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7125== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7125== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7125== by 0x8062D5B: main (nginx.c:385)
==7125== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7125==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 40: u->coctx left over bug ==7125==
==7125== Process terminating with default action of signal 11 (SIGSEGV)
==7125== Access not within mapped region at address 0x0
==7125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7125== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7125== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7125== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7125== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7125== by 0x8062D5B: main (nginx.c:385)
==7125== If you believe this happened as a result of a stack
==7125== overflow in your program's main thread (unlikely but
==7125== possible), you can try to increase the size of the
==7125== main thread stack using the --main-stacksize= flag.
==7125== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 40: u->coctx left over bug - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 40: u->coctx left over bug - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 57
-close: 1 nil
'
058-tcp-socket.t TEST 40: u->coctx left over bug - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 0)
058-tcp-socket.t TEST 40: u->coctx left over bug ==7146== Invalid read of size 4
==7146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7146== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7146== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7146== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7146== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7146== by 0x8062D5B: main (nginx.c:385)
==7146== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7146==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 40: u->coctx left over bug ==7146==
==7146== Process terminating with default action of signal 11 (SIGSEGV)
==7146== Access not within mapped region at address 0x0
==7146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7146== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7146== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7146== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7146== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7146== by 0x8062D5B: main (nginx.c:385)
==7146== If you believe this happened as a result of a stack
==7146== overflow in your program's main thread (unlikely but
==7146== possible), you can try to increase the size of the
==7146== main thread stack using the --main-stacksize= flag.
==7146== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 40: u->coctx left over bug - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 40: u->coctx left over bug - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 57
-close: 1 nil
'
058-tcp-socket.t TEST 40: u->coctx left over bug - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 1)
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) ==7158== Invalid read of size 4
==7158== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7158== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7158== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7158== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7158== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7158== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7158== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7158== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7158== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7158== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7158== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7158== by 0x8062D5B: main (nginx.c:385)
==7158== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7158==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) ==7158==
==7158== Process terminating with default action of signal 11 (SIGSEGV)
==7158== Access not within mapped region at address 0x0
==7158== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7158== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7158== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7158== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7158== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7158== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7158== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7158== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7158== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7158== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7158== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7158== by 0x8062D5B: main (nginx.c:385)
==7158== If you believe this happened as a result of a stack
==7158== overflow in your program's main thread (unlikely but
==7158== possible), you can try to increase the size of the
==7158== main thread stack using the --main-stacksize= flag.
==7158== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: connection refused
'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) ==7179== Invalid read of size 4
==7179== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7179== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7179== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7179== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7179== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7179== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7179== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7179== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7179== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7179== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7179== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7179== by 0x8062D5B: main (nginx.c:385)
==7179== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7179==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) ==7179==
==7179== Process terminating with default action of signal 11 (SIGSEGV)
==7179== Access not within mapped region at address 0x0
==7179== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7179== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7179== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7179== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7179== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7179== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7179== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7179== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7179== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7179== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7179== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7179== by 0x8062D5B: main (nginx.c:385)
==7179== If you believe this happened as a result of a stack
==7179== overflow in your program's main thread (unlikely but
==7179== possible), you can try to increase the size of the
==7179== main thread stack using the --main-stacksize= flag.
==7179== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: connection refused
'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 ==7191== Invalid read of size 4
==7191== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7191== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7191== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7191== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7191== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7191== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7191== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7191== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7191== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7191== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7191== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7191== by 0x8062D5B: main (nginx.c:385)
==7191== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7191==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 ==7191==
==7191== Process terminating with default action of signal 11 (SIGSEGV)
==7191== Access not within mapped region at address 0x0
==7191== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7191== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7191== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7191== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7191== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7191== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7191== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7191== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7191== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7191== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7191== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7191== by 0x8062D5B: main (nginx.c:385)
==7191== If you believe this happened as a result of a stack
==7191== overflow in your program's main thread (unlikely but
==7191== possible), you can try to increase the size of the
==7191== main thread stack using the --main-stacksize= flag.
==7191== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 ==7212== Invalid read of size 4
==7212== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7212== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7212== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7212== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7212== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7212== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7212== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7212== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7212== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7212== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7212== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7212== by 0x8062D5B: main (nginx.c:385)
==7212== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7212==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 ==7212==
==7212== Process terminating with default action of signal 11 (SIGSEGV)
==7212== Access not within mapped region at address 0x0
==7212== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7212== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7212== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7212== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7212== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7212== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7212== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7212== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7212== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7212== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7212== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7212== by 0x8062D5B: main (nginx.c:385)
==7212== If you believe this happened as a result of a stack
==7212== overflow in your program's main thread (unlikely but
==7212== possible), you can try to increase the size of the
==7212== main thread stack using the --main-stacksize= flag.
==7212== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase ==7224== Invalid read of size 4
==7224== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7224== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7224== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7224== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7224== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7224== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7224== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7224== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7224== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7224== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7224== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7224== by 0x8062D5B: main (nginx.c:385)
==7224== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7224==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase ==7224==
==7224== Process terminating with default action of signal 11 (SIGSEGV)
==7224== Access not within mapped region at address 0x0
==7224== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7224== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7224== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7224== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7224== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7224== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7224== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7224== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7224== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7224== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7224== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7224== by 0x8062D5B: main (nginx.c:385)
==7224== If you believe this happened as a result of a stack
==7224== overflow in your program's main thread (unlikely but
==7224== possible), you can try to increase the size of the
==7224== main thread stack using the --main-stacksize= flag.
==7224== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-1'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase ==7246== Invalid read of size 4
==7246== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7246== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7246== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7246== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7246== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7246== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7246== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7246== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7246== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7246== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7246== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7246== by 0x8062D5B: main (nginx.c:385)
==7246== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7246==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase ==7246==
==7246== Process terminating with default action of signal 11 (SIGSEGV)
==7246== Access not within mapped region at address 0x0
==7246== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7246== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7246== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7246== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7246== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7246== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7246== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7246== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7246== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7246== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7246== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7246== by 0x8062D5B: main (nginx.c:385)
==7246== If you believe this happened as a result of a stack
==7246== overflow in your program's main thread (unlikely but
==7246== possible), you can try to increase the size of the
==7246== main thread stack using the --main-stacksize= flag.
==7246== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-1'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off ==7258== Invalid read of size 4
==7258== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7258== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7258== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7258== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7258== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7258== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7258== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7258== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7258== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7258== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7258== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7258== by 0x8062D5B: main (nginx.c:385)
==7258== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7258==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off ==7258==
==7258== Process terminating with default action of signal 11 (SIGSEGV)
==7258== Access not within mapped region at address 0x0
==7258== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7258== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7258== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7258== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7258== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7258== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7258== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7258== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7258== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7258== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7258== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7258== by 0x8062D5B: main (nginx.c:385)
==7258== If you believe this happened as a result of a stack
==7258== overflow in your program's main thread (unlikely but
==7258== possible), you can try to increase the size of the
==7258== main thread stack using the --main-stacksize= flag.
==7258== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off ==7279== Invalid read of size 4
==7279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7279== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7279== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7279== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7279== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7279== by 0x8062D5B: main (nginx.c:385)
==7279== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7279==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off ==7279==
==7279== Process terminating with default action of signal 11 (SIGSEGV)
==7279== Access not within mapped region at address 0x0
==7279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7279== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7279== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7279== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7279== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7279== by 0x8062D5B: main (nginx.c:385)
==7279== If you believe this happened as a result of a stack
==7279== overflow in your program's main thread (unlikely but
==7279== possible), you can try to increase the size of the
==7279== main thread stack using the --main-stacksize= flag.
==7279== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) ==7291== Invalid read of size 4
==7291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7291== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7291== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7291== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7291== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7291== by 0x8062D5B: main (nginx.c:385)
==7291== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7291==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 16: ngx.socket.connect (working) ==7291==
==7291== Process terminating with default action of signal 11 (SIGSEGV)
==7291== Access not within mapped region at address 0x0
==7291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7291== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7291== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7291== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7291== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7291== by 0x8062D5B: main (nginx.c:385)
==7291== If you believe this happened as a result of a stack
==7291== overflow in your program's main thread (unlikely but
==7291== possible), you can try to increase the size of the
==7291== main thread stack using the --main-stacksize= flag.
==7291== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 16: ngx.socket.connect (working) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected.
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) ==7312== Invalid read of size 4
==7312== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7312== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7312== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7312== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7312== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7312== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7312== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7312== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7312== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7312== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7312== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7312== by 0x8062D5B: main (nginx.c:385)
==7312== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7312==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 16: ngx.socket.connect (working) ==7312==
==7312== Process terminating with default action of signal 11 (SIGSEGV)
==7312== Access not within mapped region at address 0x0
==7312== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7312== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7312== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7312== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7312== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7312== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7312== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7312== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7312== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7312== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7312== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7312== by 0x8062D5B: main (nginx.c:385)
==7312== If you believe this happened as a result of a stack
==7312== overflow in your program's main thread (unlikely but
==7312== possible), you can try to increase the size of the
==7312== main thread stack using the --main-stacksize= flag.
==7312== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 16: ngx.socket.connect (working) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected.
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 42: bad request tries to receive ==7324== Invalid read of size 4
==7324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7324== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7324== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7324== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7324== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7324== by 0x8062D5B: main (nginx.c:385)
==7324== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7324==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 42: bad request tries to receive ==7324==
==7324== Process terminating with default action of signal 11 (SIGSEGV)
==7324== Access not within mapped region at address 0x0
==7324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7324== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7324== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7324== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7324== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7324== by 0x8062D5B: main (nginx.c:385)
==7324== If you believe this happened as a result of a stack
==7324== overflow in your program's main thread (unlikely but
==7324== possible), you can try to increase the size of the
==7324== main thread stack using the --main-stacksize= flag.
==7324== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 42: bad request tries to receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 42: bad request tries to receive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 42: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:27:44 [alert] 5437\#0: worker process 7324 exited on signal 11" (req 0) 2020/10/27 04:27:44 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:27:44 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:27:44 [debug] 5437\#0: reap children
2020/10/27 04:27:44 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:27:44 [debug] 5437\#0: child: 1 7324 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 42: bad request tries to receive ==7345== Invalid read of size 4
==7345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7345== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7345== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7345== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7345== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7345== by 0x8062D5B: main (nginx.c:385)
==7345== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7345==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 42: bad request tries to receive ==7345==
==7345== Process terminating with default action of signal 11 (SIGSEGV)
==7345== Access not within mapped region at address 0x0
==7345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7345== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7345== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7345== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7345== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7345== by 0x8062D5B: main (nginx.c:385)
==7345== If you believe this happened as a result of a stack
==7345== overflow in your program's main thread (unlikely but
==7345== possible), you can try to increase the size of the
==7345== main thread stack using the --main-stacksize= flag.
==7345== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 42: bad request tries to receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 42: bad request tries to receive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 42: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:27:45 [alert] 5437\#0: worker process 7345 exited on signal 11" (req 1) 2020/10/27 04:27:45 [debug] 5437\#0: shmtx forced unlock
2020/10/27 04:27:45 [debug] 5437\#0: wake up, sigio 0
2020/10/27 04:27:45 [debug] 5437\#0: reap children
2020/10/27 04:27:45 [debug] 5437\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:27:45 [debug] 5437\#0: child: 1 7345 e:0 t:1 d:0 r:1 j:0
'
058-tcp-socket.t TEST 57: options_table is nil ==7358== Invalid read of size 4
==7358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7358== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7358== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7358== by 0x8062D5B: main (nginx.c:385)
==7358== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7358==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 57: options_table is nil ==7358==
==7358== Process terminating with default action of signal 11 (SIGSEGV)
==7358== Access not within mapped region at address 0x0
==7358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7358== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7358== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7358== by 0x8062D5B: main (nginx.c:385)
==7358== If you believe this happened as a result of a stack
==7358== overflow in your program's main thread (unlikely but
==7358== possible), you can try to increase the size of the
==7358== main thread stack using the --main-stacksize= flag.
==7358== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 57: options_table is nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 57: options_table is nil - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 57: options_table is nil ==7379== Invalid read of size 4
==7379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7379== by 0x8062D5B: main (nginx.c:385)
==7379== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 57: options_table is nil ==7379==
==7379== Process terminating with default action of signal 11 (SIGSEGV)
==7379== Access not within mapped region at address 0x0
==7379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7379== by 0x8062D5B: main (nginx.c:385)
==7379== If you believe this happened as a result of a stack
==7379== overflow in your program's main thread (unlikely but
==7379== possible), you can try to increase the size of the
==7379== main thread stack using the --main-stacksize= flag.
==7379== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 57: options_table is nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 57: options_table is nil - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") ==7391== Invalid read of size 4
==7391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7391== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7391== by 0x8062D5B: main (nginx.c:385)
==7391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") ==7391==
==7391== Process terminating with default action of signal 11 (SIGSEGV)
==7391== Access not within mapped region at address 0x0
==7391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7391== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7391== by 0x8062D5B: main (nginx.c:385)
==7391== If you believe this happened as a result of a stack
==7391== overflow in your program's main thread (unlikely but
==7391== possible), you can try to increase the size of the
==7391== main thread stack using the --main-stacksize= flag.
==7391== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") ==7412== Invalid read of size 4
==7412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7412== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7412== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7412== by 0x8062D5B: main (nginx.c:385)
==7412== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7412==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") ==7412==
==7412== Process terminating with default action of signal 11 (SIGSEGV)
==7412== Access not within mapped region at address 0x0
==7412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7412== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7412== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7412== by 0x8062D5B: main (nginx.c:385)
==7412== If you believe this happened as a result of a stack
==7412== overflow in your program's main thread (unlikely but
==7412== possible), you can try to increase the size of the
==7412== main thread stack using the --main-stacksize= flag.
==7412== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 38: receive(0) ==7424== Invalid read of size 4
==7424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7424== by 0x8062D5B: main (nginx.c:385)
==7424== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7424==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 38: receive(0) ==7424==
==7424== Process terminating with default action of signal 11 (SIGSEGV)
==7424== Access not within mapped region at address 0x0
==7424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7424== by 0x8062D5B: main (nginx.c:385)
==7424== If you believe this happened as a result of a stack
==7424== overflow in your program's main thread (unlikely but
==7424== possible), you can try to increase the size of the
==7424== main thread stack using the --main-stacksize= flag.
==7424== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 38: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 38: receive(0) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-received:
-close: 1 nil
'
058-tcp-socket.t TEST 38: receive(0) ==7445== Invalid read of size 4
==7445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7445== by 0x8062D5B: main (nginx.c:385)
==7445== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7445==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 38: receive(0) ==7445==
==7445== Process terminating with default action of signal 11 (SIGSEGV)
==7445== Access not within mapped region at address 0x0
==7445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7445== by 0x8062D5B: main (nginx.c:385)
==7445== If you believe this happened as a result of a stack
==7445== overflow in your program's main thread (unlikely but
==7445== possible), you can try to increase the size of the
==7445== main thread stack using the --main-stacksize= flag.
==7445== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 38: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 38: receive(0) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-received:
-close: 1 nil
'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) ==7457== Invalid read of size 4
==7457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7457== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7457== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7457== by 0x8062D5B: main (nginx.c:385)
==7457== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7457==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) ==7457==
==7457== Process terminating with default action of signal 11 (SIGSEGV)
==7457== Access not within mapped region at address 0x0
==7457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7457== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7457== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7457== by 0x8062D5B: main (nginx.c:385)
==7457== If you believe this happened as a result of a stack
==7457== overflow in your program's main thread (unlikely but
==7457== possible), you can try to increase the size of the
==7457== main thread stack using the --main-stacksize= flag.
==7457== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) ==7478== Invalid read of size 4
==7478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7478== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7478== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7478== by 0x8062D5B: main (nginx.c:385)
==7478== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7478==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) ==7478==
==7478== Process terminating with default action of signal 11 (SIGSEGV)
==7478== Access not within mapped region at address 0x0
==7478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7478== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7478== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7478== by 0x8062D5B: main (nginx.c:385)
==7478== If you believe this happened as a result of a stack
==7478== overflow in your program's main thread (unlikely but
==7478== possible), you can try to increase the size of the
==7478== main thread stack using the --main-stacksize= flag.
==7478== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
058-tcp-socket.t TEST 6: connection timeout (tcp) ==7491== Invalid read of size 4
==7491== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7491== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7491== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7491== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7491== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7491== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7491== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7491== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7491== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7491== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7491== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7491== by 0x8062D5B: main (nginx.c:385)
==7491== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7491==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 6: connection timeout (tcp) ==7491==
==7491== Process terminating with default action of signal 11 (SIGSEGV)
==7491== Access not within mapped region at address 0x0
==7491== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7491== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7491== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7491== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7491== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7491== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7491== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7491== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7491== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7491== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7491== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7491== by 0x8062D5B: main (nginx.c:385)
==7491== If you believe this happened as a result of a stack
==7491== overflow in your program's main thread (unlikely but
==7491== possible), you can try to increase the size of the
==7491== main thread stack using the --main-stacksize= flag.
==7491== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 6: connection timeout (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 6: connection timeout (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 6: connection timeout (tcp) ==7512== Invalid read of size 4
==7512== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7512== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7512== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7512== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7512== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7512== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7512== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7512== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7512== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7512== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7512== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7512== by 0x8062D5B: main (nginx.c:385)
==7512== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7512==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 6: connection timeout (tcp) ==7512==
==7512== Process terminating with default action of signal 11 (SIGSEGV)
==7512== Access not within mapped region at address 0x0
==7512== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7512== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7512== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7512== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7512== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7512== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7512== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7512== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7512== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7512== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7512== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7512== by 0x8062D5B: main (nginx.c:385)
==7512== If you believe this happened as a result of a stack
==7512== overflow in your program's main thread (unlikely but
==7512== possible), you can try to increase the size of the
==7512== main thread stack using the --main-stacksize= flag.
==7512== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 6: connection timeout (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 6: connection timeout (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 25: send tables of string fragments ==7524== Invalid read of size 4
==7524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7524== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7524== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7524== by 0x8062D5B: main (nginx.c:385)
==7524== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7524==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 25: send tables of string fragments ==7524==
==7524== Process terminating with default action of signal 11 (SIGSEGV)
==7524== Access not within mapped region at address 0x0
==7524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7524== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7524== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7524== by 0x8062D5B: main (nginx.c:385)
==7524== If you believe this happened as a result of a stack
==7524== overflow in your program's main thread (unlikely but
==7524== possible), you can try to increase the size of the
==7524== main thread stack using the --main-stacksize= flag.
==7524== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 25: send tables of string fragments - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 25: send tables of string fragments - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 25: send tables of string fragments ==7545== Invalid read of size 4
==7545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7545== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7545== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7545== by 0x8062D5B: main (nginx.c:385)
==7545== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7545==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
058-tcp-socket.t TEST 25: send tables of string fragments ==7545==
==7545== Process terminating with default action of signal 11 (SIGSEGV)
==7545== Access not within mapped region at address 0x0
==7545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7545== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7545== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7545== by 0x8062D5B: main (nginx.c:385)
==7545== If you believe this happened as a result of a stack
==7545== overflow in your program's main thread (unlikely but
==7545== possible), you can try to increase the size of the
==7545== main thread stack using the --main-stacksize= flag.
==7545== The main thread stack size used in this run was 8388608.

058-tcp-socket.t TEST 25: send tables of string fragments - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 25: send tables of string fragments - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==7554== Invalid read of size 4
==7554== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7554== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7554== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7554== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7554== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7554== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7554== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7554== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7554== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7554== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7554== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7554== by 0x8062D5B: main (nginx.c:385)
==7554== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7554==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
059-unix-socket.t TEST 1: connection refused (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==7554==
==7554== Process terminating with default action of signal 11 (SIGSEGV)
==7554== Access not within mapped region at address 0x0
==7554== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7554== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7554== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7554== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7554== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7554== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7554== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7554== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7554== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7554== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7554== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7554== by 0x8062D5B: main (nginx.c:385)
==7554== If you believe this happened as a result of a stack
==7554== overflow in your program's main thread (unlikely but
==7554== possible), you can try to increase the size of the
==7554== main thread stack using the --main-stacksize= flag.
==7554== The main thread stack size used in this run was 8388608.

059-unix-socket.t TEST 1: connection refused (unix domain socket) - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil no such file or directory
-send: nil closed
-receive: nil closed
-close: nil closed
'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==7555== Invalid read of size 4
==7555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7555== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7555== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7555== by 0x8062D5B: main (nginx.c:385)
==7555== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7555==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
059-unix-socket.t TEST 1: connection refused (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==7555==
==7555== Process terminating with default action of signal 11 (SIGSEGV)
==7555== Access not within mapped region at address 0x0
==7555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7555== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7555== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7555== by 0x8062D5B: main (nginx.c:385)
==7555== If you believe this happened as a result of a stack
==7555== overflow in your program's main thread (unlikely but
==7555== possible), you can try to increase the size of the
==7555== main thread stack using the --main-stacksize= flag.
==7555== The main thread stack size used in this run was 8388608.

059-unix-socket.t TEST 1: connection refused (unix domain socket) - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil no such file or directory
-send: nil closed
-receive: nil closed
-close: nil closed
'
059-unix-socket.t TEST 2: invalid host argument ==7567== Invalid read of size 4
==7567== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7567== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7567== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7567== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7567== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7567== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7567== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7567== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7567== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7567== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7567== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7567== by 0x8062D5B: main (nginx.c:385)
==7567== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7567==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
059-unix-socket.t TEST 2: invalid host argument ==7567==
==7567== Process terminating with default action of signal 11 (SIGSEGV)
==7567== Access not within mapped region at address 0x0
==7567== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7567== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7567== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7567== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7567== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7567== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7567== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7567== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7567== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7567== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7567== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7567== by 0x8062D5B: main (nginx.c:385)
==7567== If you believe this happened as a result of a stack
==7567== overflow in your program's main thread (unlikely but
==7567== possible), you can try to increase the size of the
==7567== main thread stack using the --main-stacksize= flag.
==7567== The main thread stack size used in this run was 8388608.

059-unix-socket.t TEST 2: invalid host argument - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 2: invalid host argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: failed to parse host name "/tmp/test-nginx.sock": invalid host
'
059-unix-socket.t TEST 2: invalid host argument ==7588== Invalid read of size 4
==7588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7588== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7588== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7588== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7588== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7588== by 0x8062D5B: main (nginx.c:385)
==7588== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7588==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
059-unix-socket.t TEST 2: invalid host argument ==7588==
==7588== Process terminating with default action of signal 11 (SIGSEGV)
==7588== Access not within mapped region at address 0x0
==7588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7588== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7588== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7588== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7588== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7588== by 0x8062D5B: main (nginx.c:385)
==7588== If you believe this happened as a result of a stack
==7588== overflow in your program's main thread (unlikely but
==7588== possible), you can try to increase the size of the
==7588== main thread stack using the --main-stacksize= flag.
==7588== The main thread stack size used in this run was 8388608.

059-unix-socket.t TEST 2: invalid host argument - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 2: invalid host argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: failed to parse host name "/tmp/test-nginx.sock": invalid host
'
059-unix-socket.t TEST 3: sanity ==7600== Invalid read of size 4
==7600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7600== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7600== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7600== by 0x8062D5B: main (nginx.c:385)
==7600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
059-unix-socket.t TEST 3: sanity ==7600==
==7600== Process terminating with default action of signal 11 (SIGSEGV)
==7600== Access not within mapped region at address 0x0
==7600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7600== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7600== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7600== by 0x8062D5B: main (nginx.c:385)
==7600== If you believe this happened as a result of a stack
==7600== overflow in your program's main thread (unlikely but
==7600== possible), you can try to increase the size of the
==7600== main thread stack using the --main-stacksize= flag.
==7600== The main thread stack size used in this run was 8388608.

059-unix-socket.t TEST 3: sanity - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 3: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
059-unix-socket.t TEST 3: sanity ==7621== Invalid read of size 4
==7621== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7621== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7621== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7621== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7621== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7621== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7621== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7621== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7621== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7621== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7621== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7621== by 0x8062D5B: main (nginx.c:385)
==7621== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7621==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
059-unix-socket.t TEST 3: sanity ==7621==
==7621== Process terminating with default action of signal 11 (SIGSEGV)
==7621== Access not within mapped region at address 0x0
==7621== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7621== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7621== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7621== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7621== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7621== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7621== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7621== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7621== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7621== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7621== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7621== by 0x8062D5B: main (nginx.c:385)
==7621== If you believe this happened as a result of a stack
==7621== overflow in your program's main thread (unlikely but
==7621== possible), you can try to increase the size of the
==7621== main thread stack using the --main-stacksize= flag.
==7621== The main thread stack size used in this run was 8388608.

059-unix-socket.t TEST 3: sanity - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 3: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
060-lua-memcached.t ERROR: client socket timed out - TEST 2: raw memcached '
060-lua-memcached.t TEST 2: raw memcached - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 2: raw memcached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t TEST 2: raw memcached - pattern "lua reuse free buf memory" should match a line in error.log (req 0)
060-lua-memcached.t ERROR: client socket timed out - TEST 2: raw memcached '
060-lua-memcached.t TEST 2: raw memcached - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 2: raw memcached - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t TEST 2: raw memcached - pattern "lua reuse free buf memory" should match a line in error.log (req 1)
060-lua-memcached.t ERROR: client socket timed out - TEST 1: sanity '
060-lua-memcached.t TEST 1: sanity - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t ERROR: client socket timed out - TEST 1: sanity '
060-lua-memcached.t TEST 1: sanity - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==7672== Invalid read of size 4
==7672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7672== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7672== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7672== by 0x8062D5B: main (nginx.c:385)
==7672== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7672==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==7672==
==7672== Process terminating with default action of signal 11 (SIGSEGV)
==7672== Access not within mapped region at address 0x0
==7672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7672== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7672== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7672== by 0x8062D5B: main (nginx.c:385)
==7672== If you believe this happened as a result of a stack
==7672== overflow in your program's main thread (unlikely but
==7672== possible), you can try to increase the size of the
==7672== main thread stack using the --main-stacksize= flag.
==7672== The main thread stack size used in this run was 8388608.
==7672== 512 bytes in 1 blocks are definitely lost in loss record 2,875 of 3,148
==7672== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==7672== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==7672== by 0x40CC146: mem_alloc (lib_aux.c:335)
==7672== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==7672== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==7672== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==7672== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==7672== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==7672== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==7672== by 0x409F552: lj_record_ins (lj_record.c:2339)
==7672== by 0x40BB16A: trace_state (lj_trace.c:680)
==7672== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7672== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==7672== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==7672== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7672== by 0x40D5DFD: lj_cf_package_require (lib_package.c:464)
==7672== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7672== by 0x407FA29: lua_resume (lj_api.c:1296)
==7672== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==7672== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==7672== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==7672== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==7672== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==7672== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==7672== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==7672== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==7672== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==7672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7672== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7672== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7672== by 0x8062D5B: main (nginx.c:385)
==7672==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lj_cf_package_require
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 1: sanity - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:53 [error] 7672\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:28:53 [debug] 7672\#0: *3 stream lua tcp socket handle connect error
2020/10/27 04:28:53 [debug] 7672\#0: *3 stream lua finalize socket
2020/10/27 04:28:53 [debug] 7672\#0: *3 lua stream cleanup free: 04D5D958
2020/10/27 04:28:53 [debug] 7672\#0: *3 lua close socket connection
2020/10/27 04:28:53 [debug] 7672\#0: *3 reusable connection: 0
2020/10/27 04:28:53 [debug] 7672\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 04:28:53 [debug] 7672\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:28:53 [debug] 7672\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 04:28:53 [debug] 7672\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:04D5D5C0
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:53 [error] 7672\#0: *3 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 0) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:31):5: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 04:28:53 [debug] 7672\#0: *3 lua request cleanup: forcible=0
2020/10/27 04:28:53 [debug] 7672\#0: *3 stream lua run thread returned 500
'
061-lua-redis.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==7673== Invalid read of size 4
==7673== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7673== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7673== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7673== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7673== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7673== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7673== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7673== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7673== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7673== by 0x8062D5B: main (nginx.c:385)
==7673== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7673==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==7673==
==7673== Process terminating with default action of signal 11 (SIGSEGV)
==7673== Access not within mapped region at address 0x0
==7673== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7673== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7673== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7673== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7673== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7673== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7673== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7673== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7673== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7673== by 0x8062D5B: main (nginx.c:385)
==7673== If you believe this happened as a result of a stack
==7673== overflow in your program's main thread (unlikely but
==7673== possible), you can try to increase the size of the
==7673== main thread stack using the --main-stacksize= flag.
==7673== The main thread stack size used in this run was 8388608.
==7673== 512 bytes in 1 blocks are definitely lost in loss record 2,875 of 3,148
==7673== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==7673== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==7673== by 0x40CC146: mem_alloc (lib_aux.c:335)
==7673== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==7673== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==7673== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==7673== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==7673== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==7673== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==7673== by 0x409F552: lj_record_ins (lj_record.c:2339)
==7673== by 0x40BB16A: trace_state (lj_trace.c:680)
==7673== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7673== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==7673== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==7673== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7673== by 0x40D5DFD: lj_cf_package_require (lib_package.c:464)
==7673== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7673== by 0x407FA29: lua_resume (lj_api.c:1296)
==7673== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==7673== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==7673== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==7673== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==7673== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==7673== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==7673== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==7673== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==7673== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==7673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7673== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7673== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7673== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7673== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7673== by 0x8062D5B: main (nginx.c:385)
==7673==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lj_cf_package_require
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 1: sanity - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:54 [error] 7673\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:28:54 [debug] 7673\#0: *7 stream lua tcp socket handle connect error
2020/10/27 04:28:54 [debug] 7673\#0: *7 stream lua finalize socket
2020/10/27 04:28:54 [debug] 7673\#0: *7 lua stream cleanup free: 04D5D958
2020/10/27 04:28:54 [debug] 7673\#0: *7 lua close socket connection
2020/10/27 04:28:54 [debug] 7673\#0: *7 reusable connection: 0
2020/10/27 04:28:54 [debug] 7673\#0: *7 stream lua tcp socket waking up the current request
2020/10/27 04:28:54 [debug] 7673\#0: *7 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:28:54 [debug] 7673\#0: *7 stream lua tcp operation done, resuming lua thread
2020/10/27 04:28:54 [debug] 7673\#0: *7 stream lua tcp socket calling prepare retvals handler 081677D0, u:04D5D5C0
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:54 [error] 7673\#0: *7 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 1) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:31):5: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 04:28:54 [debug] 7673\#0: *7 lua request cleanup: forcible=0
2020/10/27 04:28:54 [debug] 7673\#0: *7 stream lua run thread returned 500
'
061-lua-redis.t TEST 2: coroutine-based pub/sub ==7685== Invalid read of size 4
==7685== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7685== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7685== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7685== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7685== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7685== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7685== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7685== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7685== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7685== by 0x8062D5B: main (nginx.c:385)
==7685== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7685==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 2: coroutine-based pub/sub ==7685==
==7685== Process terminating with default action of signal 11 (SIGSEGV)
==7685== Access not within mapped region at address 0x0
==7685== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7685== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7685== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7685== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7685== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7685== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7685== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7685== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7685== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7685== by 0x8062D5B: main (nginx.c:385)
==7685== If you believe this happened as a result of a stack
==7685== overflow in your program's main thread (unlikely but
==7685== possible), you can try to increase the size of the
==7685== main thread stack using the --main-stacksize= flag.
==7685== The main thread stack size used in this run was 8388608.
==7685== 512 bytes in 1 blocks are definitely lost in loss record 2,909 of 3,187
==7685== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==7685== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==7685== by 0x40CC146: mem_alloc (lib_aux.c:335)
==7685== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==7685== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==7685== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==7685== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==7685== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==7685== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==7685== by 0x409F552: lj_record_ins (lj_record.c:2339)
==7685== by 0x40BB16A: trace_state (lj_trace.c:680)
==7685== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7685== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==7685== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==7685== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7685== by 0x40D5DFD: lj_cf_package_require (lib_package.c:464)
==7685== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7685== by 0x407FA29: lua_resume (lj_api.c:1296)
==7685== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==7685== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==7685== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==7685== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==7685== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==7685== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==7685== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==7685== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==7685== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==7685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7685== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7685== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7685== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7685== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7685== by 0x8062D5B: main (nginx.c:385)
==7685==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lj_cf_package_require
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 2: coroutine-based pub/sub - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-msg type: table
-abort: function
-msg: {"channel":"foo","kind":"subscribe","payload":1}
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 3"}
-abort: function
-msg type: nil
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:57 [error] 7685\#0: *36 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:28:57 [debug] 7685\#0: *36 stream lua tcp socket handle connect error
2020/10/27 04:28:57 [debug] 7685\#0: *36 stream lua finalize socket
2020/10/27 04:28:57 [debug] 7685\#0: *36 lua stream cleanup free: 050D48A0
2020/10/27 04:28:57 [debug] 7685\#0: *36 lua close socket connection
2020/10/27 04:28:57 [debug] 7685\#0: *36 reusable connection: 0
2020/10/27 04:28:57 [debug] 7685\#0: *36 stream lua tcp socket waking up the current request
2020/10/27 04:28:57 [debug] 7685\#0: *36 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:28:57 [debug] 7685\#0: *36 stream lua tcp operation done, resuming lua thread
2020/10/27 04:28:57 [debug] 7685\#0: *36 stream lua tcp socket calling prepare retvals handler 081677D0, u:050D4508
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:57 [error] 7685\#0: *36 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 0) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 04:28:57 [debug] 7685\#0: *36 lua request cleanup: forcible=0
2020/10/27 04:28:57 [debug] 7685\#0: *36 stream lua run thread returned 500
'
061-lua-redis.t TEST 2: coroutine-based pub/sub ==7706== Invalid read of size 4
==7706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7706== by 0x8062D5B: main (nginx.c:385)
==7706== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7706==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 2: coroutine-based pub/sub ==7706==
==7706== Process terminating with default action of signal 11 (SIGSEGV)
==7706== Access not within mapped region at address 0x0
==7706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7706== by 0x8062D5B: main (nginx.c:385)
==7706== If you believe this happened as a result of a stack
==7706== overflow in your program's main thread (unlikely but
==7706== possible), you can try to increase the size of the
==7706== main thread stack using the --main-stacksize= flag.
==7706== The main thread stack size used in this run was 8388608.
==7706== 512 bytes in 1 blocks are definitely lost in loss record 2,909 of 3,187
==7706== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==7706== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==7706== by 0x40CC146: mem_alloc (lib_aux.c:335)
==7706== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==7706== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==7706== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==7706== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==7706== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==7706== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==7706== by 0x409F552: lj_record_ins (lj_record.c:2339)
==7706== by 0x40BB16A: trace_state (lj_trace.c:680)
==7706== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7706== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==7706== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==7706== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7706== by 0x40D5DFD: lj_cf_package_require (lib_package.c:464)
==7706== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==7706== by 0x407FA29: lua_resume (lj_api.c:1296)
==7706== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==7706== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==7706== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==7706== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==7706== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==7706== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==7706== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==7706== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==7706== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==7706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==7706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==7706== by 0x8062D5B: main (nginx.c:385)
==7706==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lj_cf_package_require
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
061-lua-redis.t TEST 2: coroutine-based pub/sub - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-msg type: table
-abort: function
-msg: {"channel":"foo","kind":"subscribe","payload":1}
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 3"}
-abort: function
-msg type: nil
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:58 [error] 7706\#0: *40 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:28:58 [debug] 7706\#0: *40 stream lua tcp socket handle connect error
2020/10/27 04:28:58 [debug] 7706\#0: *40 stream lua finalize socket
2020/10/27 04:28:58 [debug] 7706\#0: *40 lua stream cleanup free: 050ADDE0
2020/10/27 04:28:58 [debug] 7706\#0: *40 lua close socket connection
2020/10/27 04:28:58 [debug] 7706\#0: *40 reusable connection: 0
2020/10/27 04:28:58 [debug] 7706\#0: *40 stream lua tcp socket waking up the current request
2020/10/27 04:28:58 [debug] 7706\#0: *40 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:28:58 [debug] 7706\#0: *40 stream lua tcp operation done, resuming lua thread
2020/10/27 04:28:58 [debug] 7706\#0: *40 stream lua tcp socket calling prepare retvals handler 081677D0, u:050ADA48
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:28:58 [error] 7706\#0: *40 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 1) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 04:28:58 [debug] 7706\#0: *40 lua request cleanup: forcible=0
2020/10/27 04:28:58 [debug] 7706\#0: *40 stream lua run thread returned 500
'
062-count.t TEST 1: entries under ngx. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==7715== Invalid read of size 4
==7715== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7715== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7715== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7715== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7715== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7715== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7715== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7715== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7715== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7715== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7715== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7715== by 0x8062D5B: main (nginx.c:385)
==7715== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7715==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 1: entries under ngx. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==7715==
==7715== Process terminating with default action of signal 11 (SIGSEGV)
==7715== Access not within mapped region at address 0x0
==7715== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7715== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7715== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7715== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7715== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7715== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7715== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7715== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7715== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7715== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7715== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==7715== by 0x8062D5B: main (nginx.c:385)
==7715== If you believe this happened as a result of a stack
==7715== overflow in your program's main thread (unlikely but
==7715== possible), you can try to increase the size of the
==7715== main thread stack using the --main-stacksize= flag.
==7715== The main thread stack size used in this run was 8388608.

062-count.t TEST 1: entries under ngx. (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 1: entries under ngx. (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ngx: 53
'
062-count.t TEST 6: shdict metatable ==7727== Invalid read of size 4
==7727== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7727== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7727== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7727== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7727== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7727== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7727== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7727== by 0x8062D5B: main (nginx.c:385)
==7727== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7727==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 6: shdict metatable ==7727==
==7727== Process terminating with default action of signal 11 (SIGSEGV)
==7727== Access not within mapped region at address 0x0
==7727== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7727== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7727== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7727== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7727== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7727== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7727== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7727== by 0x8062D5B: main (nginx.c:385)
==7727== If you believe this happened as a result of a stack
==7727== overflow in your program's main thread (unlikely but
==7727== possible), you can try to increase the size of the
==7727== main thread stack using the --main-stacksize= flag.
==7727== The main thread stack size used in this run was 8388608.

062-count.t TEST 6: shdict metatable - status code ok got: ''
expected: '200'
062-count.t TEST 6: shdict metatable - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 22
'
062-count.t TEST 10: entries under coroutine. (content by lua) ==7758== Invalid read of size 4
==7758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7758== by 0x8062D5B: main (nginx.c:385)
==7758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 10: entries under coroutine. (content by lua) ==7758==
==7758== Process terminating with default action of signal 11 (SIGSEGV)
==7758== Access not within mapped region at address 0x0
==7758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7758== by 0x8062D5B: main (nginx.c:385)
==7758== If you believe this happened as a result of a stack
==7758== overflow in your program's main thread (unlikely but
==7758== possible), you can try to increase the size of the
==7758== main thread stack using the --main-stacksize= flag.
==7758== The main thread stack size used in this run was 8388608.

062-count.t TEST 10: entries under coroutine. (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 10: entries under coroutine. (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'coroutine: 16
'
062-count.t TEST 2: entries under ngx.req (content by lua) ==7790== Invalid read of size 4
==7790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7790== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7790== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7790== by 0x8062D5B: main (nginx.c:385)
==7790== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7790==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 2: entries under ngx.req (content by lua) ==7790==
==7790== Process terminating with default action of signal 11 (SIGSEGV)
==7790== Access not within mapped region at address 0x0
==7790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7790== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7790== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7790== by 0x8062D5B: main (nginx.c:385)
==7790== If you believe this happened as a result of a stack
==7790== overflow in your program's main thread (unlikely but
==7790== possible), you can try to increase the size of the
==7790== main thread stack using the --main-stacksize= flag.
==7790== The main thread stack size used in this run was 8388608.

062-count.t TEST 2: entries under ngx.req (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 2: entries under ngx.req (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 2
'
062-count.t TEST 15: entries under the metatable of req raw sockets ==7823== Invalid read of size 4
==7823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7823== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7823== by 0x8062D5B: main (nginx.c:385)
==7823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 15: entries under the metatable of req raw sockets ==7823==
==7823== Process terminating with default action of signal 11 (SIGSEGV)
==7823== Access not within mapped region at address 0x0
==7823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7823== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7823== by 0x8062D5B: main (nginx.c:385)
==7823== If you believe this happened as a result of a stack
==7823== overflow in your program's main thread (unlikely but
==7823== possible), you can try to increase the size of the
==7823== main thread stack using the --main-stacksize= flag.
==7823== The main thread stack size used in this run was 8388608.

062-count.t TEST 15: entries under the metatable of req raw sockets - status code ok got: ''
expected: '200'
062-count.t TEST 15: entries under the metatable of req raw sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 9
'
062-count.t TEST 5: entries under the metatable of req sockets ==7855== Invalid read of size 4
==7855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7855== by 0x8062D5B: main (nginx.c:385)
==7855== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7855==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 5: entries under the metatable of req sockets ==7855==
==7855== Process terminating with default action of signal 11 (SIGSEGV)
==7855== Access not within mapped region at address 0x0
==7855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7855== by 0x8062D5B: main (nginx.c:385)
==7855== If you believe this happened as a result of a stack
==7855== overflow in your program's main thread (unlikely but
==7855== possible), you can try to increase the size of the
==7855== main thread stack using the --main-stacksize= flag.
==7855== The main thread stack size used in this run was 8388608.

062-count.t TEST 5: entries under the metatable of req sockets - status code ok got: ''
expected: '200'
062-count.t TEST 5: entries under the metatable of req sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 9
'
062-count.t TEST 9: entries under ngx.re ==7887== Invalid read of size 4
==7887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7887== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7887== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7887== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7887== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7887== by 0x8062D5B: main (nginx.c:385)
==7887== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7887==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 9: entries under ngx.re ==7887==
==7887== Process terminating with default action of signal 11 (SIGSEGV)
==7887== Access not within mapped region at address 0x0
==7887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7887== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7887== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7887== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7887== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7887== by 0x8062D5B: main (nginx.c:385)
==7887== If you believe this happened as a result of a stack
==7887== overflow in your program's main thread (unlikely but
==7887== possible), you can try to increase the size of the
==7887== main thread stack using the --main-stacksize= flag.
==7887== The main thread stack size used in this run was 8388608.

062-count.t TEST 9: entries under ngx.re - status code ok got: ''
expected: '200'
062-count.t TEST 9: entries under ngx.re - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 5
'
062-count.t TEST 13: entries under the metatable of tcp sockets ==7919== Invalid read of size 4
==7919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7919== by 0x8062D5B: main (nginx.c:385)
==7919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 13: entries under the metatable of tcp sockets ==7919==
==7919== Process terminating with default action of signal 11 (SIGSEGV)
==7919== Access not within mapped region at address 0x0
==7919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7919== by 0x8062D5B: main (nginx.c:385)
==7919== If you believe this happened as a result of a stack
==7919== overflow in your program's main thread (unlikely but
==7919== possible), you can try to increase the size of the
==7919== main thread stack using the --main-stacksize= flag.
==7919== The main thread stack size used in this run was 8388608.

062-count.t TEST 13: entries under the metatable of tcp sockets - status code ok got: ''
expected: '200'
062-count.t TEST 13: entries under the metatable of tcp sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 14
'
062-count.t TEST 12: entries under ngx.worker ==7951== Invalid read of size 4
==7951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7951== by 0x8062D5B: main (nginx.c:385)
==7951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7951==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 12: entries under ngx.worker ==7951==
==7951== Process terminating with default action of signal 11 (SIGSEGV)
==7951== Access not within mapped region at address 0x0
==7951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7951== by 0x8062D5B: main (nginx.c:385)
==7951== If you believe this happened as a result of a stack
==7951== overflow in your program's main thread (unlikely but
==7951== possible), you can try to increase the size of the
==7951== main thread stack using the --main-stacksize= flag.
==7951== The main thread stack size used in this run was 8388608.

062-count.t TEST 12: entries under ngx.worker - status code ok got: ''
expected: '200'
062-count.t TEST 12: entries under ngx.worker - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'worker: 4
'
062-count.t TEST 14: entries under the metatable of udp sockets ==7983== Invalid read of size 4
==7983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7983== by 0x8062D5B: main (nginx.c:385)
==7983== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7983==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 14: entries under the metatable of udp sockets ==7983==
==7983== Process terminating with default action of signal 11 (SIGSEGV)
==7983== Access not within mapped region at address 0x0
==7983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==7983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==7983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==7983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==7983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==7983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==7983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==7983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==7983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==7983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7983== by 0x8062D5B: main (nginx.c:385)
==7983== If you believe this happened as a result of a stack
==7983== overflow in your program's main thread (unlikely but
==7983== possible), you can try to increase the size of the
==7983== main thread stack using the --main-stacksize= flag.
==7983== The main thread stack size used in this run was 8388608.

062-count.t TEST 14: entries under the metatable of udp sockets - status code ok got: ''
expected: '200'
062-count.t TEST 14: entries under the metatable of udp sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 6
'
062-count.t TEST 8: entries under ngx.config ==8015== Invalid read of size 4
==8015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8015== by 0x8062D5B: main (nginx.c:385)
==8015== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8015==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 8: entries under ngx.config ==8015==
==8015== Process terminating with default action of signal 11 (SIGSEGV)
==8015== Access not within mapped region at address 0x0
==8015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8015== by 0x8062D5B: main (nginx.c:385)
==8015== If you believe this happened as a result of a stack
==8015== overflow in your program's main thread (unlikely but
==8015== possible), you can try to increase the size of the
==8015== main thread stack using the --main-stacksize= flag.
==8015== The main thread stack size used in this run was 8388608.

062-count.t TEST 8: entries under ngx.config - status code ok got: ''
expected: '200'
062-count.t TEST 8: entries under ngx.config - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 6
'
062-count.t TEST 11: entries under ngx.thread. (content by lua) ==8047== Invalid read of size 4
==8047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8047== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8047== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8047== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8047== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8047== by 0x8062D5B: main (nginx.c:385)
==8047== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8047==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 11: entries under ngx.thread. (content by lua) ==8047==
==8047== Process terminating with default action of signal 11 (SIGSEGV)
==8047== Access not within mapped region at address 0x0
==8047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8047== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8047== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8047== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8047== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8047== by 0x8062D5B: main (nginx.c:385)
==8047== If you believe this happened as a result of a stack
==8047== overflow in your program's main thread (unlikely but
==8047== possible), you can try to increase the size of the
==8047== main thread stack using the --main-stacksize= flag.
==8047== The main thread stack size used in this run was 8388608.

062-count.t TEST 11: entries under ngx.thread. (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 11: entries under ngx.thread. (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'thread: 3
'
062-count.t TEST 7: entries under ngx.timer ==8079== Invalid read of size 4
==8079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8079== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8079== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8079== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8079== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8079== by 0x8062D5B: main (nginx.c:385)
==8079== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8079==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 7: entries under ngx.timer ==8079==
==8079== Process terminating with default action of signal 11 (SIGSEGV)
==8079== Access not within mapped region at address 0x0
==8079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8079== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8079== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8079== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8079== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8079== by 0x8062D5B: main (nginx.c:385)
==8079== If you believe this happened as a result of a stack
==8079== overflow in your program's main thread (unlikely but
==8079== possible), you can try to increase the size of the
==8079== main thread stack using the --main-stacksize= flag.
==8079== The main thread stack size used in this run was 8388608.

062-count.t TEST 7: entries under ngx.timer - status code ok got: ''
expected: '200'
062-count.t TEST 7: entries under ngx.timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 4
'
062-count.t TEST 3: entries under ngx.socket ==8111== Invalid read of size 4
==8111== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8111== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8111== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8111== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8111== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8111== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8111== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8111== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8111== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8111== by 0x8062D5B: main (nginx.c:385)
==8111== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8111==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
062-count.t TEST 3: entries under ngx.socket ==8111==
==8111== Process terminating with default action of signal 11 (SIGSEGV)
==8111== Access not within mapped region at address 0x0
==8111== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8111== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8111== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8111== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8111== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8111== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8111== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8111== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8111== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8111== by 0x8062D5B: main (nginx.c:385)
==8111== If you believe this happened as a result of a stack
==8111== overflow in your program's main thread (unlikely but
==8111== possible), you can try to increase the size of the
==8111== main thread stack using the --main-stacksize= flag.
==8111== The main thread stack size used in this run was 8388608.

062-count.t TEST 3: entries under ngx.socket - status code ok got: ''
expected: '200'
062-count.t TEST 3: entries under ngx.socket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 4
'
064-pcall.t TEST 2: xpcall works - Can't connect to 127.0.0.1:1984: Connection refused ==8140== Invalid read of size 4
==8140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8140== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==8140== by 0x8062D5B: main (nginx.c:385)
==8140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
064-pcall.t TEST 2: xpcall works - Can't connect to 127.0.0.1:1984: Connection refused ==8140==
==8140== Process terminating with default action of signal 11 (SIGSEGV)
==8140== Access not within mapped region at address 0x0
==8140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8140== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==8140== by 0x8062D5B: main (nginx.c:385)
==8140== If you believe this happened as a result of a stack
==8140== overflow in your program's main thread (unlikely but
==8140== possible), you can try to increase the size of the
==8140== main thread stack using the --main-stacksize= flag.
==8140== The main thread stack size used in this run was 8388608.

064-pcall.t TEST 2: xpcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 2: xpcall works - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:^error handler called: content_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 2
res: falsethis is the new err
res len: 4
res: true23hellotrue
$)'
064-pcall.t TEST 2: xpcall works - Can't connect to 127.0.0.1:1984: Connection refused ==8141== Invalid read of size 4
==8141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8141== by 0x8062D5B: main (nginx.c:385)
==8141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
064-pcall.t TEST 2: xpcall works - Can't connect to 127.0.0.1:1984: Connection refused ==8141==
==8141== Process terminating with default action of signal 11 (SIGSEGV)
==8141== Access not within mapped region at address 0x0
==8141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8141== by 0x8062D5B: main (nginx.c:385)
==8141== If you believe this happened as a result of a stack
==8141== overflow in your program's main thread (unlikely but
==8141== possible), you can try to increase the size of the
==8141== main thread stack using the --main-stacksize= flag.
==8141== The main thread stack size used in this run was 8388608.

064-pcall.t TEST 2: xpcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 2: xpcall works - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^:^error handler called: content_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 2
res: falsethis is the new err
res len: 4
res: true23hellotrue
$)'
064-pcall.t TEST 1: pcall works ==8153== Invalid read of size 4
==8153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8153== by 0x8062D5B: main (nginx.c:385)
==8153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
064-pcall.t TEST 1: pcall works ==8153==
==8153== Process terminating with default action of signal 11 (SIGSEGV)
==8153== Access not within mapped region at address 0x0
==8153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8153== by 0x8062D5B: main (nginx.c:385)
==8153== If you believe this happened as a result of a stack
==8153== overflow in your program's main thread (unlikely but
==8153== possible), you can try to increase the size of the
==8153== main thread stack using the --main-stacksize= flag.
==8153== The main thread stack size used in this run was 8388608.

064-pcall.t TEST 1: pcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 1: pcall works - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^s:^res len: 2
res: falsecontent_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 4
res: true23hellotrue
$)'
064-pcall.t TEST 1: pcall works ==8174== Invalid read of size 4
==8174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8174== by 0x8062D5B: main (nginx.c:385)
==8174== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8174==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
064-pcall.t TEST 1: pcall works ==8174==
==8174== Process terminating with default action of signal 11 (SIGSEGV)
==8174== Access not within mapped region at address 0x0
==8174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8174== by 0x8062D5B: main (nginx.c:385)
==8174== If you believe this happened as a result of a stack
==8174== overflow in your program's main thread (unlikely but
==8174== possible), you can try to increase the size of the
==8174== main thread stack using the --main-stacksize= flag.
==8174== The main thread stack size used in this run was 8388608.

064-pcall.t TEST 1: pcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 1: pcall works - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^s:^res len: 2
res: falsecontent_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 4
res: true23hellotrue
$)'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - Can't connect to 127.0.0.1:1984: Connection refused ==8183== Invalid read of size 4
==8183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8183== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8183== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8183== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8183== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==8183== by 0x8062D5B: main (nginx.c:385)
==8183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - Can't connect to 127.0.0.1:1984: Connection refused ==8183==
==8183== Process terminating with default action of signal 11 (SIGSEGV)
==8183== Access not within mapped region at address 0x0
==8183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8183== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8183== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8183== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8183== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==8183== by 0x8062D5B: main (nginx.c:385)
==8183== If you believe this happened as a result of a stack
==8183== overflow in your program's main thread (unlikely but
==8183== possible), you can try to increase the size of the
==8183== main thread stack using the --main-stacksize= flag.
==8183== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - response_body_like - response is expected () ''
doesn't match '(?^s:^received [1-9]\d* bytes of response data\.$)'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:29:56 [alert] 8182\#0: worker process 8183 exited on signal 11" (req 0) 2020/10/27 04:29:56 [debug] 8182\#0: shmtx forced unlock
2020/10/27 04:29:56 [debug] 8182\#0: wake up, sigio 0
2020/10/27 04:29:56 [debug] 8182\#0: reap children
2020/10/27 04:29:56 [debug] 8182\#0: child: 0 8183 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:29:56 [debug] 8182\#0: channel 3:9
2020/10/27 04:29:56 [notice] 8182\#0: start worker process 8184
'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - Can't connect to 127.0.0.1:1984: Connection refused ==8184== Invalid read of size 4
==8184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8184== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8184== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8184== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8184== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8184== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8184== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8184== by 0x8062D5B: main (nginx.c:385)
==8184== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8184==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - Can't connect to 127.0.0.1:1984: Connection refused ==8184==
==8184== Process terminating with default action of signal 11 (SIGSEGV)
==8184== Access not within mapped region at address 0x0
==8184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8184== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8184== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8184== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8184== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8184== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8184== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8184== by 0x8062D5B: main (nginx.c:385)
==8184== If you believe this happened as a result of a stack
==8184== overflow in your program's main thread (unlikely but
==8184== possible), you can try to increase the size of the
==8184== main thread stack using the --main-stacksize= flag.
==8184== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - response_body_like - response is expected () ''
doesn't match '(?^s:^received [1-9]\d* bytes of response data\.$)'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:29:57 [alert] 8182\#0: worker process 8184 exited on signal 11" (req 1) 2020/10/27 04:29:57 [debug] 8182\#0: shmtx forced unlock
2020/10/27 04:29:57 [debug] 8182\#0: wake up, sigio 0
2020/10/27 04:29:57 [debug] 8182\#0: reap children
2020/10/27 04:29:57 [debug] 8182\#0: child: 0 8184 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:29:57 [debug] 8182\#0: channel 3:9
2020/10/27 04:29:57 [notice] 8182\#0: start worker process 8185
'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==8192== Invalid read of size 4
==8192== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8192== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8192== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8192== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8192== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8192== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8192== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8192== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8192== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8192== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8192== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8192== by 0x8062D5B: main (nginx.c:385)
==8192== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8192==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==8192==
==8192== Process terminating with default action of signal 11 (SIGSEGV)
==8192== Access not within mapped region at address 0x0
==8192== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8192== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8192== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8192== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8192== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8192== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8192== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8192== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8192== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8192== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8192== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8192== by 0x8062D5B: main (nginx.c:385)
==8192== If you believe this happened as a result of a stack
==8192== overflow in your program's main thread (unlikely but
==8192== possible), you can try to increase the size of the
==8192== main thread stack using the --main-stacksize= flag.
==8192== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==8213== Invalid read of size 4
==8213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8213== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8213== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8213== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8213== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8213== by 0x8062D5B: main (nginx.c:385)
==8213== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8213==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only ==8213==
==8213== Process terminating with default action of signal 11 (SIGSEGV)
==8213== Access not within mapped region at address 0x0
==8213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8213== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8213== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8213== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8213== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8213== by 0x8062D5B: main (nginx.c:385)
==8213== If you believe this happened as a result of a stack
==8213== overflow in your program's main thread (unlikely but
==8213== possible), you can try to increase the size of the
==8213== main thread stack using the --main-stacksize= flag.
==8213== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==8221== Invalid read of size 4
==8221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8221== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8221== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8221== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8221== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8221== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8221== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8221== by 0x8062D5B: main (nginx.c:385)
==8221== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8221==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==8221==
==8221== Process terminating with default action of signal 11 (SIGSEGV)
==8221== Access not within mapped region at address 0x0
==8221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8221== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8221== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8221== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8221== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8221== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8221== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8221== by 0x8062D5B: main (nginx.c:385)
==8221== If you believe this happened as a result of a stack
==8221== overflow in your program's main thread (unlikely but
==8221== possible), you can try to increase the size of the
==8221== main thread stack using the --main-stacksize= flag.
==8221== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==8242== Invalid read of size 4
==8242== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8242== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8242== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8242== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8242== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8242== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8242== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8242== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8242== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8242== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8242== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8242== by 0x8062D5B: main (nginx.c:385)
==8242== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8242==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only ==8242==
==8242== Process terminating with default action of signal 11 (SIGSEGV)
==8242== Access not within mapped region at address 0x0
==8242== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8242== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8242== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8242== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8242== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8242== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8242== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8242== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8242== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8242== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8242== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8242== by 0x8062D5B: main (nginx.c:385)
==8242== If you believe this happened as a result of a stack
==8242== overflow in your program's main thread (unlikely but
==8242== possible), you can try to increase the size of the
==8242== main thread stack using the --main-stacksize= flag.
==8242== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout ==8250== Invalid read of size 4
==8250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8250== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8250== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8250== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8250== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8250== by 0x8062D5B: main (nginx.c:385)
==8250== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8250==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout ==8250==
==8250== Process terminating with default action of signal 11 (SIGSEGV)
==8250== Access not within mapped region at address 0x0
==8250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8250== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8250== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8250== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8250== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8250== by 0x8062D5B: main (nginx.c:385)
==8250== If you believe this happened as a result of a stack
==8250== overflow in your program's main thread (unlikely but
==8250== possible), you can try to increase the size of the
==8250== main thread stack using the --main-stacksize= flag.
==8250== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout ==8271== Invalid read of size 4
==8271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8271== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8271== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8271== by 0x8062D5B: main (nginx.c:385)
==8271== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8271==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout ==8271==
==8271== Process terminating with default action of signal 11 (SIGSEGV)
==8271== Access not within mapped region at address 0x0
==8271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8271== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8271== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8271== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8271== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8271== by 0x8062D5B: main (nginx.c:385)
==8271== If you believe this happened as a result of a stack
==8271== overflow in your program's main thread (unlikely but
==8271== possible), you can try to increase the size of the
==8271== main thread stack using the --main-stacksize= flag.
==8271== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==8279== Invalid read of size 4
==8279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8279== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8279== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8279== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8279== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8279== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8279== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8279== by 0x8062D5B: main (nginx.c:385)
==8279== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8279==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==8279==
==8279== Process terminating with default action of signal 11 (SIGSEGV)
==8279== Access not within mapped region at address 0x0
==8279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8279== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8279== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8279== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8279== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8279== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8279== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8279== by 0x8062D5B: main (nginx.c:385)
==8279== If you believe this happened as a result of a stack
==8279== overflow in your program's main thread (unlikely but
==8279== possible), you can try to increase the size of the
==8279== main thread stack using the --main-stacksize= flag.
==8279== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==8300== Invalid read of size 4
==8300== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8300== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8300== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8300== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8300== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8300== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8300== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8300== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8300== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8300== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8300== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8300== by 0x8062D5B: main (nginx.c:385)
==8300== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8300==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value ==8300==
==8300== Process terminating with default action of signal 11 (SIGSEGV)
==8300== Access not within mapped region at address 0x0
==8300== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8300== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8300== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8300== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8300== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8300== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8300== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8300== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8300== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8300== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8300== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8300== by 0x8062D5B: main (nginx.c:385)
==8300== If you believe this happened as a result of a stack
==8300== overflow in your program's main thread (unlikely but
==8300== possible), you can try to increase the size of the
==8300== main thread stack using the --main-stacksize= flag.
==8300== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==8308== Invalid read of size 4
==8308== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8308== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8308== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8308== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8308== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8308== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8308== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8308== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8308== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8308== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8308== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8308== by 0x8062D5B: main (nginx.c:385)
==8308== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8308==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==8308==
==8308== Process terminating with default action of signal 11 (SIGSEGV)
==8308== Access not within mapped region at address 0x0
==8308== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8308== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8308== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8308== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8308== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8308== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8308== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8308== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8308== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8308== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8308== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8308== by 0x8062D5B: main (nginx.c:385)
==8308== If you believe this happened as a result of a stack
==8308== overflow in your program's main thread (unlikely but
==8308== possible), you can try to increase the size of the
==8308== main thread stack using the --main-stacksize= flag.
==8308== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==8329== Invalid read of size 4
==8329== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8329== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8329== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8329== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8329== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8329== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8329== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8329== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8329== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8329== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8329== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8329== by 0x8062D5B: main (nginx.c:385)
==8329== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8329==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout ==8329==
==8329== Process terminating with default action of signal 11 (SIGSEGV)
==8329== Access not within mapped region at address 0x0
==8329== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8329== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8329== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8329== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8329== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8329== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8329== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8329== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8329== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8329== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8329== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8329== by 0x8062D5B: main (nginx.c:385)
==8329== If you believe this happened as a result of a stack
==8329== overflow in your program's main thread (unlikely but
==8329== possible), you can try to increase the size of the
==8329== main thread stack using the --main-stacksize= flag.
==8329== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==8337== Invalid read of size 4
==8337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8337== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8337== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8337== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8337== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8337== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8337== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8337== by 0x8062D5B: main (nginx.c:385)
==8337== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8337==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==8337==
==8337== Process terminating with default action of signal 11 (SIGSEGV)
==8337== Access not within mapped region at address 0x0
==8337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8337== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8337== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8337== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8337== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8337== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8337== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8337== by 0x8062D5B: main (nginx.c:385)
==8337== If you believe this happened as a result of a stack
==8337== overflow in your program's main thread (unlikely but
==8337== possible), you can try to increase the size of the
==8337== main thread stack using the --main-stacksize= flag.
==8337== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==8358== Invalid read of size 4
==8358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8358== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8358== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8358== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8358== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8358== by 0x8062D5B: main (nginx.c:385)
==8358== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8358==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value ==8358==
==8358== Process terminating with default action of signal 11 (SIGSEGV)
==8358== Access not within mapped region at address 0x0
==8358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8358== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8358== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8358== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8358== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8358== by 0x8062D5B: main (nginx.c:385)
==8358== If you believe this happened as a result of a stack
==8358== overflow in your program's main thread (unlikely but
==8358== possible), you can try to increase the size of the
==8358== main thread stack using the --main-stacksize= flag.
==8358== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) ==8366== Invalid read of size 4
==8366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8366== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8366== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8366== by 0x8062D5B: main (nginx.c:385)
==8366== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8366==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) ==8366==
==8366== Process terminating with default action of signal 11 (SIGSEGV)
==8366== Access not within mapped region at address 0x0
==8366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8366== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8366== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8366== by 0x8062D5B: main (nginx.c:385)
==8366== If you believe this happened as a result of a stack
==8366== overflow in your program's main thread (unlikely but
==8366== possible), you can try to increase the size of the
==8366== main thread stack using the --main-stacksize= flag.
==8366== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) ==8387== Invalid read of size 4
==8387== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8387== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8387== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8387== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8387== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8387== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8387== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8387== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8387== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8387== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8387== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8387== by 0x8062D5B: main (nginx.c:385)
==8387== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8387==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) ==8387==
==8387== Process terminating with default action of signal 11 (SIGSEGV)
==8387== Access not within mapped region at address 0x0
==8387== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8387== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8387== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8387== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8387== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8387== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8387== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8387== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8387== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8387== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8387== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8387== by 0x8062D5B: main (nginx.c:385)
==8387== If you believe this happened as a result of a stack
==8387== overflow in your program's main thread (unlikely but
==8387== possible), you can try to increase the size of the
==8387== main thread stack using the --main-stacksize= flag.
==8387== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==8395== Invalid read of size 4
==8395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8395== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8395== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8395== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8395== by 0x8062D5B: main (nginx.c:385)
==8395== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8395==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==8395==
==8395== Process terminating with default action of signal 11 (SIGSEGV)
==8395== Access not within mapped region at address 0x0
==8395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8395== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8395== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8395== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8395== by 0x8062D5B: main (nginx.c:385)
==8395== If you believe this happened as a result of a stack
==8395== overflow in your program's main thread (unlikely but
==8395== possible), you can try to increase the size of the
==8395== main thread stack using the --main-stacksize= flag.
==8395== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==8416== Invalid read of size 4
==8416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8416== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8416== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8416== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8416== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8416== by 0x8062D5B: main (nginx.c:385)
==8416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout ==8416==
==8416== Process terminating with default action of signal 11 (SIGSEGV)
==8416== Access not within mapped region at address 0x0
==8416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8416== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8416== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8416== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8416== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8416== by 0x8062D5B: main (nginx.c:385)
==8416== If you believe this happened as a result of a stack
==8416== overflow in your program's main thread (unlikely but
==8416== possible), you can try to increase the size of the
==8416== main thread stack using the --main-stacksize= flag.
==8416== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing ==8424== Invalid read of size 4
==8424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8424== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8424== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8424== by 0x8062D5B: main (nginx.c:385)
==8424== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8424==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing ==8424==
==8424== Process terminating with default action of signal 11 (SIGSEGV)
==8424== Access not within mapped region at address 0x0
==8424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8424== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8424== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8424== by 0x8062D5B: main (nginx.c:385)
==8424== If you believe this happened as a result of a stack
==8424== overflow in your program's main thread (unlikely but
==8424== possible), you can try to increase the size of the
==8424== main thread stack using the --main-stacksize= flag.
==8424== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-send: nil socket busy writing
-close: nil socket busy writing
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy writing
-connect: nil socket busy writing
-receive: nil timeout
-send failed: timeout
-close: 1 nil
'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing ==8445== Invalid read of size 4
==8445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8445== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8445== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8445== by 0x8062D5B: main (nginx.c:385)
==8445== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8445==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing ==8445==
==8445== Process terminating with default action of signal 11 (SIGSEGV)
==8445== Access not within mapped region at address 0x0
==8445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8445== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8445== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8445== by 0x8062D5B: main (nginx.c:385)
==8445== If you believe this happened as a result of a stack
==8445== overflow in your program's main thread (unlikely but
==8445== possible), you can try to increase the size of the
==8445== main thread stack using the --main-stacksize= flag.
==8445== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-send: nil socket busy writing
-close: nil socket busy writing
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy writing
-connect: nil socket busy writing
-receive: nil timeout
-send failed: timeout
-close: 1 nil
'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out ==8453== Invalid read of size 4
==8453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8453== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8453== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8453== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8453== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8453== by 0x8062D5B: main (nginx.c:385)
==8453== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8453==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 17: re-connect after timed out ==8453==
==8453== Process terminating with default action of signal 11 (SIGSEGV)
==8453== Access not within mapped region at address 0x0
==8453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8453== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8453== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8453== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8453== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8453== by 0x8062D5B: main (nginx.c:385)
==8453== If you believe this happened as a result of a stack
==8453== overflow in your program's main thread (unlikely but
==8453== possible), you can try to increase the size of the
==8453== main thread stack using the --main-stacksize= flag.
==8453== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 17: re-connect after timed out - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1: failed to connect: timeout
-2: connected: 1
'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out ==8474== Invalid read of size 4
==8474== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8474== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8474== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8474== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8474== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8474== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8474== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8474== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8474== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8474== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8474== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8474== by 0x8062D5B: main (nginx.c:385)
==8474== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8474==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 17: re-connect after timed out ==8474==
==8474== Process terminating with default action of signal 11 (SIGSEGV)
==8474== Access not within mapped region at address 0x0
==8474== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8474== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8474== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8474== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8474== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8474== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8474== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8474== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8474== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8474== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8474== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8474== by 0x8062D5B: main (nginx.c:385)
==8474== If you believe this happened as a result of a stack
==8474== overflow in your program's main thread (unlikely but
==8474== possible), you can try to increase the size of the
==8474== main thread stack using the --main-stacksize= flag.
==8474== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 17: re-connect after timed out - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1: failed to connect: timeout
-2: connected: 1
'
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout ==8482== Invalid read of size 4
==8482== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8482== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8482== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8482== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8482== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8482== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8482== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8482== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8482== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8482== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8482== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8482== by 0x8062D5B: main (nginx.c:385)
==8482== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8482==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout ==8482==
==8482== Process terminating with default action of signal 11 (SIGSEGV)
==8482== Access not within mapped region at address 0x0
==8482== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8482== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8482== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8482== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8482== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8482== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8482== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8482== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8482== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8482== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8482== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8482== by 0x8062D5B: main (nginx.c:385)
==8482== If you believe this happened as a result of a stack
==8482== overflow in your program's main thread (unlikely but
==8482== possible), you can try to increase the size of the
==8482== main thread stack using the --main-stacksize= flag.
==8482== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout ==8503== Invalid read of size 4
==8503== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8503== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8503== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8503== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8503== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8503== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8503== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8503== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8503== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8503== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8503== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8503== by 0x8062D5B: main (nginx.c:385)
==8503== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8503==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout ==8503==
==8503== Process terminating with default action of signal 11 (SIGSEGV)
==8503== Access not within mapped region at address 0x0
==8503== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8503== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8503== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8503== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8503== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8503== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8503== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8503== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8503== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8503== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8503== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8503== by 0x8062D5B: main (nginx.c:385)
==8503== If you believe this happened as a result of a stack
==8503== overflow in your program's main thread (unlikely but
==8503== possible), you can try to increase the size of the
==8503== main thread stack using the --main-stacksize= flag.
==8503== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==8511== Invalid read of size 4
==8511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8511== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8511== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8511== by 0x8062D5B: main (nginx.c:385)
==8511== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8511==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==8511==
==8511== Process terminating with default action of signal 11 (SIGSEGV)
==8511== Access not within mapped region at address 0x0
==8511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8511== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8511== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8511== by 0x8062D5B: main (nginx.c:385)
==8511== If you believe this happened as a result of a stack
==8511== overflow in your program's main thread (unlikely but
==8511== possible), you can try to increase the size of the
==8511== main thread stack using the --main-stacksize= flag.
==8511== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==8532== Invalid read of size 4
==8532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8532== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8532== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8532== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8532== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8532== by 0x8062D5B: main (nginx.c:385)
==8532== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8532==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout ==8532==
==8532== Process terminating with default action of signal 11 (SIGSEGV)
==8532== Access not within mapped region at address 0x0
==8532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8532== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8532== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8532== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8532== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8532== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8532== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8532== by 0x8062D5B: main (nginx.c:385)
==8532== If you believe this happened as a result of a stack
==8532== overflow in your program's main thread (unlikely but
==8532== possible), you can try to increase the size of the
==8532== main thread stack using the --main-stacksize= flag.
==8532== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==8540== Invalid read of size 4
==8540== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8540== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8540== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8540== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8540== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8540== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8540== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8540== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8540== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8540== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8540== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8540== by 0x8062D5B: main (nginx.c:385)
==8540== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8540==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==8540==
==8540== Process terminating with default action of signal 11 (SIGSEGV)
==8540== Access not within mapped region at address 0x0
==8540== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8540== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8540== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8540== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8540== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8540== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8540== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8540== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8540== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8540== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8540== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8540== by 0x8062D5B: main (nginx.c:385)
==8540== If you believe this happened as a result of a stack
==8540== overflow in your program's main thread (unlikely but
==8540== possible), you can try to increase the size of the
==8540== main thread stack using the --main-stacksize= flag.
==8540== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==8561== Invalid read of size 4
==8561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8561== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8561== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8561== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8561== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8561== by 0x8062D5B: main (nginx.c:385)
==8561== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8561==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only ==8561==
==8561== Process terminating with default action of signal 11 (SIGSEGV)
==8561== Access not within mapped region at address 0x0
==8561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8561== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8561== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8561== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8561== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8561== by 0x8062D5B: main (nginx.c:385)
==8561== If you believe this happened as a result of a stack
==8561== overflow in your program's main thread (unlikely but
==8561== possible), you can try to increase the size of the
==8561== main thread stack using the --main-stacksize= flag.
==8561== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==8569== Invalid read of size 4
==8569== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8569== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8569== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8569== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8569== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8569== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8569== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8569== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8569== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8569== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8569== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8569== by 0x8062D5B: main (nginx.c:385)
==8569== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8569==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==8569==
==8569== Process terminating with default action of signal 11 (SIGSEGV)
==8569== Access not within mapped region at address 0x0
==8569== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8569== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8569== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8569== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8569== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8569== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8569== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8569== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8569== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8569== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8569== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8569== by 0x8062D5B: main (nginx.c:385)
==8569== If you believe this happened as a result of a stack
==8569== overflow in your program's main thread (unlikely but
==8569== possible), you can try to increase the size of the
==8569== main thread stack using the --main-stacksize= flag.
==8569== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==8592== Invalid read of size 4
==8592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8592== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8592== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8592== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8592== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8592== by 0x8062D5B: main (nginx.c:385)
==8592== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8592==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout ==8592==
==8592== Process terminating with default action of signal 11 (SIGSEGV)
==8592== Access not within mapped region at address 0x0
==8592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8592== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8592== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8592== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8592== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8592== by 0x8062D5B: main (nginx.c:385)
==8592== If you believe this happened as a result of a stack
==8592== overflow in your program's main thread (unlikely but
==8592== possible), you can try to increase the size of the
==8592== main thread stack using the --main-stacksize= flag.
==8592== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes ==8600== Invalid read of size 4
==8600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8600== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8600== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8600== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8600== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8600== by 0x8062D5B: main (nginx.c:385)
==8600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes ==8600==
==8600== Process terminating with default action of signal 11 (SIGSEGV)
==8600== Access not within mapped region at address 0x0
==8600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8600== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8600== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8600== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8600== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8600== by 0x8062D5B: main (nginx.c:385)
==8600== If you believe this happened as a result of a stack
==8600== overflow in your program's main thread (unlikely but
==8600== possible), you can try to increase the size of the
==8600== main thread stack using the --main-stacksize= flag.
==8600== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-done
'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes ==8621== Invalid read of size 4
==8621== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8621== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8621== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8621== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8621== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8621== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8621== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8621== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8621== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8621== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8621== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8621== by 0x8062D5B: main (nginx.c:385)
==8621== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8621==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes ==8621==
==8621== Process terminating with default action of signal 11 (SIGSEGV)
==8621== Access not within mapped region at address 0x0
==8621== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8621== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8621== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8621== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8621== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8621== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8621== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8621== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8621== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8621== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8621== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8621== by 0x8062D5B: main (nginx.c:385)
==8621== If you believe this happened as a result of a stack
==8621== overflow in your program's main thread (unlikely but
==8621== possible), you can try to increase the size of the
==8621== main thread stack using the --main-stacksize= flag.
==8621== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-done
'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==8629== Invalid read of size 4
==8629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8629== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8629== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8629== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8629== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8629== by 0x8062D5B: main (nginx.c:385)
==8629== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8629==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==8629==
==8629== Process terminating with default action of signal 11 (SIGSEGV)
==8629== Access not within mapped region at address 0x0
==8629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8629== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8629== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8629== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8629== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8629== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8629== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8629== by 0x8062D5B: main (nginx.c:385)
==8629== If you believe this happened as a result of a stack
==8629== overflow in your program's main thread (unlikely but
==8629== possible), you can try to increase the size of the
==8629== main thread stack using the --main-stacksize= flag.
==8629== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==8650== Invalid read of size 4
==8650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8650== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8650== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8650== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8650== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8650== by 0x8062D5B: main (nginx.c:385)
==8650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout ==8650==
==8650== Process terminating with default action of signal 11 (SIGSEGV)
==8650== Access not within mapped region at address 0x0
==8650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8650== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8650== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8650== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8650== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8650== by 0x8062D5B: main (nginx.c:385)
==8650== If you believe this happened as a result of a stack
==8650== overflow in your program's main thread (unlikely but
==8650== possible), you can try to increase the size of the
==8650== main thread stack using the --main-stacksize= flag.
==8650== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens ==8658== Invalid read of size 4
==8658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8658== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8658== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8658== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8658== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8658== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8658== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8658== by 0x8062D5B: main (nginx.c:385)
==8658== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8658==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens ==8658==
==8658== Process terminating with default action of signal 11 (SIGSEGV)
==8658== Access not within mapped region at address 0x0
==8658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8658== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8658== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8658== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8658== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8658== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8658== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8658== by 0x8062D5B: main (nginx.c:385)
==8658== If you believe this happened as a result of a stack
==8658== overflow in your program's main thread (unlikely but
==8658== possible), you can try to increase the size of the
==8658== main thread stack using the --main-stacksize= flag.
==8658== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to send: timeout
-failed to send again: closed
'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens ==8680== Invalid read of size 4
==8680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8680== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8680== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8680== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8680== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8680== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8680== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8680== by 0x8062D5B: main (nginx.c:385)
==8680== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8680==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens ==8680==
==8680== Process terminating with default action of signal 11 (SIGSEGV)
==8680== Access not within mapped region at address 0x0
==8680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8680== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8680== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8680== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8680== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8680== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8680== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8680== by 0x8062D5B: main (nginx.c:385)
==8680== If you believe this happened as a result of a stack
==8680== overflow in your program's main thread (unlikely but
==8680== possible), you can try to increase the size of the
==8680== main thread stack using the --main-stacksize= flag.
==8680== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to send: timeout
-failed to send again: closed
'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==8688== Invalid read of size 4
==8688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8688== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8688== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8688== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8688== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8688== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8688== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8688== by 0x8062D5B: main (nginx.c:385)
==8688== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8688==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==8688==
==8688== Process terminating with default action of signal 11 (SIGSEGV)
==8688== Access not within mapped region at address 0x0
==8688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8688== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8688== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8688== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8688== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8688== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8688== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8688== by 0x8062D5B: main (nginx.c:385)
==8688== If you believe this happened as a result of a stack
==8688== overflow in your program's main thread (unlikely but
==8688== possible), you can try to increase the size of the
==8688== main thread stack using the --main-stacksize= flag.
==8688== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==8709== Invalid read of size 4
==8709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8709== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8709== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8709== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8709== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8709== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8709== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8709== by 0x8062D5B: main (nginx.c:385)
==8709== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8709==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout ==8709==
==8709== Process terminating with default action of signal 11 (SIGSEGV)
==8709== Access not within mapped region at address 0x0
==8709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8709== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8709== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8709== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8709== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8709== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8709== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8709== by 0x8062D5B: main (nginx.c:385)
==8709== If you believe this happened as a result of a stack
==8709== overflow in your program's main thread (unlikely but
==8709== possible), you can try to increase the size of the
==8709== main thread stack using the --main-stacksize= flag.
==8709== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==8717== Invalid read of size 4
==8717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8717== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8717== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8717== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8717== by 0x8062D5B: main (nginx.c:385)
==8717== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8717==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==8717==
==8717== Process terminating with default action of signal 11 (SIGSEGV)
==8717== Access not within mapped region at address 0x0
==8717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8717== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8717== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8717== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8717== by 0x8062D5B: main (nginx.c:385)
==8717== If you believe this happened as a result of a stack
==8717== overflow in your program's main thread (unlikely but
==8717== possible), you can try to increase the size of the
==8717== main thread stack using the --main-stacksize= flag.
==8717== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==8738== Invalid read of size 4
==8738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8738== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8738== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8738== by 0x8062D5B: main (nginx.c:385)
==8738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout ==8738==
==8738== Process terminating with default action of signal 11 (SIGSEGV)
==8738== Access not within mapped region at address 0x0
==8738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8738== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8738== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8738== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8738== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8738== by 0x8062D5B: main (nginx.c:385)
==8738== If you believe this happened as a result of a stack
==8738== overflow in your program's main thread (unlikely but
==8738== possible), you can try to increase the size of the
==8738== main thread stack using the --main-stacksize= flag.
==8738== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==8747== Invalid read of size 4
==8747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8747== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8747== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8747== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8747== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8747== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8747== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8747== by 0x8062D5B: main (nginx.c:385)
==8747== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8747==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==8747==
==8747== Process terminating with default action of signal 11 (SIGSEGV)
==8747== Access not within mapped region at address 0x0
==8747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8747== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8747== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8747== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8747== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8747== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8747== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8747== by 0x8062D5B: main (nginx.c:385)
==8747== If you believe this happened as a result of a stack
==8747== overflow in your program's main thread (unlikely but
==8747== possible), you can try to increase the size of the
==8747== main thread stack using the --main-stacksize= flag.
==8747== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==8768== Invalid read of size 4
==8768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8768== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8768== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8768== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8768== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8768== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8768== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8768== by 0x8062D5B: main (nginx.c:385)
==8768== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8768==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout ==8768==
==8768== Process terminating with default action of signal 11 (SIGSEGV)
==8768== Access not within mapped region at address 0x0
==8768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8768== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8768== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8768== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8768== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8768== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8768== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8768== by 0x8062D5B: main (nginx.c:385)
==8768== If you believe this happened as a result of a stack
==8768== overflow in your program's main thread (unlikely but
==8768== possible), you can try to increase the size of the
==8768== main thread stack using the --main-stacksize= flag.
==8768== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) ==8776== Invalid read of size 4
==8776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8776== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8776== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8776== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8776== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8776== by 0x8062D5B: main (nginx.c:385)
==8776== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8776==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) ==8776==
==8776== Process terminating with default action of signal 11 (SIGSEGV)
==8776== Access not within mapped region at address 0x0
==8776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8776== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8776== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8776== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8776== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8776== by 0x8062D5B: main (nginx.c:385)
==8776== If you believe this happened as a result of a stack
==8776== overflow in your program's main thread (unlikely but
==8776== possible), you can try to increase the size of the
==8776== main thread stack using the --main-stacksize= flag.
==8776== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) ==8798== Invalid read of size 4
==8798== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8798== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8798== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8798== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8798== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8798== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8798== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8798== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8798== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8798== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8798== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8798== by 0x8062D5B: main (nginx.c:385)
==8798== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8798==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) ==8798==
==8798== Process terminating with default action of signal 11 (SIGSEGV)
==8798== Access not within mapped region at address 0x0
==8798== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8798== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8798== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8798== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8798== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8798== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==8798== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==8798== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8798== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8798== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8798== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8798== by 0x8062D5B: main (nginx.c:385)
==8798== If you believe this happened as a result of a stack
==8798== overflow in your program's main thread (unlikely but
==8798== possible), you can try to increase the size of the
==8798== main thread stack using the --main-stacksize= flag.
==8798== The main thread stack size used in this run was 8388608.

065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - Can't connect to 127.0.0.1:1984: Connection refused ==8807== Invalid read of size 4
==8807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8807== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8807== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8807== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8807== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==8807== by 0x8062D5B: main (nginx.c:385)
==8807== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8807==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - Can't connect to 127.0.0.1:1984: Connection refused ==8807==
==8807== Process terminating with default action of signal 11 (SIGSEGV)
==8807== Access not within mapped region at address 0x0
==8807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8807== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8807== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8807== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8807== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==8807== by 0x8062D5B: main (nginx.c:385)
==8807== If you believe this happened as a result of a stack
==8807== overflow in your program's main thread (unlikely but
==8807== possible), you can try to increase the size of the
==8807== main thread stack using the --main-stacksize= flag.
==8807== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabdabc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - Can't connect to 127.0.0.1:1984: Connection refused ==8808== Invalid read of size 4
==8808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8808== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8808== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8808== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8808== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8808== by 0x8062D5B: main (nginx.c:385)
==8808== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8808==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - Can't connect to 127.0.0.1:1984: Connection refused ==8808==
==8808== Process terminating with default action of signal 11 (SIGSEGV)
==8808== Access not within mapped region at address 0x0
==8808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8808== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8808== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8808== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8808== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8808== by 0x8062D5B: main (nginx.c:385)
==8808== If you believe this happened as a result of a stack
==8808== overflow in your program's main thread (unlikely but
==8808== possible), you can try to increase the size of the
==8808== main thread stack using the --main-stacksize= flag.
==8808== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabdabc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) ==8820== Invalid read of size 4
==8820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8820== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8820== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8820== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8820== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8820== by 0x8062D5B: main (nginx.c:385)
==8820== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8820==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) ==8820==
==8820== Process terminating with default action of signal 11 (SIGSEGV)
==8820== Access not within mapped region at address 0x0
==8820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8820== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8820== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8820== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8820== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8820== by 0x8062D5B: main (nginx.c:385)
==8820== If you believe this happened as a result of a stack
==8820== overflow in your program's main thread (unlikely but
==8820== possible), you can try to increase the size of the
==8820== main thread stack using the --main-stacksize= flag.
==8820== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abaabc
-failed to read a line: closed [ef
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) ==8841== Invalid read of size 4
==8841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8841== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8841== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8841== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8841== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8841== by 0x8062D5B: main (nginx.c:385)
==8841== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8841==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) ==8841==
==8841== Process terminating with default action of signal 11 (SIGSEGV)
==8841== Access not within mapped region at address 0x0
==8841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8841== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8841== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8841== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8841== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8841== by 0x8062D5B: main (nginx.c:385)
==8841== If you believe this happened as a result of a stack
==8841== overflow in your program's main thread (unlikely but
==8841== possible), you can try to increase the size of the
==8841== main thread stack using the --main-stacksize= flag.
==8841== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abaabc
-failed to read a line: closed [ef
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 1: memcached read lines ==8853== Invalid read of size 4
==8853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8853== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8853== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8853== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8853== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8853== by 0x8062D5B: main (nginx.c:385)
==8853== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8853==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 1: memcached read lines ==8853==
==8853== Process terminating with default action of signal 11 (SIGSEGV)
==8853== Access not within mapped region at address 0x0
==8853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8853== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8853== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8853== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8853== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8853== by 0x8062D5B: main (nginx.c:385)
==8853== If you believe this happened as a result of a stack
==8853== overflow in your program's main thread (unlikely but
==8853== possible), you can try to increase the size of the
==8853== main thread stack using the --main-stacksize= flag.
==8853== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 1: memcached read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 1: memcached read lines - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
066-socket-receiveuntil.t TEST 1: memcached read lines ==8874== Invalid read of size 4
==8874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8874== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8874== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8874== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8874== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8874== by 0x8062D5B: main (nginx.c:385)
==8874== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8874==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 1: memcached read lines ==8874==
==8874== Process terminating with default action of signal 11 (SIGSEGV)
==8874== Access not within mapped region at address 0x0
==8874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8874== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8874== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8874== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8874== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8874== by 0x8062D5B: main (nginx.c:385)
==8874== If you believe this happened as a result of a stack
==8874== overflow in your program's main thread (unlikely but
==8874== possible), you can try to increase the size of the
==8874== main thread stack using the --main-stacksize= flag.
==8874== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 1: memcached read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 1: memcached read lines - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls ==8886== Invalid read of size 4
==8886== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8886== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8886== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8886== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8886== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8886== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8886== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8886== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8886== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8886== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8886== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8886== by 0x8062D5B: main (nginx.c:385)
==8886== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8886==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls ==8886==
==8886== Process terminating with default action of signal 11 (SIGSEGV)
==8886== Access not within mapped region at address 0x0
==8886== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8886== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8886== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8886== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8886== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8886== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8886== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8886== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8886== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8886== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8886== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8886== by 0x8062D5B: main (nginx.c:385)
==8886== If you believe this happened as a result of a stack
==8886== overflow in your program's main thread (unlikely but
==8886== possible), you can try to increase the size of the
==8886== main thread stack using the --main-stacksize= flag.
==8886== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read:
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls ==8907== Invalid read of size 4
==8907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8907== by 0x8062D5B: main (nginx.c:385)
==8907== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8907==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls ==8907==
==8907== Process terminating with default action of signal 11 (SIGSEGV)
==8907== Access not within mapped region at address 0x0
==8907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8907== by 0x8062D5B: main (nginx.c:385)
==8907== If you believe this happened as a result of a stack
==8907== overflow in your program's main thread (unlikely but
==8907== possible), you can try to increase the size of the
==8907== main thread stack using the --main-stacksize= flag.
==8907== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read:
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) ==8919== Invalid read of size 4
==8919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8919== by 0x8062D5B: main (nginx.c:385)
==8919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) ==8919==
==8919== Process terminating with default action of signal 11 (SIGSEGV)
==8919== Access not within mapped region at address 0x0
==8919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8919== by 0x8062D5B: main (nginx.c:385)
==8919== If you believe this happened as a result of a stack
==8919== overflow in your program's main thread (unlikely but
==8919== possible), you can try to increase the size of the
==8919== main thread stack using the --main-stacksize= flag.
==8919== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) ==8940== Invalid read of size 4
==8940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8940== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8940== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8940== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8940== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8940== by 0x8062D5B: main (nginx.c:385)
==8940== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8940==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) ==8940==
==8940== Process terminating with default action of signal 11 (SIGSEGV)
==8940== Access not within mapped region at address 0x0
==8940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8940== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8940== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8940== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8940== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8940== by 0x8062D5B: main (nginx.c:385)
==8940== If you believe this happened as a result of a stack
==8940== overflow in your program's main thread (unlikely but
==8940== possible), you can try to increase the size of the
==8940== main thread stack using the --main-stacksize= flag.
==8940== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) ==8952== Invalid read of size 4
==8952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8952== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8952== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8952== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8952== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8952== by 0x8062D5B: main (nginx.c:385)
==8952== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8952==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) ==8952==
==8952== Process terminating with default action of signal 11 (SIGSEGV)
==8952== Access not within mapped region at address 0x0
==8952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8952== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8952== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8952== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8952== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8952== by 0x8062D5B: main (nginx.c:385)
==8952== If you believe this happened as a result of a stack
==8952== overflow in your program's main thread (unlikely but
==8952== possible), you can try to increase the size of the
==8952== main thread stack using the --main-stacksize= flag.
==8952== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) ==8973== Invalid read of size 4
==8973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8973== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8973== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8973== by 0x8062D5B: main (nginx.c:385)
==8973== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) ==8973==
==8973== Process terminating with default action of signal 11 (SIGSEGV)
==8973== Access not within mapped region at address 0x0
==8973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8973== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==8973== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==8973== by 0x8062D5B: main (nginx.c:385)
==8973== If you believe this happened as a result of a stack
==8973== overflow in your program's main thread (unlikely but
==8973== possible), you can try to increase the size of the
==8973== main thread stack using the --main-stacksize= flag.
==8973== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) ==8985== Invalid read of size 4
==8985== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8985== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8985== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8985== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8985== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8985== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8985== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8985== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8985== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8985== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8985== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8985== by 0x8062D5B: main (nginx.c:385)
==8985== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8985==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) ==8985==
==8985== Process terminating with default action of signal 11 (SIGSEGV)
==8985== Access not within mapped region at address 0x0
==8985== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==8985== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==8985== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==8985== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==8985== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==8985== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==8985== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==8985== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==8985== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==8985== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==8985== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==8985== by 0x8062D5B: main (nginx.c:385)
==8985== If you believe this happened as a result of a stack
==8985== overflow in your program's main thread (unlikely but
==8985== possible), you can try to increase the size of the
==8985== main thread stack using the --main-stacksize= flag.
==8985== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) ==9006== Invalid read of size 4
==9006== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9006== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9006== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9006== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9006== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9006== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9006== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9006== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9006== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9006== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9006== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9006== by 0x8062D5B: main (nginx.c:385)
==9006== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9006==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) ==9006==
==9006== Process terminating with default action of signal 11 (SIGSEGV)
==9006== Access not within mapped region at address 0x0
==9006== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9006== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9006== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9006== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9006== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9006== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9006== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9006== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9006== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9006== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9006== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9006== by 0x8062D5B: main (nginx.c:385)
==9006== If you believe this happened as a result of a stack
==9006== overflow in your program's main thread (unlikely but
==9006== possible), you can try to increase the size of the
==9006== main thread stack using the --main-stacksize= flag.
==9006== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 19: long patterns ==9018== Invalid read of size 4
==9018== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9018== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9018== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9018== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9018== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9018== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9018== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9018== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9018== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9018== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9018== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9018== by 0x8062D5B: main (nginx.c:385)
==9018== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9018==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 19: long patterns ==9018==
==9018== Process terminating with default action of signal 11 (SIGSEGV)
==9018== Access not within mapped region at address 0x0
==9018== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9018== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9018== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9018== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9018== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9018== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9018== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9018== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9018== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9018== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9018== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9018== by 0x8062D5B: main (nginx.c:385)
==9018== If you believe this happened as a result of a stack
==9018== overflow in your program's main thread (unlikely but
==9018== possible), you can try to increase the size of the
==9018== main thread stack using the --main-stacksize= flag.
==9018== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 19: long patterns - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 19: long patterns - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
066-socket-receiveuntil.t TEST 19: long patterns ==9039== Invalid read of size 4
==9039== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9039== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9039== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9039== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9039== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9039== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9039== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9039== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9039== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9039== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9039== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9039== by 0x8062D5B: main (nginx.c:385)
==9039== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9039==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 19: long patterns ==9039==
==9039== Process terminating with default action of signal 11 (SIGSEGV)
==9039== Access not within mapped region at address 0x0
==9039== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9039== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9039== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9039== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9039== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9039== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9039== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9039== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9039== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9039== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9039== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9039== by 0x8062D5B: main (nginx.c:385)
==9039== If you believe this happened as a result of a stack
==9039== overflow in your program's main thread (unlikely but
==9039== possible), you can try to increase the size of the
==9039== main thread stack using the --main-stacksize= flag.
==9039== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 19: long patterns - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 19: long patterns - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer ==9051== Invalid read of size 4
==9051== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9051== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9051== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9051== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9051== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9051== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9051== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9051== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9051== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9051== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9051== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9051== by 0x8062D5B: main (nginx.c:385)
==9051== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9051==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer ==9051==
==9051== Process terminating with default action of signal 11 (SIGSEGV)
==9051== Access not within mapped region at address 0x0
==9051== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9051== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9051== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9051== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9051== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9051== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9051== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9051== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9051== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9051== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9051== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9051== by 0x8062D5B: main (nginx.c:385)
==9051== If you believe this happened as a result of a stack
==9051== overflow in your program's main thread (unlikely but
==9051== possible), you can try to increase the size of the
==9051== main thread stack using the --main-stacksize= flag.
==9051== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer ==9072== Invalid read of size 4
==9072== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9072== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9072== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9072== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9072== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9072== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9072== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9072== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9072== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9072== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9072== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9072== by 0x8062D5B: main (nginx.c:385)
==9072== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9072==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer ==9072==
==9072== Process terminating with default action of signal 11 (SIGSEGV)
==9072== Access not within mapped region at address 0x0
==9072== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9072== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9072== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9072== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9072== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9072== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9072== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9072== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9072== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9072== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9072== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9072== by 0x8062D5B: main (nginx.c:385)
==9072== If you believe this happened as a result of a stack
==9072== overflow in your program's main thread (unlikely but
==9072== possible), you can try to increase the size of the
==9072== main thread stack using the --main-stacksize= flag.
==9072== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) ==9084== Invalid read of size 4
==9084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9084== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9084== by 0x8062D5B: main (nginx.c:385)
==9084== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9084==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) ==9084==
==9084== Process terminating with default action of signal 11 (SIGSEGV)
==9084== Access not within mapped region at address 0x0
==9084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9084== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9084== by 0x8062D5B: main (nginx.c:385)
==9084== If you believe this happened as a result of a stack
==9084== overflow in your program's main thread (unlikely but
==9084== possible), you can try to increase the size of the
==9084== main thread stack using the --main-stacksize= flag.
==9084== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: --
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) ==9105== Invalid read of size 4
==9105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9105== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9105== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9105== by 0x8062D5B: main (nginx.c:385)
==9105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) ==9105==
==9105== Process terminating with default action of signal 11 (SIGSEGV)
==9105== Access not within mapped region at address 0x0
==9105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9105== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9105== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9105== by 0x8062D5B: main (nginx.c:385)
==9105== If you believe this happened as a result of a stack
==9105== overflow in your program's main thread (unlikely but
==9105== possible), you can try to increase the size of the
==9105== main thread stack using the --main-stacksize= flag.
==9105== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: --
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) ==9117== Invalid read of size 4
==9117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9117== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9117== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9117== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9117== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9117== by 0x8062D5B: main (nginx.c:385)
==9117== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9117==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) ==9117==
==9117== Process terminating with default action of signal 11 (SIGSEGV)
==9117== Access not within mapped region at address 0x0
==9117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9117== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9117== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9117== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9117== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9117== by 0x8062D5B: main (nginx.c:385)
==9117== If you believe this happened as a result of a stack
==9117== overflow in your program's main thread (unlikely but
==9117== possible), you can try to increase the size of the
==9117== main thread stack using the --main-stacksize= flag.
==9117== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) ==9138== Invalid read of size 4
==9138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9138== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9138== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9138== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9138== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9138== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9138== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9138== by 0x8062D5B: main (nginx.c:385)
==9138== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9138==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) ==9138==
==9138== Process terminating with default action of signal 11 (SIGSEGV)
==9138== Access not within mapped region at address 0x0
==9138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9138== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9138== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9138== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9138== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9138== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9138== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9138== by 0x8062D5B: main (nginx.c:385)
==9138== If you believe this happened as a result of a stack
==9138== overflow in your program's main thread (unlikely but
==9138== possible), you can try to increase the size of the
==9138== main thread stack using the --main-stacksize= flag.
==9138== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) ==9150== Invalid read of size 4
==9150== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9150== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9150== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9150== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9150== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9150== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9150== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9150== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9150== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9150== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9150== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9150== by 0x8062D5B: main (nginx.c:385)
==9150== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9150==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) ==9150==
==9150== Process terminating with default action of signal 11 (SIGSEGV)
==9150== Access not within mapped region at address 0x0
==9150== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9150== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9150== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9150== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9150== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9150== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9150== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9150== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9150== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9150== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9150== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9150== by 0x8062D5B: main (nginx.c:385)
==9150== If you believe this happened as a result of a stack
==9150== overflow in your program's main thread (unlikely but
==9150== possible), you can try to increase the size of the
==9150== main thread stack using the --main-stacksize= flag.
==9150== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ab
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) ==9171== Invalid read of size 4
==9171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9171== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9171== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9171== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9171== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9171== by 0x8062D5B: main (nginx.c:385)
==9171== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9171==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) ==9171==
==9171== Process terminating with default action of signal 11 (SIGSEGV)
==9171== Access not within mapped region at address 0x0
==9171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9171== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9171== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9171== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9171== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9171== by 0x8062D5B: main (nginx.c:385)
==9171== If you believe this happened as a result of a stack
==9171== overflow in your program's main thread (unlikely but
==9171== possible), you can try to increase the size of the
==9171== main thread stack using the --main-stacksize= flag.
==9171== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ab
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte ==9183== Invalid read of size 4
==9183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9183== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9183== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9183== by 0x8062D5B: main (nginx.c:385)
==9183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte ==9183==
==9183== Process terminating with default action of signal 11 (SIGSEGV)
==9183== Access not within mapped region at address 0x0
==9183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9183== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9183== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9183== by 0x8062D5B: main (nginx.c:385)
==9183== If you believe this happened as a result of a stack
==9183== overflow in your program's main thread (unlikely but
==9183== possible), you can try to increase the size of the
==9183== main thread stack using the --main-stacksize= flag.
==9183== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte ==9204== Invalid read of size 4
==9204== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9204== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9204== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9204== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9204== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9204== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9204== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9204== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9204== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9204== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9204== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9204== by 0x8062D5B: main (nginx.c:385)
==9204== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9204==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte ==9204==
==9204== Process terminating with default action of signal 11 (SIGSEGV)
==9204== Access not within mapped region at address 0x0
==9204== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9204== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9204== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9204== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9204== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9204== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9204== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9204== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9204== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9204== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9204== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9204== by 0x8062D5B: main (nginx.c:385)
==9204== If you believe this happened as a result of a stack
==9204== overflow in your program's main thread (unlikely but
==9204== possible), you can try to increase the size of the
==9204== main thread stack using the --main-stacksize= flag.
==9204== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes ==9216== Invalid read of size 4
==9216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9216== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9216== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9216== by 0x8062D5B: main (nginx.c:385)
==9216== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9216==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes ==9216==
==9216== Process terminating with default action of signal 11 (SIGSEGV)
==9216== Access not within mapped region at address 0x0
==9216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9216== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9216== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9216== by 0x8062D5B: main (nginx.c:385)
==9216== If you believe this happened as a result of a stack
==9216== overflow in your program's main thread (unlikely but
==9216== possible), you can try to increase the size of the
==9216== main thread stack using the --main-stacksize= flag.
==9216== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes ==9237== Invalid read of size 4
==9237== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9237== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9237== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9237== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9237== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9237== by 0x8062D5B: main (nginx.c:385)
==9237== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9237==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes ==9237==
==9237== Process terminating with default action of signal 11 (SIGSEGV)
==9237== Access not within mapped region at address 0x0
==9237== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9237== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9237== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9237== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9237== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9237== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9237== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9237== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9237== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9237== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9237== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9237== by 0x8062D5B: main (nginx.c:385)
==9237== If you believe this happened as a result of a stack
==9237== overflow in your program's main thread (unlikely but
==9237== possible), you can try to increase the size of the
==9237== main thread stack using the --main-stacksize= flag.
==9237== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) ==9249== Invalid read of size 4
==9249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9249== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9249== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9249== by 0x8062D5B: main (nginx.c:385)
==9249== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9249==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) ==9249==
==9249== Process terminating with default action of signal 11 (SIGSEGV)
==9249== Access not within mapped region at address 0x0
==9249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9249== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9249== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9249== by 0x8062D5B: main (nginx.c:385)
==9249== If you believe this happened as a result of a stack
==9249== overflow in your program's main thread (unlikely but
==9249== possible), you can try to increase the size of the
==9249== main thread stack using the --main-stacksize= flag.
==9249== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) ==9270== Invalid read of size 4
==9270== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9270== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9270== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9270== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9270== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9270== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9270== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9270== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9270== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9270== by 0x8062D5B: main (nginx.c:385)
==9270== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9270==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) ==9270==
==9270== Process terminating with default action of signal 11 (SIGSEGV)
==9270== Access not within mapped region at address 0x0
==9270== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9270== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9270== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9270== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9270== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9270== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9270== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9270== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9270== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9270== by 0x8062D5B: main (nginx.c:385)
==9270== If you believe this happened as a result of a stack
==9270== overflow in your program's main thread (unlikely but
==9270== possible), you can try to increase the size of the
==9270== main thread stack using the --main-stacksize= flag.
==9270== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) ==9282== Invalid read of size 4
==9282== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9282== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9282== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9282== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9282== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9282== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9282== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9282== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9282== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9282== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9282== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9282== by 0x8062D5B: main (nginx.c:385)
==9282== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9282==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) ==9282==
==9282== Process terminating with default action of signal 11 (SIGSEGV)
==9282== Access not within mapped region at address 0x0
==9282== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9282== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9282== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9282== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9282== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9282== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9282== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9282== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9282== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9282== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9282== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9282== by 0x8062D5B: main (nginx.c:385)
==9282== If you believe this happened as a result of a stack
==9282== overflow in your program's main thread (unlikely but
==9282== possible), you can try to increase the size of the
==9282== main thread stack using the --main-stacksize= flag.
==9282== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) ==9303== Invalid read of size 4
==9303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9303== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9303== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9303== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9303== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9303== by 0x8062D5B: main (nginx.c:385)
==9303== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9303==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) ==9303==
==9303== Process terminating with default action of signal 11 (SIGSEGV)
==9303== Access not within mapped region at address 0x0
==9303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9303== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9303== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9303== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9303== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9303== by 0x8062D5B: main (nginx.c:385)
==9303== If you believe this happened as a result of a stack
==9303== overflow in your program's main thread (unlikely but
==9303== possible), you can try to increase the size of the
==9303== main thread stack using the --main-stacksize= flag.
==9303== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run ==9315== Invalid read of size 4
==9315== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9315== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9315== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9315== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9315== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9315== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9315== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9315== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9315== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9315== by 0x8062D5B: main (nginx.c:385)
==9315== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9315==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run ==9315==
==9315== Process terminating with default action of signal 11 (SIGSEGV)
==9315== Access not within mapped region at address 0x0
==9315== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9315== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9315== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9315== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9315== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9315== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9315== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9315== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9315== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9315== by 0x8062D5B: main (nginx.c:385)
==9315== If you believe this happened as a result of a stack
==9315== overflow in your program's main thread (unlikely but
==9315== possible), you can try to increase the size of the
==9315== main thread stack using the --main-stacksize= flag.
==9315== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run ==9336== Invalid read of size 4
==9336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9336== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9336== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9336== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9336== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9336== by 0x8062D5B: main (nginx.c:385)
==9336== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9336==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run ==9336==
==9336== Process terminating with default action of signal 11 (SIGSEGV)
==9336== Access not within mapped region at address 0x0
==9336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9336== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9336== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9336== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9336== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9336== by 0x8062D5B: main (nginx.c:385)
==9336== If you believe this happened as a result of a stack
==9336== overflow in your program's main thread (unlikely but
==9336== possible), you can try to increase the size of the
==9336== main thread stack using the --main-stacksize= flag.
==9336== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer ==9348== Invalid read of size 4
==9348== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9348== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9348== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9348== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9348== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9348== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9348== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9348== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9348== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9348== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9348== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9348== by 0x8062D5B: main (nginx.c:385)
==9348== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9348==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer ==9348==
==9348== Process terminating with default action of signal 11 (SIGSEGV)
==9348== Access not within mapped region at address 0x0
==9348== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9348== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9348== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9348== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9348== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9348== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9348== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9348== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9348== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9348== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9348== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9348== by 0x8062D5B: main (nginx.c:385)
==9348== If you believe this happened as a result of a stack
==9348== overflow in your program's main thread (unlikely but
==9348== possible), you can try to increase the size of the
==9348== main thread stack using the --main-stacksize= flag.
==9348== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer ==9369== Invalid read of size 4
==9369== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9369== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9369== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9369== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9369== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9369== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9369== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9369== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9369== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9369== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9369== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9369== by 0x8062D5B: main (nginx.c:385)
==9369== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9369==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer ==9369==
==9369== Process terminating with default action of signal 11 (SIGSEGV)
==9369== Access not within mapped region at address 0x0
==9369== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9369== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9369== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9369== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9369== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9369== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9369== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9369== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9369== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9369== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9369== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9369== by 0x8062D5B: main (nginx.c:385)
==9369== If you believe this happened as a result of a stack
==9369== overflow in your program's main thread (unlikely but
==9369== possible), you can try to increase the size of the
==9369== main thread stack using the --main-stacksize= flag.
==9369== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 2: http read lines ==9381== Invalid read of size 4
==9381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9381== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9381== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9381== by 0x8062D5B: main (nginx.c:385)
==9381== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9381==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 2: http read lines ==9381==
==9381== Process terminating with default action of signal 11 (SIGSEGV)
==9381== Access not within mapped region at address 0x0
==9381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9381== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9381== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9381== by 0x8062D5B: main (nginx.c:385)
==9381== If you believe this happened as a result of a stack
==9381== overflow in your program's main thread (unlikely but
==9381== possible), you can try to increase the size of the
==9381== main thread stack using the --main-stacksize= flag.
==9381== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 2: http read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 2: http read lines - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-read: Server: nginx
-read: Content-Type: text/plain
-read: Content-Length: 4
-read: Connection: close
-read:
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 2: http read lines ==9402== Invalid read of size 4
==9402== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9402== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9402== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9402== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9402== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9402== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9402== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9402== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9402== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9402== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9402== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9402== by 0x8062D5B: main (nginx.c:385)
==9402== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9402==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 2: http read lines ==9402==
==9402== Process terminating with default action of signal 11 (SIGSEGV)
==9402== Access not within mapped region at address 0x0
==9402== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9402== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9402== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9402== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9402== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9402== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9402== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9402== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9402== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9402== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9402== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9402== by 0x8062D5B: main (nginx.c:385)
==9402== If you believe this happened as a result of a stack
==9402== overflow in your program's main thread (unlikely but
==9402== possible), you can try to increase the size of the
==9402== main thread stack using the --main-stacksize= flag.
==9402== The main thread stack size used in this run was 8388608.

066-socket-receiveuntil.t TEST 2: http read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 2: http read lines - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-read: Server: nginx
-read: Content-Type: text/plain
-read: Content-Length: 4
-read: Connection: close
-read:
-failed to read a line: closed [foo
-]
-close: 1 nil
'
067-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==9411== Invalid read of size 4
==9411== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9411== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9411== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9411== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9411== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9411== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9411== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9411== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9411== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==9411== by 0x8062D5B: main (nginx.c:385)
==9411== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9411==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==9411==
==9411== Process terminating with default action of signal 11 (SIGSEGV)
==9411== Access not within mapped region at address 0x0
==9411== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9411== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9411== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9411== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9411== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9411== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9411== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9411== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9411== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==9411== by 0x8062D5B: main (nginx.c:385)
==9411== If you believe this happened as a result of a stack
==9411== overflow in your program's main thread (unlikely but
==9411== possible), you can try to increase the size of the
==9411== main thread stack using the --main-stacksize= flag.
==9411== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
067-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d! my
'
067-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==9412== Invalid read of size 4
==9412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9412== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9412== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9412== by 0x8062D5B: main (nginx.c:385)
==9412== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9412==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==9412==
==9412== Process terminating with default action of signal 11 (SIGSEGV)
==9412== Access not within mapped region at address 0x0
==9412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9412== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9412== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9412== by 0x8062D5B: main (nginx.c:385)
==9412== If you believe this happened as a result of a stack
==9412== overflow in your program's main thread (unlikely but
==9412== possible), you can try to increase the size of the
==9412== main thread stack using the --main-stacksize= flag.
==9412== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
067-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d! my
'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) ==9424== Invalid read of size 4
==9424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9424== by 0x8062D5B: main (nginx.c:385)
==9424== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9424==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) ==9424==
==9424== Process terminating with default action of signal 11 (SIGSEGV)
==9424== Access not within mapped region at address 0x0
==9424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9424== by 0x8062D5B: main (nginx.c:385)
==9424== If you believe this happened as a result of a stack
==9424== overflow in your program's main thread (unlikely but
==9424== possible), you can try to increase the size of the
==9424== main thread stack using the --main-stacksize= flag.
==9424== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) ==9445== Invalid read of size 4
==9445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9445== by 0x8062D5B: main (nginx.c:385)
==9445== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9445==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) ==9445==
==9445== Process terminating with default action of signal 11 (SIGSEGV)
==9445== Access not within mapped region at address 0x0
==9445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9445== by 0x8062D5B: main (nginx.c:385)
==9445== If you believe this happened as a result of a stack
==9445== overflow in your program's main thread (unlikely but
==9445== possible), you can try to increase the size of the
==9445== main thread stack using the --main-stacksize= flag.
==9445== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) ==9457== Invalid read of size 4
==9457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9457== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9457== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9457== by 0x8062D5B: main (nginx.c:385)
==9457== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9457==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) ==9457==
==9457== Process terminating with default action of signal 11 (SIGSEGV)
==9457== Access not within mapped region at address 0x0
==9457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9457== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9457== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9457== by 0x8062D5B: main (nginx.c:385)
==9457== If you believe this happened as a result of a stack
==9457== overflow in your program's main thread (unlikely but
==9457== possible), you can try to increase the size of the
==9457== main thread stack using the --main-stacksize= flag.
==9457== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) ==9478== Invalid read of size 4
==9478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9478== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9478== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9478== by 0x8062D5B: main (nginx.c:385)
==9478== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9478==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) ==9478==
==9478== Process terminating with default action of signal 11 (SIGSEGV)
==9478== Access not within mapped region at address 0x0
==9478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9478== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9478== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9478== by 0x8062D5B: main (nginx.c:385)
==9478== If you believe this happened as a result of a stack
==9478== overflow in your program's main thread (unlikely but
==9478== possible), you can try to increase the size of the
==9478== main thread stack using the --main-stacksize= flag.
==9478== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary ==9490== Invalid read of size 4
==9490== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9490== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9490== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9490== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9490== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9490== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9490== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9490== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9490== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9490== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9490== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9490== by 0x8062D5B: main (nginx.c:385)
==9490== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9490==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 4: attempt to use the req socket across request boundary ==9490==
==9490== Process terminating with default action of signal 11 (SIGSEGV)
==9490== Access not within mapped region at address 0x0
==9490== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9490== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9490== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9490== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9490== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9490== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9490== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9490== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9490== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9490== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9490== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9490== by 0x8062D5B: main (nginx.c:385)
==9490== If you believe this happened as a result of a stack
==9490== overflow in your program's main thread (unlikely but
==9490== possible), you can try to increase the size of the
==9490== main thread stack using the --main-stacksize= flag.
==9490== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 4: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:37:11 [alert] 9410\#0: worker process 9490 exited on signal 11" (req 0) 2020/10/27 04:37:11 [debug] 9410\#0: shmtx forced unlock
2020/10/27 04:37:11 [debug] 9410\#0: wake up, sigio 0
2020/10/27 04:37:11 [debug] 9410\#0: reap children
2020/10/27 04:37:11 [debug] 9410\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:37:11 [debug] 9410\#0: child: 1 9490 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:37:11 [debug] 9410\#0: channel 3:4
2020/10/27 04:37:11 [notice] 9410\#0: start worker process 9511
'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary ==9511== Invalid read of size 4
==9511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9511== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9511== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9511== by 0x8062D5B: main (nginx.c:385)
==9511== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9511==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 4: attempt to use the req socket across request boundary ==9511==
==9511== Process terminating with default action of signal 11 (SIGSEGV)
==9511== Access not within mapped region at address 0x0
==9511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9511== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9511== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9511== by 0x8062D5B: main (nginx.c:385)
==9511== If you believe this happened as a result of a stack
==9511== overflow in your program's main thread (unlikely but
==9511== possible), you can try to increase the size of the
==9511== main thread stack using the --main-stacksize= flag.
==9511== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 4: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:37:12 [alert] 9410\#0: worker process 9511 exited on signal 11" (req 1) 2020/10/27 04:37:12 [debug] 9410\#0: shmtx forced unlock
2020/10/27 04:37:12 [debug] 9410\#0: wake up, sigio 0
2020/10/27 04:37:12 [debug] 9410\#0: reap children
2020/10/27 04:37:12 [debug] 9410\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:37:12 [debug] 9410\#0: child: 1 9511 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:37:12 [debug] 9410\#0: channel 3:4
2020/10/27 04:37:12 [notice] 9410\#0: start worker process 9512
'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body ==9524== Invalid read of size 4
==9524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9524== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9524== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9524== by 0x8062D5B: main (nginx.c:385)
==9524== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9524==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body ==9524==
==9524== Process terminating with default action of signal 11 (SIGSEGV)
==9524== Access not within mapped region at address 0x0
==9524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9524== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9524== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9524== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9524== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9524== by 0x8062D5B: main (nginx.c:385)
==9524== If you believe this happened as a result of a stack
==9524== overflow in your program's main thread (unlikely but
==9524== possible), you can try to increase the size of the
==9524== main thread stack using the --main-stacksize= flag.
==9524== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body ==9545== Invalid read of size 4
==9545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9545== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9545== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9545== by 0x8062D5B: main (nginx.c:385)
==9545== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9545==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body ==9545==
==9545== Process terminating with default action of signal 11 (SIGSEGV)
==9545== Access not within mapped region at address 0x0
==9545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9545== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9545== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9545== by 0x8062D5B: main (nginx.c:385)
==9545== If you believe this happened as a result of a stack
==9545== overflow in your program's main thread (unlikely but
==9545== possible), you can try to increase the size of the
==9545== main thread stack using the --main-stacksize= flag.
==9545== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
067-req-socket.t TEST 6: pipelined POST requests ==9558== Invalid read of size 4
==9558== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9558== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9558== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9558== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9558== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9558== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9558== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9558== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9558== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9558== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9558== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9558== by 0x8062D5B: main (nginx.c:385)
==9558== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9558==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 6: pipelined POST requests ==9558==
==9558== Process terminating with default action of signal 11 (SIGSEGV)
==9558== Access not within mapped region at address 0x0
==9558== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9558== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9558== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9558== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9558== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9558== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9558== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9558== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9558== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9558== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9558== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9558== by 0x8062D5B: main (nginx.c:385)
==9558== If you believe this happened as a result of a stack
==9558== overflow in your program's main thread (unlikely but
==9558== possible), you can try to increase the size of the
==9558== main thread stack using the --main-stacksize= flag.
==9558== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 6: pipelined POST requests - status code ok got: ''
expected: '200'
067-req-socket.t TEST 6: pipelined POST requests - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-got the request socket
-received: hell
-received: o, w
-received: orld
-received: hiya
-received: , wo
-done
'
067-req-socket.t TEST 6: pipelined POST requests ==9579== Invalid read of size 4
==9579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9579== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9579== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9579== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9579== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9579== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9579== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9579== by 0x8062D5B: main (nginx.c:385)
==9579== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9579==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 6: pipelined POST requests ==9579==
==9579== Process terminating with default action of signal 11 (SIGSEGV)
==9579== Access not within mapped region at address 0x0
==9579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9579== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9579== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9579== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9579== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9579== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9579== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9579== by 0x8062D5B: main (nginx.c:385)
==9579== If you believe this happened as a result of a stack
==9579== overflow in your program's main thread (unlikely but
==9579== possible), you can try to increase the size of the
==9579== main thread stack using the --main-stacksize= flag.
==9579== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 6: pipelined POST requests - status code ok got: ''
expected: '200'
067-req-socket.t TEST 6: pipelined POST requests - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-got the request socket
-received: hell
-received: o, w
-received: orld
-received: hiya
-received: , wo
-done
'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps ==9592== Invalid read of size 4
==9592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9592== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9592== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9592== by 0x8062D5B: main (nginx.c:385)
==9592== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9592==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps ==9592==
==9592== Process terminating with default action of signal 11 (SIGSEGV)
==9592== Access not within mapped region at address 0x0
==9592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9592== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9592== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9592== by 0x8062D5B: main (nginx.c:385)
==9592== If you believe this happened as a result of a stack
==9592== overflow in your program's main thread (unlikely but
==9592== possible), you can try to increase the size of the
==9592== main thread stack using the --main-stacksize= flag.
==9592== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - status code ok got: ''
expected: '200'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - response_body - response is expected (repeated req 0, req 0) @@ -1,13 +0,0 @@
-got the request socket
-received: he
-received: ll
-received: o
-received: wo
-received: rl
-received: d
-
-received: hi
-received: ya
-received: g
-received: lo
-received: be
'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps ==9613== Invalid read of size 4
==9613== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9613== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9613== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9613== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9613== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9613== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9613== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9613== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9613== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9613== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9613== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9613== by 0x8062D5B: main (nginx.c:385)
==9613== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9613==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps ==9613==
==9613== Process terminating with default action of signal 11 (SIGSEGV)
==9613== Access not within mapped region at address 0x0
==9613== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9613== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9613== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9613== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9613== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9613== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9613== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9613== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9613== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9613== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9613== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9613== by 0x8062D5B: main (nginx.c:385)
==9613== If you believe this happened as a result of a stack
==9613== overflow in your program's main thread (unlikely but
==9613== possible), you can try to increase the size of the
==9613== main thread stack using the --main-stacksize= flag.
==9613== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - status code ok got: ''
expected: '200'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - response_body - response is expected (repeated req 1, req 0) @@ -1,13 +0,0 @@
-got the request socket
-received: he
-received: ll
-received: o
-received: wo
-received: rl
-received: d
-
-received: hi
-received: ya
-received: g
-received: lo
-received: be
'
067-req-socket.t TEST 8: failing reread after reading timeout happens ==9625== Invalid read of size 4
==9625== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9625== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9625== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9625== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9625== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9625== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9625== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9625== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9625== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9625== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9625== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9625== by 0x8062D5B: main (nginx.c:385)
==9625== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9625==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 8: failing reread after reading timeout happens ==9625==
==9625== Process terminating with default action of signal 11 (SIGSEGV)
==9625== Access not within mapped region at address 0x0
==9625== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9625== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9625== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9625== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9625== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9625== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9625== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9625== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9625== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9625== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9625== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9625== by 0x8062D5B: main (nginx.c:385)
==9625== If you believe this happened as a result of a stack
==9625== overflow in your program's main thread (unlikely but
==9625== possible), you can try to increase the size of the
==9625== main thread stack using the --main-stacksize= flag.
==9625== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 8: failing reread after reading timeout happens - status code ok got: ''
expected: '200'
067-req-socket.t TEST 8: failing reread after reading timeout happens - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-err: timeout, partial: hello
-err: timeout, partial:
'
067-req-socket.t TEST 8: failing reread after reading timeout happens ==9646== Invalid read of size 4
==9646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9646== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9646== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9646== by 0x8062D5B: main (nginx.c:385)
==9646== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9646==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 8: failing reread after reading timeout happens ==9646==
==9646== Process terminating with default action of signal 11 (SIGSEGV)
==9646== Access not within mapped region at address 0x0
==9646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9646== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9646== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9646== by 0x8062D5B: main (nginx.c:385)
==9646== If you believe this happened as a result of a stack
==9646== overflow in your program's main thread (unlikely but
==9646== possible), you can try to increase the size of the
==9646== main thread stack using the --main-stacksize= flag.
==9646== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 8: failing reread after reading timeout happens - status code ok got: ''
expected: '200'
067-req-socket.t TEST 8: failing reread after reading timeout happens - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-err: timeout, partial: hello
-err: timeout, partial:
'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) ==9658== Invalid read of size 4
==9658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9658== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9658== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9658== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9658== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9658== by 0x8062D5B: main (nginx.c:385)
==9658== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9658==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) ==9658==
==9658== Process terminating with default action of signal 11 (SIGSEGV)
==9658== Access not within mapped region at address 0x0
==9658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9658== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9658== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9658== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9658== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9658== by 0x8062D5B: main (nginx.c:385)
==9658== If you believe this happened as a result of a stack
==9658== overflow in your program's main thread (unlikely but
==9658== possible), you can try to increase the size of the
==9658== main thread stack using the --main-stacksize= flag.
==9658== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 11
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) ==9679== Invalid read of size 4
==9679== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9679== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9679== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9679== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9679== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9679== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9679== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9679== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9679== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9679== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9679== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9679== by 0x8062D5B: main (nginx.c:385)
==9679== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9679==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) ==9679==
==9679== Process terminating with default action of signal 11 (SIGSEGV)
==9679== Access not within mapped region at address 0x0
==9679== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9679== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9679== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9679== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9679== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9679== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9679== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9679== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9679== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9679== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9679== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9679== by 0x8062D5B: main (nginx.c:385)
==9679== If you believe this happened as a result of a stack
==9679== overflow in your program's main thread (unlikely but
==9679== possible), you can try to increase the size of the
==9679== main thread stack using the --main-stacksize= flag.
==9679== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 11
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) ==9691== Invalid read of size 4
==9691== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9691== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9691== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9691== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9691== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9691== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9691== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9691== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9691== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9691== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9691== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9691== by 0x8062D5B: main (nginx.c:385)
==9691== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9691==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) ==9691==
==9691== Process terminating with default action of signal 11 (SIGSEGV)
==9691== Access not within mapped region at address 0x0
==9691== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9691== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9691== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9691== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9691== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9691== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9691== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9691== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9691== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9691== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9691== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9691== by 0x8062D5B: main (nginx.c:385)
==9691== If you believe this happened as a result of a stack
==9691== overflow in your program's main thread (unlikely but
==9691== possible), you can try to increase the size of the
==9691== main thread stack using the --main-stacksize= flag.
==9691== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) ==9712== Invalid read of size 4
==9712== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9712== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9712== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9712== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9712== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9712== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9712== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9712== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9712== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9712== by 0x8062D5B: main (nginx.c:385)
==9712== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9712==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) ==9712==
==9712== Process terminating with default action of signal 11 (SIGSEGV)
==9712== Access not within mapped region at address 0x0
==9712== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9712== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9712== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9712== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9712== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9712== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9712== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9712== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9712== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9712== by 0x8062D5B: main (nginx.c:385)
==9712== If you believe this happened as a result of a stack
==9712== overflow in your program's main thread (unlikely but
==9712== possible), you can try to increase the size of the
==9712== main thread stack using the --main-stacksize= flag.
==9712== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) ==9724== Invalid read of size 4
==9724== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9724== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9724== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9724== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9724== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9724== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9724== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9724== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9724== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9724== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9724== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9724== by 0x8062D5B: main (nginx.c:385)
==9724== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9724==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) ==9724==
==9724== Process terminating with default action of signal 11 (SIGSEGV)
==9724== Access not within mapped region at address 0x0
==9724== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9724== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9724== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9724== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9724== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9724== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9724== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9724== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9724== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9724== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9724== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9724== by 0x8062D5B: main (nginx.c:385)
==9724== If you believe this happened as a result of a stack
==9724== overflow in your program's main thread (unlikely but
==9724== possible), you can try to increase the size of the
==9724== main thread stack using the --main-stacksize= flag.
==9724== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) ==9745== Invalid read of size 4
==9745== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9745== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9745== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9745== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9745== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9745== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9745== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9745== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9745== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9745== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9745== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9745== by 0x8062D5B: main (nginx.c:385)
==9745== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9745==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) ==9745==
==9745== Process terminating with default action of signal 11 (SIGSEGV)
==9745== Access not within mapped region at address 0x0
==9745== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9745== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9745== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9745== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9745== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9745== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9745== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9745== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9745== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9745== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9745== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9745== by 0x8062D5B: main (nginx.c:385)
==9745== If you believe this happened as a result of a stack
==9745== overflow in your program's main thread (unlikely but
==9745== possible), you can try to increase the size of the
==9745== main thread stack using the --main-stacksize= flag.
==9745== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 12: req socket GC'd ==9757== Invalid read of size 4
==9757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9757== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9757== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9757== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9757== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9757== by 0x8062D5B: main (nginx.c:385)
==9757== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9757==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 12: req socket GC'd ==9757==
==9757== Process terminating with default action of signal 11 (SIGSEGV)
==9757== Access not within mapped region at address 0x0
==9757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9757== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9757== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9757== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9757== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9757== by 0x8062D5B: main (nginx.c:385)
==9757== If you believe this happened as a result of a stack
==9757== overflow in your program's main thread (unlikely but
==9757== possible), you can try to increase the size of the
==9757== main thread stack using the --main-stacksize= flag.
==9757== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 12: req socket GC'd - status code ok got: ''
expected: '200'
067-req-socket.t TEST 12: req socket GC'd - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-got the request socket
-done
'
067-req-socket.t TEST 12: req socket GC'd ==9778== Invalid read of size 4
==9778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9778== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9778== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9778== by 0x8062D5B: main (nginx.c:385)
==9778== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9778==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 12: req socket GC'd ==9778==
==9778== Process terminating with default action of signal 11 (SIGSEGV)
==9778== Access not within mapped region at address 0x0
==9778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9778== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9778== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9778== by 0x8062D5B: main (nginx.c:385)
==9778== If you believe this happened as a result of a stack
==9778== overflow in your program's main thread (unlikely but
==9778== possible), you can try to increase the size of the
==9778== main thread stack using the --main-stacksize= flag.
==9778== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 12: req socket GC'd - status code ok got: ''
expected: '200'
067-req-socket.t TEST 12: req socket GC'd - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-got the request socket
-done
'
067-req-socket.t TEST 13: sanity of raw req socket receive any ==9790== Invalid read of size 4
==9790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9790== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9790== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9790== by 0x8062D5B: main (nginx.c:385)
==9790== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9790==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 13: sanity of raw req socket receive any ==9790==
==9790== Process terminating with default action of signal 11 (SIGSEGV)
==9790== Access not within mapped region at address 0x0
==9790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9790== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9790== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9790== by 0x8062D5B: main (nginx.c:385)
==9790== If you believe this happened as a result of a stack
==9790== overflow in your program's main thread (unlikely but
==9790== possible), you can try to increase the size of the
==9790== main thread stack using the --main-stacksize= flag.
==9790== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 13: sanity of raw req socket receive any - status code ok got: ''
expected: '200'
067-req-socket.t TEST 13: sanity of raw req socket receive any - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1: received: hello
'
067-req-socket.t TEST 13: sanity of raw req socket receive any ==9811== Invalid read of size 4
==9811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9811== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9811== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9811== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9811== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9811== by 0x8062D5B: main (nginx.c:385)
==9811== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 13: sanity of raw req socket receive any ==9811==
==9811== Process terminating with default action of signal 11 (SIGSEGV)
==9811== Access not within mapped region at address 0x0
==9811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9811== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9811== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9811== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9811== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9811== by 0x8062D5B: main (nginx.c:385)
==9811== If you believe this happened as a result of a stack
==9811== overflow in your program's main thread (unlikely but
==9811== possible), you can try to increase the size of the
==9811== main thread stack using the --main-stacksize= flag.
==9811== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 13: sanity of raw req socket receive any - status code ok got: ''
expected: '200'
067-req-socket.t TEST 13: sanity of raw req socket receive any - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1: received: hello
'
067-req-socket.t TEST 14: receiveany small block size for a big size block ==9823== Invalid read of size 4
==9823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9823== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9823== by 0x8062D5B: main (nginx.c:385)
==9823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 14: receiveany small block size for a big size block ==9823==
==9823== Process terminating with default action of signal 11 (SIGSEGV)
==9823== Access not within mapped region at address 0x0
==9823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9823== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9823== by 0x8062D5B: main (nginx.c:385)
==9823== If you believe this happened as a result of a stack
==9823== overflow in your program's main thread (unlikely but
==9823== possible), you can try to increase the size of the
==9823== main thread stack using the --main-stacksize= flag.
==9823== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 14: receiveany small block size for a big size block - status code ok got: ''
expected: '200'
067-req-socket.t TEST 14: receiveany small block size for a big size block - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-ok
-receive: hel
-receive: lo,
-receive: st
-receive: rea
-receive: m r
-receive: ece
-receive: ive
-receive: any
-receive: !
'
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "client timeout" should match a line in error.log (req 0)
067-req-socket.t TEST 14: receiveany small block size for a big size block ==9844== Invalid read of size 4
==9844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9844== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9844== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9844== by 0x8062D5B: main (nginx.c:385)
==9844== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9844==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 14: receiveany small block size for a big size block ==9844==
==9844== Process terminating with default action of signal 11 (SIGSEGV)
==9844== Access not within mapped region at address 0x0
==9844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9844== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9844== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9844== by 0x8062D5B: main (nginx.c:385)
==9844== If you believe this happened as a result of a stack
==9844== overflow in your program's main thread (unlikely but
==9844== possible), you can try to increase the size of the
==9844== main thread stack using the --main-stacksize= flag.
==9844== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 14: receiveany small block size for a big size block - status code ok got: ''
expected: '200'
067-req-socket.t TEST 14: receiveany small block size for a big size block - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-ok
-receive: hel
-receive: lo,
-receive: st
-receive: rea
-receive: m r
-receive: ece
-receive: ive
-receive: any
-receive: !
'
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "client timeout" should match a line in error.log (req 1)
067-req-socket.t TEST 15: receiveany with limited, max <= 0 ==9856== Invalid read of size 4
==9856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9856== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9856== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9856== by 0x8062D5B: main (nginx.c:385)
==9856== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9856==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 15: receiveany with limited, max <= 0 ==9856==
==9856== Process terminating with default action of signal 11 (SIGSEGV)
==9856== Access not within mapped region at address 0x0
==9856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9856== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9856== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9856== by 0x8062D5B: main (nginx.c:385)
==9856== If you believe this happened as a result of a stack
==9856== overflow in your program's main thread (unlikely but
==9856== possible), you can try to increase the size of the
==9856== main thread stack using the --main-stacksize= flag.
==9856== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 15: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
067-req-socket.t TEST 15: receiveany with limited, max <= 0 ==9877== Invalid read of size 4
==9877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9877== by 0x8062D5B: main (nginx.c:385)
==9877== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9877==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 15: receiveany with limited, max <= 0 ==9877==
==9877== Process terminating with default action of signal 11 (SIGSEGV)
==9877== Access not within mapped region at address 0x0
==9877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9877== by 0x8062D5B: main (nginx.c:385)
==9877== If you believe this happened as a result of a stack
==9877== overflow in your program's main thread (unlikely but
==9877== possible), you can try to increase the size of the
==9877== main thread stack using the --main-stacksize= flag.
==9877== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 15: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
067-req-socket.t TEST 16: receiveany send data after read side timeout ==9889== Invalid read of size 4
==9889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9889== by 0x8062D5B: main (nginx.c:385)
==9889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 16: receiveany send data after read side timeout ==9889==
==9889== Process terminating with default action of signal 11 (SIGSEGV)
==9889== Access not within mapped region at address 0x0
==9889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9889== by 0x8062D5B: main (nginx.c:385)
==9889== If you believe this happened as a result of a stack
==9889== overflow in your program's main thread (unlikely but
==9889== possible), you can try to increase the size of the
==9889== main thread stack using the --main-stacksize= flag.
==9889== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 16: receiveany send data after read side timeout - status code ok got: ''
expected: '200'
067-req-socket.t TEST 16: receiveany send data after read side timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'send data after read side timeout'
067-req-socket.t TEST 16: receiveany send data after read side timeout ==9910== Invalid read of size 4
==9910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9910== by 0x8062D5B: main (nginx.c:385)
==9910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
067-req-socket.t TEST 16: receiveany send data after read side timeout ==9910==
==9910== Process terminating with default action of signal 11 (SIGSEGV)
==9910== Access not within mapped region at address 0x0
==9910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==9910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==9910== by 0x8062D5B: main (nginx.c:385)
==9910== If you believe this happened as a result of a stack
==9910== overflow in your program's main thread (unlikely but
==9910== possible), you can try to increase the size of the
==9910== main thread stack using the --main-stacksize= flag.
==9910== The main thread stack size used in this run was 8388608.

067-req-socket.t TEST 16: receiveany send data after read side timeout - status code ok got: ''
expected: '200'
067-req-socket.t TEST 16: receiveany send data after read side timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'send data after read side timeout'
068-socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==9919== Invalid read of size 4
==9919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9919== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==9919== by 0x8062D5B: main (nginx.c:385)
==9919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==9919==
==9919== Process terminating with default action of signal 11 (SIGSEGV)
==9919== Access not within mapped region at address 0x0
==9919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9919== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==9919== by 0x8062D5B: main (nginx.c:385)
==9919== If you believe this happened as a result of a stack
==9919== overflow in your program's main thread (unlikely but
==9919== possible), you can try to increase the size of the
==9919== main thread stack using the --main-stacksize= flag.
==9919== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
'
068-socket-keepalive.t TEST 1: sanity - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 1: sanity - pattern "lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections ==9931== Invalid read of size 4
==9931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9931== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9931== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9931== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9931== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9931== by 0x8062D5B: main (nginx.c:385)
==9931== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9931==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections ==9931==
==9931== Process terminating with default action of signal 11 (SIGSEGV)
==9931== Access not within mapped region at address 0x0
==9931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9931== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9931== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9931== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9931== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9931== by 0x8062D5B: main (nginx.c:385)
==9931== If you believe this happened as a result of a stack
==9931== overflow in your program's main thread (unlikely but
==9931== possible), you can try to increase the size of the
==9931== main thread stack using the --main-stacksize= flag.
==9931== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 3: upstream sockets close prematurely ==9963== Invalid read of size 4
==9963== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9963== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9963== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9963== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9963== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9963== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9963== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9963== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9963== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9963== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9963== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9963== by 0x8062D5B: main (nginx.c:385)
==9963== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9963==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 3: upstream sockets close prematurely ==9963==
==9963== Process terminating with default action of signal 11 (SIGSEGV)
==9963== Access not within mapped region at address 0x0
==9963== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9963== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9963== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9963== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9963== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9963== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9963== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9963== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9963== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9963== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9963== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9963== by 0x8062D5B: main (nginx.c:385)
==9963== If you believe this happened as a result of a stack
==9963== overflow in your program's main thread (unlikely but
==9963== possible), you can try to increase the size of the
==9963== main thread stack using the --main-stacksize= flag.
==9963== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 3: upstream sockets close prematurely - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 4: http keepalive ==9995== Invalid read of size 4
==9995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9995== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9995== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9995== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9995== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9995== by 0x8062D5B: main (nginx.c:385)
==9995== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9995==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 4: http keepalive ==9995==
==9995== Process terminating with default action of signal 11 (SIGSEGV)
==9995== Access not within mapped region at address 0x0
==9995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==9995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==9995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==9995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==9995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==9995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==9995== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==9995== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==9995== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==9995== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9995== by 0x8062D5B: main (nginx.c:385)
==9995== If you believe this happened as a result of a stack
==9995== overflow in your program's main thread (unlikely but
==9995== possible), you can try to increase the size of the
==9995== main thread stack using the --main-stacksize= flag.
==9995== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 4: http keepalive - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 4: http keepalive - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout ==10027== Invalid read of size 4
==10027== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10027== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10027== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10027== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10027== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10027== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10027== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10027== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10027== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10027== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10027== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10027== by 0x8062D5B: main (nginx.c:385)
==10027== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10027==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout ==10027==
==10027== Process terminating with default action of signal 11 (SIGSEGV)
==10027== Access not within mapped region at address 0x0
==10027== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10027== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10027== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10027== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10027== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10027== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10027== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10027== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10027== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10027== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10027== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10027== by 0x8062D5B: main (nginx.c:385)
==10027== If you believe this happened as a result of a stack
==10027== overflow in your program's main thread (unlikely but
==10027== possible), you can try to increase the size of the
==10027== main thread stack using the --main-stacksize= flag.
==10027== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive timeout: 100 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size ==10059== Invalid read of size 4
==10059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10059== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10059== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10059== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10059== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10059== by 0x8062D5B: main (nginx.c:385)
==10059== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10059==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 6: lua_socket_pool_size ==10059==
==10059== Process terminating with default action of signal 11 (SIGSEGV)
==10059== Access not within mapped region at address 0x0
==10059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10059== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10059== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10059== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10059== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10059== by 0x8062D5B: main (nginx.c:385)
==10059== If you believe this happened as a result of a stack
==10059== overflow in your program's main thread (unlikely but
==10059== possible), you can try to increase the size of the
==10059== main thread stack using the --main-stacksize= flag.
==10059== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 6: lua_socket_pool_size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 6: lua_socket_pool_size - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "lua tcp socket keepalive timeout: 100 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "(?^:lua tcp socket connection pool size: 1\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited ==10091== Invalid read of size 4
==10091== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10091== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10091== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10091== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10091== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10091== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10091== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10091== by 0x8062D5B: main (nginx.c:385)
==10091== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10091==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited ==10091==
==10091== Process terminating with default action of signal 11 (SIGSEGV)
==10091== Access not within mapped region at address 0x0
==10091== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10091== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10091== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10091== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10091== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10091== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10091== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10091== by 0x8062D5B: main (nginx.c:385)
==10091== If you believe this happened as a result of a stack
==10091== overflow in your program's main thread (unlikely but
==10091== possible), you can try to increase the size of the
==10091== main thread stack using the --main-stacksize= flag.
==10091== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - pattern "lua tcp socket keepalive timeout: unlimited" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout ==10123== Invalid read of size 4
==10123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10123== by 0x8062D5B: main (nginx.c:385)
==10123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout ==10123==
==10123== Process terminating with default action of signal 11 (SIGSEGV)
==10123== Access not within mapped region at address 0x0
==10123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10123== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10123== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10123== by 0x8062D5B: main (nginx.c:385)
==10123== If you believe this happened as a result of a stack
==10123== overflow in your program's main thread (unlikely but
==10123== possible), you can try to increase the size of the
==10123== main thread stack using the --main-stacksize= flag.
==10123== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive timeout: 123 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size ==10155== Invalid read of size 4
==10155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10155== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10155== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10155== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10155== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10155== by 0x8062D5B: main (nginx.c:385)
==10155== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10155==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size ==10155==
==10155== Process terminating with default action of signal 11 (SIGSEGV)
==10155== Access not within mapped region at address 0x0
==10155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10155== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10155== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10155== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10155== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10155== by 0x8062D5B: main (nginx.c:385)
==10155== If you believe this happened as a result of a stack
==10155== overflow in your program's main thread (unlikely but
==10155== possible), you can try to increase the size of the
==10155== main thread stack using the --main-stacksize= flag.
==10155== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "lua tcp socket keepalive timeout: 101 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "(?^:lua tcp socket connection pool size: 25\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero ==10187== Invalid read of size 4
==10187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10187== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10187== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10187== by 0x8062D5B: main (nginx.c:385)
==10187== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10187==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero ==10187==
==10187== Process terminating with default action of signal 11 (SIGSEGV)
==10187== Access not within mapped region at address 0x0
==10187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10187== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10187== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10187== by 0x8062D5B: main (nginx.c:385)
==10187== If you believe this happened as a result of a stack
==10187== overflow in your program's main thread (unlikely but
==10187== possible), you can try to increase the size of the
==10187== main thread stack using the --main-stacksize= flag.
==10187== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad argument #3 to '?' (bad "pool_size" option value: 0)
'
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited ==10219== Invalid read of size 4
==10219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10219== by 0x8062D5B: main (nginx.c:385)
==10219== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10219==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited ==10219==
==10219== Process terminating with default action of signal 11 (SIGSEGV)
==10219== Access not within mapped region at address 0x0
==10219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10219== by 0x8062D5B: main (nginx.c:385)
==10219== If you believe this happened as a result of a stack
==10219== overflow in your program's main thread (unlikely but
==10219== possible), you can try to increase the size of the
==10219== main thread stack using the --main-stacksize= flag.
==10219== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - pattern "lua tcp socket keepalive timeout: unlimited" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 12: sanity (uds) ==10251== Invalid read of size 4
==10251== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10251== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10251== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10251== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10251== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10251== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10251== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10251== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10251== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10251== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10251== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10251== by 0x8062D5B: main (nginx.c:385)
==10251== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10251==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 12: sanity (uds) ==10251==
==10251== Process terminating with default action of signal 11 (SIGSEGV)
==10251== Access not within mapped region at address 0x0
==10251== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10251== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10251== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10251== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10251== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10251== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10251== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10251== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10251== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10251== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10251== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10251== by 0x8062D5B: main (nginx.c:385)
==10251== If you believe this happened as a result of a stack
==10251== overflow in your program's main thread (unlikely but
==10251== possible), you can try to increase the size of the
==10251== main thread stack using the --main-stacksize= flag.
==10251== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 12: sanity (uds) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 12: sanity (uds) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 61
-received response of 119 bytes
-connected: 1, reused: 1
-request sent: 61
-received response of 119 bytes
'
068-socket-keepalive.t TEST 12: sanity (uds) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 12: sanity (uds) - pattern "lua tcp socket keepalive create connection pool for key "unix:" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp ==10283== Invalid read of size 4
==10283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10283== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10283== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10283== by 0x8062D5B: main (nginx.c:385)
==10283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp ==10283==
==10283== Process terminating with default action of signal 11 (SIGSEGV)
==10283== Access not within mapped region at address 0x0
==10283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10283== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10283== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10283== by 0x8062D5B: main (nginx.c:385)
==10283== If you believe this happened as a result of a stack
==10283== overflow in your program's main thread (unlikely but
==10283== possible), you can try to increase the size of the
==10283== main thread stack using the --main-stacksize= flag.
==10283== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 0
'
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - pattern "lua tcp socket keepalive create connection pool for key "B"" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp ==10315== Invalid read of size 4
==10315== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10315== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10315== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10315== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10315== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10315== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10315== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10315== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10315== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10315== by 0x8062D5B: main (nginx.c:385)
==10315== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10315==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp ==10315==
==10315== Process terminating with default action of signal 11 (SIGSEGV)
==10315== Access not within mapped region at address 0x0
==10315== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10315== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10315== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10315== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10315== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10315== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10315== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10315== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10315== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10315== by 0x8062D5B: main (nginx.c:385)
==10315== If you believe this happened as a result of a stack
==10315== overflow in your program's main thread (unlikely but
==10315== possible), you can try to increase the size of the
==10315== main thread stack using the --main-stacksize= flag.
==10315== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix ==10347== Invalid read of size 4
==10347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10347== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10347== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10347== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10347== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10347== by 0x8062D5B: main (nginx.c:385)
==10347== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10347==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix ==10347==
==10347== Process terminating with default action of signal 11 (SIGSEGV)
==10347== Access not within mapped region at address 0x0
==10347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10347== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10347== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10347== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10347== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10347== by 0x8062D5B: main (nginx.c:385)
==10347== If you believe this happened as a result of a stack
==10347== overflow in your program's main thread (unlikely but
==10347== possible), you can try to increase the size of the
==10347== main thread stack using the --main-stacksize= flag.
==10347== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 0
'
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix ==10379== Invalid read of size 4
==10379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10379== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10379== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10379== by 0x8062D5B: main (nginx.c:385)
==10379== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix ==10379==
==10379== Process terminating with default action of signal 11 (SIGSEGV)
==10379== Access not within mapped region at address 0x0
==10379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10379== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10379== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10379== by 0x8062D5B: main (nginx.c:385)
==10379== If you believe this happened as a result of a stack
==10379== overflow in your program's main thread (unlikely but
==10379== possible), you can try to increase the size of the
==10379== main thread stack using the --main-stacksize= flag.
==10379== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 19: numeric pool option value ==10411== Invalid read of size 4
==10411== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10411== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10411== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10411== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10411== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10411== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10411== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10411== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10411== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10411== by 0x8062D5B: main (nginx.c:385)
==10411== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10411==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 19: numeric pool option value ==10411==
==10411== Process terminating with default action of signal 11 (SIGSEGV)
==10411== Access not within mapped region at address 0x0
==10411== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10411== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10411== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10411== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10411== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10411== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10411== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10411== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10411== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10411== by 0x8062D5B: main (nginx.c:385)
==10411== If you believe this happened as a result of a stack
==10411== overflow in your program's main thread (unlikely but
==10411== possible), you can try to increase the size of the
==10411== main thread stack using the --main-stacksize= flag.
==10411== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 19: numeric pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 19: numeric pool option value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 20: nil pool option value ==10443== Invalid read of size 4
==10443== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10443== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10443== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10443== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10443== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10443== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10443== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10443== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10443== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10443== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10443== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10443== by 0x8062D5B: main (nginx.c:385)
==10443== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10443==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 20: nil pool option value ==10443==
==10443== Process terminating with default action of signal 11 (SIGSEGV)
==10443== Access not within mapped region at address 0x0
==10443== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10443== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10443== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10443== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10443== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10443== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10443== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10443== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10443== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10443== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10443== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10443== by 0x8062D5B: main (nginx.c:385)
==10443== If you believe this happened as a result of a stack
==10443== overflow in your program's main thread (unlikely but
==10443== possible), you can try to increase the size of the
==10443== main thread stack using the --main-stacksize= flag.
==10443== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 20: nil pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 20: nil pool option value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 0
'
068-socket-keepalive.t TEST 21: (bad) table pool option value ==10475== Invalid read of size 4
==10475== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10475== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10475== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10475== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10475== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10475== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10475== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10475== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10475== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10475== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10475== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10475== by 0x8062D5B: main (nginx.c:385)
==10475== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10475==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 21: (bad) table pool option value ==10475==
==10475== Process terminating with default action of signal 11 (SIGSEGV)
==10475== Access not within mapped region at address 0x0
==10475== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10475== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10475== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10475== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10475== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10475== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10475== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10475== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10475== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10475== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10475== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10475== by 0x8062D5B: main (nginx.c:385)
==10475== If you believe this happened as a result of a stack
==10475== overflow in your program's main thread (unlikely but
==10475== possible), you can try to increase the size of the
==10475== main thread stack using the --main-stacksize= flag.
==10475== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 21: (bad) table pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 22: (bad) boolean pool option value ==10507== Invalid read of size 4
==10507== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10507== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10507== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10507== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10507== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10507== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10507== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10507== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10507== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10507== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10507== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10507== by 0x8062D5B: main (nginx.c:385)
==10507== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10507==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 22: (bad) boolean pool option value ==10507==
==10507== Process terminating with default action of signal 11 (SIGSEGV)
==10507== Access not within mapped region at address 0x0
==10507== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10507== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10507== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10507== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10507== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10507== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10507== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10507== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10507== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10507== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10507== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10507== by 0x8062D5B: main (nginx.c:385)
==10507== If you believe this happened as a result of a stack
==10507== overflow in your program's main thread (unlikely but
==10507== possible), you can try to increase the size of the
==10507== main thread stack using the --main-stacksize= flag.
==10507== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 22: (bad) boolean pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args ==10539== Invalid read of size 4
==10539== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10539== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10539== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10539== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10539== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10539== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10539== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10539== by 0x8062D5B: main (nginx.c:385)
==10539== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10539==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args ==10539==
==10539== Process terminating with default action of signal 11 (SIGSEGV)
==10539== Access not within mapped region at address 0x0
==10539== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10539== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10539== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10539== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10539== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10539== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10539== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10539== by 0x8062D5B: main (nginx.c:385)
==10539== If you believe this happened as a result of a stack
==10539== overflow in your program's main thread (unlikely but
==10539== possible), you can try to increase the size of the
==10539== main thread stack using the --main-stacksize= flag.
==10539== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "lua tcp socket keepalive timeout: 100 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool ==10571== Invalid read of size 4
==10571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10571== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10571== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10571== by 0x8062D5B: main (nginx.c:385)
==10571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool ==10571==
==10571== Process terminating with default action of signal 11 (SIGSEGV)
==10571== Access not within mapped region at address 0x0
==10571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10571== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10571== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10571== by 0x8062D5B: main (nginx.c:385)
==10571== If you believe this happened as a result of a stack
==10571== overflow in your program's main thread (unlikely but
==10571== possible), you can try to increase the size of the
==10571== main thread stack using the --main-stacksize= flag.
==10571== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool - response_body_like - response is expected () ''
doesn't match '(?^s:.+ 'connect' \(bad "pool_size" option type: string\)
.+ 'connect' \(bad "pool_size" option value: 0\)
.+ 'connect' \(bad "backlog" option value: -1\)
ok
)'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() ==10603== Invalid read of size 4
==10603== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10603== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10603== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10603== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10603== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10603== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10603== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10603== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10603== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10603== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10603== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10603== by 0x8062D5B: main (nginx.c:385)
==10603== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10603==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() ==10603==
==10603== Process terminating with default action of signal 11 (SIGSEGV)
==10603== Access not within mapped region at address 0x0
==10603== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10603== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10603== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10603== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10603== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10603== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10603== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10603== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10603== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10603== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10603== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10603== by 0x8062D5B: main (nginx.c:385)
==10603== If you believe this happened as a result of a stack
==10603== overflow in your program's main thread (unlikely but
==10603== possible), you can try to increase the size of the
==10603== main thread stack using the --main-stacksize= flag.
==10603== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
-reused: 1
-reused: 0
'
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket ==10635== Invalid read of size 4
==10635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10635== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10635== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10635== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10635== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10635== by 0x8062D5B: main (nginx.c:385)
==10635== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10635==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket ==10635==
==10635== Process terminating with default action of signal 11 (SIGSEGV)
==10635== Access not within mapped region at address 0x0
==10635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10635== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10635== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10635== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10635== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10635== by 0x8062D5B: main (nginx.c:385)
==10635== If you believe this happened as a result of a stack
==10635== overflow in your program's main thread (unlikely but
==10635== possible), you can try to increase the size of the
==10635== main thread stack using the --main-stacksize= flag.
==10635== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
-reused: 1
-reused: 0
'
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool ==10667== Invalid read of size 4
==10667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10667== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10667== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10667== by 0x8062D5B: main (nginx.c:385)
==10667== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10667==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool ==10667==
==10667== Process terminating with default action of signal 11 (SIGSEGV)
==10667== Access not within mapped region at address 0x0
==10667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10667== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10667== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10667== by 0x8062D5B: main (nginx.c:385)
==10667== If you believe this happened as a result of a stack
==10667== overflow in your program's main thread (unlikely but
==10667== possible), you can try to increase the size of the
==10667== main thread stack using the --main-stacksize= flag.
==10667== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: A, reused: 0
-connected: B, reused: 0
-connected: A, reused: 1
-connected: B, reused: 1
-reused: 1
-reused: 0
'
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given ==10699== Invalid read of size 4
==10699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10699== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10699== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10699== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10699== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10699== by 0x8062D5B: main (nginx.c:385)
==10699== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10699==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given ==10699==
==10699== Process terminating with default action of signal 11 (SIGSEGV)
==10699== Access not within mapped region at address 0x0
==10699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10699== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10699== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10699== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10699== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10699== by 0x8062D5B: main (nginx.c:385)
==10699== If you believe this happened as a result of a stack
==10699== overflow in your program's main thread (unlikely but
==10699== possible), you can try to increase the size of the
==10699== main thread stack using the --main-stacksize= flag.
==10699== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size ==10731== Invalid read of size 4
==10731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10731== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10731== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10731== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10731== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10731== by 0x8062D5B: main (nginx.c:385)
==10731== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10731==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size ==10731==
==10731== Process terminating with default action of signal 11 (SIGSEGV)
==10731== Access not within mapped region at address 0x0
==10731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10731== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10731== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10731== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10731== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10731== by 0x8062D5B: main (nginx.c:385)
==10731== If you believe this happened as a result of a stack
==10731== overflow in your program's main thread (unlikely but
==10731== possible), you can try to increase the size of the
==10731== main thread stack using the --main-stacksize= flag.
==10731== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-too many waiting connect operations
-reused: 1
-too many waiting connect operations
'
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' ==10763== Invalid read of size 4
==10763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10763== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10763== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10763== by 0x8062D5B: main (nginx.c:385)
==10763== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10763==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' ==10763==
==10763== Process terminating with default action of signal 11 (SIGSEGV)
==10763== Access not within mapped region at address 0x0
==10763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10763== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10763== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10763== by 0x8062D5B: main (nginx.c:385)
==10763== If you believe this happened as a result of a stack
==10763== overflow in your program's main thread (unlikely but
==10763== possible), you can try to increase the size of the
==10763== main thread stack using the --main-stacksize= flag.
==10763== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-request sent: 11
-received: OK
-setkeepalive: OK
'
068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations ==10795== Invalid read of size 4
==10795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10795== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10795== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10795== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10795== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10795== by 0x8062D5B: main (nginx.c:385)
==10795== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10795==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations ==10795==
==10795== Process terminating with default action of signal 11 (SIGSEGV)
==10795== Access not within mapped region at address 0x0
==10795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10795== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10795== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10795== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10795== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10795== by 0x8062D5B: main (nginx.c:385)
==10795== If you believe this happened as a result of a stack
==10795== overflow in your program's main thread (unlikely but
==10795== possible), you can try to increase the size of the
==10795== main thread stack using the --main-stacksize= flag.
==10795== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timeout
-ok
'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached ==10827== Invalid read of size 4
==10827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10827== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10827== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10827== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10827== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10827== by 0x8062D5B: main (nginx.c:385)
==10827== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10827==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached ==10827==
==10827== Process terminating with default action of signal 11 (SIGSEGV)
==10827== Access not within mapped region at address 0x0
==10827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10827== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10827== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10827== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10827== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10827== by 0x8062D5B: main (nginx.c:385)
==10827== If you believe this happened as a result of a stack
==10827== overflow in your program's main thread (unlikely but
==10827== possible), you can try to increase the size of the
==10827== main thread stack using the --main-stacksize= flag.
==10827== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'too many waiting connect operations
'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - grep_error_log_out (req 0) @@ -1,6 +1,2 @@
start to handle timer
queue connect operation for connection pool
-start to handle cosocket
-queue connect operation for connection pool
-continue to handle timer
-continue to handle cosocket
'
068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx ==10859== Invalid read of size 4
==10859== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10859== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10859== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10859== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10859== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10859== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10859== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10859== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10859== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10859== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10859== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10859== by 0x8062D5B: main (nginx.c:385)
==10859== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10859==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx ==10859==
==10859== Process terminating with default action of signal 11 (SIGSEGV)
==10859== Access not within mapped region at address 0x0
==10859== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10859== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10859== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10859== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10859== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10859== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10859== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10859== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10859== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10859== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10859== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10859== by 0x8062D5B: main (nginx.c:385)
==10859== If you believe this happened as a result of a stack
==10859== overflow in your program's main thread (unlikely but
==10859== possible), you can try to increase the size of the
==10859== main thread stack using the --main-stacksize= flag.
==10859== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed ==10891== Invalid read of size 4
==10891== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10891== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10891== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10891== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10891== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10891== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10891== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10891== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10891== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10891== by 0x8062D5B: main (nginx.c:385)
==10891== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10891==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed ==10891==
==10891== Process terminating with default action of signal 11 (SIGSEGV)
==10891== Access not within mapped region at address 0x0
==10891== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10891== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10891== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10891== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10891== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10891== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10891== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10891== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10891== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10891== by 0x8062D5B: main (nginx.c:385)
==10891== If you believe this happened as a result of a stack
==10891== overflow in your program's main thread (unlikely but
==10891== possible), you can try to increase the size of the
==10891== main thread stack using the --main-stacksize= flag.
==10891== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 37: conn queuing: in uthread ==10923== Invalid read of size 4
==10923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10923== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10923== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10923== by 0x8062D5B: main (nginx.c:385)
==10923== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10923==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 37: conn queuing: in uthread ==10923==
==10923== Process terminating with default action of signal 11 (SIGSEGV)
==10923== Access not within mapped region at address 0x0
==10923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10923== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10923== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10923== by 0x8062D5B: main (nginx.c:385)
==10923== If you believe this happened as a result of a stack
==10923== overflow in your program's main thread (unlikely but
==10923== possible), you can try to increase the size of the
==10923== main thread stack using the --main-stacksize= flag.
==10923== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 37: conn queuing: in uthread - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 37: conn queuing: in uthread - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-too many waiting connect operations
-start to handle uthread
-continue to handle other uthread
-start to handle uthread
-continue to handle other uthread
-all uthreads ok
'
068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached ==10955== Invalid read of size 4
==10955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10955== by 0x8062D5B: main (nginx.c:385)
==10955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached ==10955==
==10955== Process terminating with default action of signal 11 (SIGSEGV)
==10955== Access not within mapped region at address 0x0
==10955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10955== by 0x8062D5B: main (nginx.c:385)
==10955== If you believe this happened as a result of a stack
==10955== overflow in your program's main thread (unlikely but
==10955== possible), you can try to increase the size of the
==10955== main thread stack using the --main-stacksize= flag.
==10955== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout ==10987== Invalid read of size 4
==10987== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10987== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10987== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10987== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10987== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10987== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10987== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10987== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10987== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10987== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10987== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10987== by 0x8062D5B: main (nginx.c:385)
==10987== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10987==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout ==10987==
==10987== Process terminating with default action of signal 11 (SIGSEGV)
==10987== Access not within mapped region at address 0x0
==10987== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==10987== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==10987== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==10987== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==10987== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==10987== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==10987== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==10987== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==10987== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==10987== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==10987== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10987== by 0x8062D5B: main (nginx.c:385)
==10987== If you believe this happened as a result of a stack
==10987== overflow in your program's main thread (unlikely but
==10987== possible), you can try to increase the size of the
==10987== main thread stack using the --main-stacksize= flag.
==10987== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately ==11050== Invalid read of size 4
==11050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11050== by 0x8062D5B: main (nginx.c:385)
==11050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately ==11050==
==11050== Process terminating with default action of signal 11 (SIGSEGV)
==11050== Access not within mapped region at address 0x0
==11050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11050== by 0x8062D5B: main (nginx.c:385)
==11050== If you believe this happened as a result of a stack
==11050== overflow in your program's main thread (unlikely but
==11050== possible), you can try to increase the size of the
==11050== main thread stack using the --main-stacksize= flag.
==11050== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to parse host name "": no host
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:40:07 [error] 11019\#0: *1051 stream lua tcp socket queued connect timed out, when trying to connect to 127.0.0.1:11211, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:40:07 [debug] 11019\#0: *1051 stream lua tcp socket waking up the current request
2020/10/27 04:40:07 [debug] 11019\#0: *1051 stream lua tcp operation done, resuming lua thread
2020/10/27 04:40:07 [debug] 11019\#0: *1051 stream lua tcp socket calling prepare retvals handler 08164146, u:04E61B90
2020/10/27 04:40:07 [debug] 11019\#0: *1051 lua run thread, top:9
2020/10/27 04:40:07 [debug] 11019\#0: *1051 malloc: 05E13DA0:8
2020/10/27 04:40:07 [debug] 11019\#0: *1051 malloc: 05DD8230:8
2020/10/27 04:40:07 [debug] 11019\#0: *1051 lua allocate new chainlink and new buf of size 8, cl:05E13DA0
2020/10/27 04:40:07 [debug] 11019\#0: *1051 malloc: 05032A30:52
2020/10/27 04:40:07 [debug] 11019\#0: *1051 malloc: 058BAD80:8
'
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) ==11082== Invalid read of size 4
==11082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11082== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11082== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11082== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11082== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11082== by 0x8062D5B: main (nginx.c:385)
==11082== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11082==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) ==11082==
==11082== Process terminating with default action of signal 11 (SIGSEGV)
==11082== Access not within mapped region at address 0x0
==11082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11082== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11082== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11082== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11082== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11082== by 0x8062D5B: main (nginx.c:385)
==11082== If you believe this happened as a result of a stack
==11082== overflow in your program's main thread (unlikely but
==11082== possible), you can try to increase the size of the
==11082== main thread stack using the --main-stacksize= flag.
==11082== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-timeout
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) ==11114== Invalid read of size 4
==11114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11114== by 0x8062D5B: main (nginx.c:385)
==11114== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11114==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) ==11114==
==11114== Process terminating with default action of signal 11 (SIGSEGV)
==11114== Access not within mapped region at address 0x0
==11114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11114== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11114== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11114== by 0x8062D5B: main (nginx.c:385)
==11114== If you believe this happened as a result of a stack
==11114== overflow in your program's main thread (unlikely but
==11114== possible), you can try to increase the size of the
==11114== main thread stack using the --main-stacksize= flag.
==11114== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-agentzh.org could not be resolved (110: Operation timed out)
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) ==11146== Invalid read of size 4
==11146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11146== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11146== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11146== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11146== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11146== by 0x8062D5B: main (nginx.c:385)
==11146== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11146==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) ==11146==
==11146== Process terminating with default action of signal 11 (SIGSEGV)
==11146== Access not within mapped region at address 0x0
==11146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11146== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11146== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11146== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11146== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11146== by 0x8062D5B: main (nginx.c:385)
==11146== If you believe this happened as a result of a stack
==11146== overflow in your program's main thread (unlikely but
==11146== possible), you can try to increase the size of the
==11146== main thread stack using the --main-stacksize= flag.
==11146== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connection refused
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) ==11178== Invalid read of size 4
==11178== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11178== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11178== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11178== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11178== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11178== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11178== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11178== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11178== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11178== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11178== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11178== by 0x8062D5B: main (nginx.c:385)
==11178== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11178==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) ==11178==
==11178== Process terminating with default action of signal 11 (SIGSEGV)
==11178== Access not within mapped region at address 0x0
==11178== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11178== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11178== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11178== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11178== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11178== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11178== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11178== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11178== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11178== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11178== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11178== by 0x8062D5B: main (nginx.c:385)
==11178== If you believe this happened as a result of a stack
==11178== overflow in your program's main thread (unlikely but
==11178== possible), you can try to increase the size of the
==11178== main thread stack using the --main-stacksize= flag.
==11178== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - pattern "resume success" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:40:23 [alert] 9918\#0: worker process 11178 exited on signal 11" (req 0) 2020/10/27 04:40:23 [debug] 9918\#0: shmtx forced unlock
2020/10/27 04:40:23 [debug] 9918\#0: wake up, sigio 0
2020/10/27 04:40:23 [debug] 9918\#0: reap children
2020/10/27 04:40:23 [debug] 9918\#0: child: 0 11178 e:0 t:1 d:0 r:1 j:0
'
068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) ==11210== Invalid read of size 4
==11210== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11210== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11210== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11210== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11210== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11210== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11210== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11210== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11210== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11210== by 0x8062D5B: main (nginx.c:385)
==11210== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11210==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) ==11210==
==11210== Process terminating with default action of signal 11 (SIGSEGV)
==11210== Access not within mapped region at address 0x0
==11210== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11210== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11210== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11210== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11210== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11210== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11210== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11210== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11210== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11210== by 0x8062D5B: main (nginx.c:385)
==11210== If you believe this happened as a result of a stack
==11210== overflow in your program's main thread (unlikely but
==11210== possible), you can try to increase the size of the
==11210== main thread stack using the --main-stacksize= flag.
==11210== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:40:27 [alert] 9918\#0: worker process 11210 exited on signal 11" (req 0) 2020/10/27 04:40:27 [debug] 9918\#0: shmtx forced unlock
2020/10/27 04:40:27 [debug] 9918\#0: wake up, sigio 0
2020/10/27 04:40:27 [debug] 9918\#0: reap children
2020/10/27 04:40:27 [debug] 9918\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:40:27 [debug] 9918\#0: child: 1 11210 e:0 t:1 d:0 r:1 j:0
'
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() ==11242== Invalid read of size 4
==11242== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11242== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11242== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11242== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11242== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11242== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11242== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11242== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11242== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11242== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11242== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11242== by 0x8062D5B: main (nginx.c:385)
==11242== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11242==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() ==11242==
==11242== Process terminating with default action of signal 11 (SIGSEGV)
==11242== Access not within mapped region at address 0x0
==11242== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11242== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11242== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11242== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11242== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11242== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11242== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11242== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11242== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11242== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11242== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11242== by 0x8062D5B: main (nginx.c:385)
==11242== If you believe this happened as a result of a stack
==11242== overflow in your program's main thread (unlikely but
==11242== possible), you can try to increase the size of the
==11242== main thread stack using the --main-stacksize= flag.
==11242== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool ==11274== Invalid read of size 4
==11274== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11274== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11274== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11274== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11274== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11274== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11274== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11274== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11274== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11274== by 0x8062D5B: main (nginx.c:385)
==11274== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11274==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool ==11274==
==11274== Process terminating with default action of signal 11 (SIGSEGV)
==11274== Access not within mapped region at address 0x0
==11274== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11274== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11274== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11274== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11274== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11274== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11274== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11274== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11274== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11274== by 0x8062D5B: main (nginx.c:385)
==11274== If you believe this happened as a result of a stack
==11274== overflow in your program's main thread (unlikely but
==11274== possible), you can try to increase the size of the
==11274== main thread stack using the --main-stacksize= flag.
==11274== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue ==11306== Invalid read of size 4
==11306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11306== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11306== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11306== by 0x8062D5B: main (nginx.c:385)
==11306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue ==11306==
==11306== Process terminating with default action of signal 11 (SIGSEGV)
==11306== Access not within mapped region at address 0x0
==11306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11306== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11306== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11306== by 0x8062D5B: main (nginx.c:385)
==11306== If you believe this happened as a result of a stack
==11306== overflow in your program's main thread (unlikely but
==11306== possible), you can try to increase the size of the
==11306== main thread stack using the --main-stacksize= flag.
==11306== The main thread stack size used in this run was 8388608.

068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
069-null.t TEST 3: output ngx.null in a table - Can't connect to 127.0.0.1:1984: Connection refused ==11335== Invalid read of size 4
==11335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11335== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11335== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11335== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11335== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11335== by 0x8062D5B: main (nginx.c:385)
==11335== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11335==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 3: output ngx.null in a table - Can't connect to 127.0.0.1:1984: Connection refused ==11335==
==11335== Process terminating with default action of signal 11 (SIGSEGV)
==11335== Access not within mapped region at address 0x0
==11335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11335== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11335== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11335== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11335== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11335== by 0x8062D5B: main (nginx.c:385)
==11335== If you believe this happened as a result of a stack
==11335== overflow in your program's main thread (unlikely but
==11335== possible), you can try to increase the size of the
==11335== main thread stack using the --main-stacksize= flag.
==11335== The main thread stack size used in this run was 8388608.

069-null.t TEST 3: output ngx.null in a table - status code ok got: ''
expected: '200'
069-null.t TEST 3: output ngx.null in a table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ngx.null: null
'
069-null.t TEST 3: output ngx.null in a table - Can't connect to 127.0.0.1:1984: Connection refused ==11336== Invalid read of size 4
==11336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11336== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11336== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11336== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11336== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11336== by 0x8062D5B: main (nginx.c:385)
==11336== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11336==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 3: output ngx.null in a table - Can't connect to 127.0.0.1:1984: Connection refused ==11336==
==11336== Process terminating with default action of signal 11 (SIGSEGV)
==11336== Access not within mapped region at address 0x0
==11336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11336== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11336== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11336== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11336== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11336== by 0x8062D5B: main (nginx.c:385)
==11336== If you believe this happened as a result of a stack
==11336== overflow in your program's main thread (unlikely but
==11336== possible), you can try to increase the size of the
==11336== main thread stack using the --main-stacksize= flag.
==11336== The main thread stack size used in this run was 8388608.

069-null.t TEST 3: output ngx.null in a table - status code ok got: ''
expected: '200'
069-null.t TEST 3: output ngx.null in a table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ngx.null: null
'
069-null.t TEST 4: log ngx.null ==11348== Invalid read of size 4
==11348== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11348== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11348== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11348== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11348== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11348== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11348== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11348== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11348== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11348== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11348== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11348== by 0x8062D5B: main (nginx.c:385)
==11348== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11348==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 4: log ngx.null ==11348==
==11348== Process terminating with default action of signal 11 (SIGSEGV)
==11348== Access not within mapped region at address 0x0
==11348== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11348== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11348== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11348== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11348== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11348== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11348== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11348== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11348== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11348== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11348== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11348== by 0x8062D5B: main (nginx.c:385)
==11348== If you believe this happened as a result of a stack
==11348== overflow in your program's main thread (unlikely but
==11348== possible), you can try to increase the size of the
==11348== main thread stack using the --main-stacksize= flag.
==11348== The main thread stack size used in this run was 8388608.

069-null.t TEST 4: log ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 4: log ngx.null - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
069-null.t TEST 4: log ngx.null ==11369== Invalid read of size 4
==11369== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11369== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11369== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11369== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11369== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11369== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11369== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11369== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11369== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11369== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11369== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11369== by 0x8062D5B: main (nginx.c:385)
==11369== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11369==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 4: log ngx.null ==11369==
==11369== Process terminating with default action of signal 11 (SIGSEGV)
==11369== Access not within mapped region at address 0x0
==11369== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11369== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11369== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11369== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11369== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11369== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11369== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11369== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11369== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11369== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11369== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11369== by 0x8062D5B: main (nginx.c:385)
==11369== If you believe this happened as a result of a stack
==11369== overflow in your program's main thread (unlikely but
==11369== possible), you can try to increase the size of the
==11369== main thread stack using the --main-stacksize= flag.
==11369== The main thread stack size used in this run was 8388608.

069-null.t TEST 4: log ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 4: log ngx.null - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
069-null.t TEST 1: compare ngx.null with cjson.null ==11381== Invalid read of size 4
==11381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11381== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11381== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11381== by 0x8062D5B: main (nginx.c:385)
==11381== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11381==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 1: compare ngx.null with cjson.null ==11381==
==11381== Process terminating with default action of signal 11 (SIGSEGV)
==11381== Access not within mapped region at address 0x0
==11381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11381== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11381== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11381== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11381== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11381== by 0x8062D5B: main (nginx.c:385)
==11381== If you believe this happened as a result of a stack
==11381== overflow in your program's main thread (unlikely but
==11381== possible), you can try to increase the size of the
==11381== main thread stack using the --main-stacksize= flag.
==11381== The main thread stack size used in this run was 8388608.

069-null.t TEST 1: compare ngx.null with cjson.null - status code ok got: ''
expected: '200'
069-null.t TEST 1: compare ngx.null with cjson.null - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true
-null
'
069-null.t TEST 1: compare ngx.null with cjson.null ==11402== Invalid read of size 4
==11402== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11402== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11402== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11402== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11402== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11402== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11402== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11402== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11402== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11402== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11402== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11402== by 0x8062D5B: main (nginx.c:385)
==11402== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11402==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 1: compare ngx.null with cjson.null ==11402==
==11402== Process terminating with default action of signal 11 (SIGSEGV)
==11402== Access not within mapped region at address 0x0
==11402== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11402== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11402== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11402== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11402== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11402== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11402== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11402== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11402== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11402== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11402== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11402== by 0x8062D5B: main (nginx.c:385)
==11402== If you believe this happened as a result of a stack
==11402== overflow in your program's main thread (unlikely but
==11402== possible), you can try to increase the size of the
==11402== main thread stack using the --main-stacksize= flag.
==11402== The main thread stack size used in this run was 8388608.

069-null.t TEST 1: compare ngx.null with cjson.null - status code ok got: ''
expected: '200'
069-null.t TEST 1: compare ngx.null with cjson.null - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-true
-null
'
069-null.t TEST 2: output ngx.null ==11414== Invalid read of size 4
==11414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11414== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11414== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11414== by 0x8062D5B: main (nginx.c:385)
==11414== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11414==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 2: output ngx.null ==11414==
==11414== Process terminating with default action of signal 11 (SIGSEGV)
==11414== Access not within mapped region at address 0x0
==11414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11414== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11414== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11414== by 0x8062D5B: main (nginx.c:385)
==11414== If you believe this happened as a result of a stack
==11414== overflow in your program's main thread (unlikely but
==11414== possible), you can try to increase the size of the
==11414== main thread stack using the --main-stacksize= flag.
==11414== The main thread stack size used in this run was 8388608.

069-null.t TEST 2: output ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 2: output ngx.null - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ngx.null: null
'
069-null.t TEST 2: output ngx.null ==11435== Invalid read of size 4
==11435== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11435== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11435== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11435== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11435== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11435== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11435== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11435== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11435== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11435== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11435== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11435== by 0x8062D5B: main (nginx.c:385)
==11435== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11435==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
069-null.t TEST 2: output ngx.null ==11435==
==11435== Process terminating with default action of signal 11 (SIGSEGV)
==11435== Access not within mapped region at address 0x0
==11435== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11435== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11435== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11435== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11435== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11435== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11435== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11435== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11435== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11435== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11435== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11435== by 0x8062D5B: main (nginx.c:385)
==11435== If you believe this happened as a result of a stack
==11435== overflow in your program's main thread (unlikely but
==11435== possible), you can try to increase the size of the
==11435== main thread stack using the --main-stacksize= flag.
==11435== The main thread stack size used in this run was 8388608.

069-null.t TEST 2: output ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 2: output ngx.null - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ngx.null: null
'
071-idle-socket.t TEST 2: read timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==11542== Invalid read of size 4
==11542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11542== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11542== by 0x8062D5B: main (nginx.c:385)
==11542== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11542==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 2: read timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==11542==
==11542== Process terminating with default action of signal 11 (SIGSEGV)
==11542== Access not within mapped region at address 0x0
==11542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11542== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11542== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11542== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11542== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11542== by 0x8062D5B: main (nginx.c:385)
==11542== If you believe this happened as a result of a stack
==11542== overflow in your program's main thread (unlikely but
==11542== possible), you can try to increase the size of the
==11542== main thread stack using the --main-stacksize= flag.
==11542== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 2: read timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-request sent again: 11
-close: 1 nil
'
071-idle-socket.t TEST 2: read timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==11543== Invalid read of size 4
==11543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11543== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11543== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11543== by 0x8062D5B: main (nginx.c:385)
==11543== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11543==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 2: read timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==11543==
==11543== Process terminating with default action of signal 11 (SIGSEGV)
==11543== Access not within mapped region at address 0x0
==11543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11543== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11543== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11543== by 0x8062D5B: main (nginx.c:385)
==11543== If you believe this happened as a result of a stack
==11543== overflow in your program's main thread (unlikely but
==11543== possible), you can try to increase the size of the
==11543== main thread stack using the --main-stacksize= flag.
==11543== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 2: read timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-request sent again: 11
-close: 1 nil
'
071-idle-socket.t TEST 3: connect timer cleared in time ==11555== Invalid read of size 4
==11555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11555== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11555== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11555== by 0x8062D5B: main (nginx.c:385)
==11555== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11555==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 3: connect timer cleared in time ==11555==
==11555== Process terminating with default action of signal 11 (SIGSEGV)
==11555== Access not within mapped region at address 0x0
==11555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11555== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11555== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11555== by 0x8062D5B: main (nginx.c:385)
==11555== If you believe this happened as a result of a stack
==11555== overflow in your program's main thread (unlikely but
==11555== possible), you can try to increase the size of the
==11555== main thread stack using the --main-stacksize= flag.
==11555== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 3: connect timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 3: connect timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 11
-close: 1 nil
'
071-idle-socket.t TEST 3: connect timer cleared in time ==11576== Invalid read of size 4
==11576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11576== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11576== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11576== by 0x8062D5B: main (nginx.c:385)
==11576== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11576==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 3: connect timer cleared in time ==11576==
==11576== Process terminating with default action of signal 11 (SIGSEGV)
==11576== Access not within mapped region at address 0x0
==11576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11576== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11576== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11576== by 0x8062D5B: main (nginx.c:385)
==11576== If you believe this happened as a result of a stack
==11576== overflow in your program's main thread (unlikely but
==11576== possible), you can try to increase the size of the
==11576== main thread stack using the --main-stacksize= flag.
==11576== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 3: connect timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 3: connect timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 11
-close: 1 nil
'
071-idle-socket.t TEST 1: read events come when socket is idle ==11588== Invalid read of size 4
==11588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11588== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11588== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11588== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11588== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11588== by 0x8062D5B: main (nginx.c:385)
==11588== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11588==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 1: read events come when socket is idle ==11588==
==11588== Process terminating with default action of signal 11 (SIGSEGV)
==11588== Access not within mapped region at address 0x0
==11588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11588== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11588== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11588== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11588== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11588== by 0x8062D5B: main (nginx.c:385)
==11588== If you believe this happened as a result of a stack
==11588== overflow in your program's main thread (unlikely but
==11588== possible), you can try to increase the size of the
==11588== main thread stack using the --main-stacksize= flag.
==11588== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 1: read events come when socket is idle - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 1: read events come when socket is idle - response_body - response is expected (repeated req 0, req 0) @@ -1,15 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Transfer-Encoding: chunked
-Connection: close
-
-6
-2nd part: [6
-barbar
-0
-
-]
-close: 1 nil
'
071-idle-socket.t TEST 1: read events come when socket is idle ==11609== Invalid read of size 4
==11609== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11609== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11609== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11609== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11609== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11609== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11609== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11609== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11609== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11609== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11609== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11609== by 0x8062D5B: main (nginx.c:385)
==11609== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11609==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 1: read events come when socket is idle ==11609==
==11609== Process terminating with default action of signal 11 (SIGSEGV)
==11609== Access not within mapped region at address 0x0
==11609== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11609== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11609== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11609== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11609== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11609== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11609== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11609== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11609== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11609== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11609== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11609== by 0x8062D5B: main (nginx.c:385)
==11609== If you believe this happened as a result of a stack
==11609== overflow in your program's main thread (unlikely but
==11609== possible), you can try to increase the size of the
==11609== main thread stack using the --main-stacksize= flag.
==11609== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 1: read events come when socket is idle - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 1: read events come when socket is idle - response_body - response is expected (repeated req 1, req 0) @@ -1,15 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Transfer-Encoding: chunked
-Connection: close
-
-6
-2nd part: [6
-barbar
-0
-
-]
-close: 1 nil
'
071-idle-socket.t TEST 4: send timer cleared in time ==11621== Invalid read of size 4
==11621== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11621== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11621== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11621== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11621== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11621== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11621== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11621== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11621== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11621== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11621== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11621== by 0x8062D5B: main (nginx.c:385)
==11621== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11621==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 4: send timer cleared in time ==11621==
==11621== Process terminating with default action of signal 11 (SIGSEGV)
==11621== Access not within mapped region at address 0x0
==11621== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11621== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11621== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11621== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11621== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11621== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11621== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11621== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11621== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11621== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11621== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11621== by 0x8062D5B: main (nginx.c:385)
==11621== If you believe this happened as a result of a stack
==11621== overflow in your program's main thread (unlikely but
==11621== possible), you can try to increase the size of the
==11621== main thread stack using the --main-stacksize= flag.
==11621== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 4: send timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 4: send timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
071-idle-socket.t TEST 4: send timer cleared in time ==11642== Invalid read of size 4
==11642== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11642== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11642== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11642== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11642== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11642== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11642== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11642== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11642== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11642== by 0x8062D5B: main (nginx.c:385)
==11642== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11642==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 4: send timer cleared in time ==11642==
==11642== Process terminating with default action of signal 11 (SIGSEGV)
==11642== Access not within mapped region at address 0x0
==11642== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11642== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11642== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11642== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11642== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11642== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11642== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11642== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11642== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11642== by 0x8062D5B: main (nginx.c:385)
==11642== If you believe this happened as a result of a stack
==11642== overflow in your program's main thread (unlikely but
==11642== possible), you can try to increase the size of the
==11642== main thread stack using the --main-stacksize= flag.
==11642== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 4: send timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 4: send timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data ==11654== Invalid read of size 4
==11654== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11654== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11654== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11654== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11654== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11654== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11654== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11654== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11654== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11654== by 0x8062D5B: main (nginx.c:385)
==11654== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11654==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data ==11654==
==11654== Process terminating with default action of signal 11 (SIGSEGV)
==11654== Access not within mapped region at address 0x0
==11654== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11654== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11654== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11654== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11654== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11654== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11654== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11654== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11654== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11654== by 0x8062D5B: main (nginx.c:385)
==11654== If you believe this happened as a result of a stack
==11654== overflow in your program's main thread (unlikely but
==11654== possible), you can try to increase the size of the
==11654== main thread stack using the --main-stacksize= flag.
==11654== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-read: O
-failed to set keepalive: unread data in buffer
'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data ==11675== Invalid read of size 4
==11675== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11675== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11675== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11675== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11675== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11675== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11675== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11675== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11675== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11675== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11675== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11675== by 0x8062D5B: main (nginx.c:385)
==11675== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11675==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data ==11675==
==11675== Process terminating with default action of signal 11 (SIGSEGV)
==11675== Access not within mapped region at address 0x0
==11675== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11675== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11675== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11675== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11675== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11675== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11675== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11675== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11675== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11675== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11675== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11675== by 0x8062D5B: main (nginx.c:385)
==11675== If you believe this happened as a result of a stack
==11675== overflow in your program's main thread (unlikely but
==11675== possible), you can try to increase the size of the
==11675== main thread stack using the --main-stacksize= flag.
==11675== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-read: O
-failed to set keepalive: unread data in buffer
'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data ==11687== Invalid read of size 4
==11687== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11687== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11687== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11687== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11687== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11687== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11687== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11687== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11687== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11687== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11687== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11687== by 0x8062D5B: main (nginx.c:385)
==11687== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11687==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data ==11687==
==11687== Process terminating with default action of signal 11 (SIGSEGV)
==11687== Access not within mapped region at address 0x0
==11687== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11687== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11687== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11687== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11687== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11687== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11687== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11687== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11687== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11687== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11687== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11687== by 0x8062D5B: main (nginx.c:385)
==11687== If you believe this happened as a result of a stack
==11687== overflow in your program's main thread (unlikely but
==11687== possible), you can try to increase the size of the
==11687== main thread stack using the --main-stacksize= flag.
==11687== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - response_body_like - response is expected () ''
doesn't match '(?^:connected: 1
request sent: 57
read: HTTP/1\.1 200 OK\r
Server: nginx\r
Content-Type: text/plain\r
Transfer-Encoding: chunked\r
Connection: close\r
\r
6\r
failed to set keepalive: (?:unread data in buffer|connection in dubious state)
)'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data ==11708== Invalid read of size 4
==11708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11708== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11708== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11708== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11708== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11708== by 0x8062D5B: main (nginx.c:385)
==11708== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11708==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data ==11708==
==11708== Process terminating with default action of signal 11 (SIGSEGV)
==11708== Access not within mapped region at address 0x0
==11708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11708== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11708== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11708== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11708== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11708== by 0x8062D5B: main (nginx.c:385)
==11708== If you believe this happened as a result of a stack
==11708== overflow in your program's main thread (unlikely but
==11708== possible), you can try to increase the size of the
==11708== main thread stack using the --main-stacksize= flag.
==11708== The main thread stack size used in this run was 8388608.

071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - response_body_like - response is expected () ''
doesn't match '(?^:connected: 1
request sent: 57
read: HTTP/1\.1 200 OK\r
Server: nginx\r
Content-Type: text/plain\r
Transfer-Encoding: chunked\r
Connection: close\r
\r
6\r
failed to set keepalive: (?:unread data in buffer|connection in dubious state)
)'
073-backtrace.t TEST 2: error(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==11717== Invalid read of size 4
==11717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11717== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11717== by 0x8062D5B: main (nginx.c:385)
==11717== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11717==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 2: error(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==11717==
==11717== Process terminating with default action of signal 11 (SIGSEGV)
==11717== Access not within mapped region at address 0x0
==11717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11717== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11717== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11717== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11717== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11717== by 0x8062D5B: main (nginx.c:385)
==11717== If you believe this happened as a result of a stack
==11717== overflow in your program's main thread (unlikely but
==11717== possible), you can try to increase the size of the
==11717== main thread stack using the --main-stacksize= flag.
==11717== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 2: error(nil) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 2: error(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==11718== Invalid read of size 4
==11718== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11718== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11718== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11718== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11718== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11718== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11718== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11718== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11718== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11718== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11718== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11718== by 0x8062D5B: main (nginx.c:385)
==11718== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11718==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 2: error(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==11718==
==11718== Process terminating with default action of signal 11 (SIGSEGV)
==11718== Access not within mapped region at address 0x0
==11718== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11718== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11718== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11718== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11718== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11718== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11718== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11718== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11718== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11718== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11718== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11718== by 0x8062D5B: main (nginx.c:385)
==11718== If you believe this happened as a result of a stack
==11718== overflow in your program's main thread (unlikely but
==11718== possible), you can try to increase the size of the
==11718== main thread stack using the --main-stacksize= flag.
==11718== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 2: error(nil) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) ==11730== Invalid read of size 4
==11730== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11730== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11730== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11730== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11730== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11730== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11730== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11730== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11730== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11730== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11730== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11730== by 0x8062D5B: main (nginx.c:385)
==11730== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11730==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) ==11730==
==11730== Process terminating with default action of signal 11 (SIGSEGV)
==11730== Access not within mapped region at address 0x0
==11730== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11730== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11730== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11730== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11730== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11730== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11730== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11730== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11730== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11730== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11730== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11730== by 0x8062D5B: main (nginx.c:385)
==11730== If you believe this happened as a result of a stack
==11730== overflow in your program's main thread (unlikely but
==11730== possible), you can try to increase the size of the
==11730== main thread stack using the --main-stacksize= flag.
==11730== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) ==11751== Invalid read of size 4
==11751== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11751== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11751== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11751== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11751== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11751== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11751== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11751== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11751== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11751== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11751== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11751== by 0x8062D5B: main (nginx.c:385)
==11751== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11751==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) ==11751==
==11751== Process terminating with default action of signal 11 (SIGSEGV)
==11751== Access not within mapped region at address 0x0
==11751== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11751== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11751== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11751== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11751== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11751== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11751== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11751== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11751== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11751== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11751== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11751== by 0x8062D5B: main (nginx.c:385)
==11751== If you believe this happened as a result of a stack
==11751== overflow in your program's main thread (unlikely but
==11751== possible), you can try to increase the size of the
==11751== main thread stack using the --main-stacksize= flag.
==11751== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) ==11763== Invalid read of size 4
==11763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11763== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11763== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11763== by 0x8062D5B: main (nginx.c:385)
==11763== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11763==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) ==11763==
==11763== Process terminating with default action of signal 11 (SIGSEGV)
==11763== Access not within mapped region at address 0x0
==11763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11763== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11763== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11763== by 0x8062D5B: main (nginx.c:385)
==11763== If you believe this happened as a result of a stack
==11763== overflow in your program's main thread (unlikely but
==11763== possible), you can try to increase the size of the
==11763== main thread stack using the --main-stacksize= flag.
==11763== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) ==11784== Invalid read of size 4
==11784== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11784== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11784== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11784== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11784== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11784== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11784== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11784== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11784== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11784== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11784== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11784== by 0x8062D5B: main (nginx.c:385)
==11784== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11784==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) ==11784==
==11784== Process terminating with default action of signal 11 (SIGSEGV)
==11784== Access not within mapped region at address 0x0
==11784== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11784== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11784== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11784== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11784== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11784== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11784== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11784== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11784== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11784== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11784== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11784== by 0x8062D5B: main (nginx.c:385)
==11784== If you believe this happened as a result of a stack
==11784== overflow in your program's main thread (unlikely but
==11784== possible), you can try to increase the size of the
==11784== main thread stack using the --main-stacksize= flag.
==11784== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 1: sanity ==11796== Invalid read of size 4
==11796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11796== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11796== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11796== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11796== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11796== by 0x8062D5B: main (nginx.c:385)
==11796== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11796==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 1: sanity ==11796==
==11796== Process terminating with default action of signal 11 (SIGSEGV)
==11796== Access not within mapped region at address 0x0
==11796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11796== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11796== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11796== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11796== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11796== by 0x8062D5B: main (nginx.c:385)
==11796== If you believe this happened as a result of a stack
==11796== overflow in your program's main thread (unlikely but
==11796== possible), you can try to increase the size of the
==11796== main thread stack using the --main-stacksize= flag.
==11796== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 1: sanity - status code ok got: ''
expected: '200'
073-backtrace.t TEST 1: sanity ==11817== Invalid read of size 4
==11817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11817== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11817== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11817== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11817== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11817== by 0x8062D5B: main (nginx.c:385)
==11817== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11817==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
073-backtrace.t TEST 1: sanity ==11817==
==11817== Process terminating with default action of signal 11 (SIGSEGV)
==11817== Access not within mapped region at address 0x0
==11817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11817== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11817== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11817== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11817== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11817== by 0x8062D5B: main (nginx.c:385)
==11817== If you believe this happened as a result of a stack
==11817== overflow in your program's main thread (unlikely but
==11817== possible), you can try to increase the size of the
==11817== main thread stack using the --main-stacksize= flag.
==11817== The main thread stack size used in this run was 8388608.

073-backtrace.t TEST 1: sanity - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 2: ${prefix} - Can't connect to 127.0.0.1:1984: Connection refused ==11826== Invalid read of size 4
==11826== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11826== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11826== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11826== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11826== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11826== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11826== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11826== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11826== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11826== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11826== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11826== by 0x8062D5B: main (nginx.c:385)
==11826== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11826==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
074-prefix-var.t TEST 2: ${prefix} - Can't connect to 127.0.0.1:1984: Connection refused ==11826==
==11826== Process terminating with default action of signal 11 (SIGSEGV)
==11826== Access not within mapped region at address 0x0
==11826== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11826== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11826== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11826== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11826== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11826== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11826== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11826== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11826== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11826== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11826== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11826== by 0x8062D5B: main (nginx.c:385)
==11826== If you believe this happened as a result of a stack
==11826== overflow in your program's main thread (unlikely but
==11826== possible), you can try to increase the size of the
==11826== main thread stack using the --main-stacksize= flag.
==11826== The main thread stack size used in this run was 8388608.

074-prefix-var.t TEST 2: ${prefix} - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 2: ${prefix} - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
074-prefix-var.t TEST 2: ${prefix} - Can't connect to 127.0.0.1:1984: Connection refused ==11827== Invalid read of size 4
==11827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11827== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11827== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11827== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11827== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11827== by 0x8062D5B: main (nginx.c:385)
==11827== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11827==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
074-prefix-var.t TEST 2: ${prefix} - Can't connect to 127.0.0.1:1984: Connection refused ==11827==
==11827== Process terminating with default action of signal 11 (SIGSEGV)
==11827== Access not within mapped region at address 0x0
==11827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11827== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11827== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11827== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11827== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11827== by 0x8062D5B: main (nginx.c:385)
==11827== If you believe this happened as a result of a stack
==11827== overflow in your program's main thread (unlikely but
==11827== possible), you can try to increase the size of the
==11827== main thread stack using the --main-stacksize= flag.
==11827== The main thread stack size used in this run was 8388608.

074-prefix-var.t TEST 2: ${prefix} - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 2: ${prefix} - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
074-prefix-var.t TEST 1: $prefix ==11840== Invalid read of size 4
==11840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11840== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11840== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11840== by 0x8062D5B: main (nginx.c:385)
==11840== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11840==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
074-prefix-var.t TEST 1: $prefix ==11840==
==11840== Process terminating with default action of signal 11 (SIGSEGV)
==11840== Access not within mapped region at address 0x0
==11840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11840== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11840== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11840== by 0x8062D5B: main (nginx.c:385)
==11840== If you believe this happened as a result of a stack
==11840== overflow in your program's main thread (unlikely but
==11840== possible), you can try to increase the size of the
==11840== main thread stack using the --main-stacksize= flag.
==11840== The main thread stack size used in this run was 8388608.

074-prefix-var.t TEST 1: $prefix - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 1: $prefix - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
074-prefix-var.t TEST 1: $prefix ==11861== Invalid read of size 4
==11861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11861== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11861== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11861== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11861== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11861== by 0x8062D5B: main (nginx.c:385)
==11861== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11861==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
074-prefix-var.t TEST 1: $prefix ==11861==
==11861== Process terminating with default action of signal 11 (SIGSEGV)
==11861== Access not within mapped region at address 0x0
==11861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11861== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11861== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11861== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11861== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11861== by 0x8062D5B: main (nginx.c:385)
==11861== If you believe this happened as a result of a stack
==11861== overflow in your program's main thread (unlikely but
==11861== possible), you can try to increase the size of the
==11861== main thread stack using the --main-stacksize= flag.
==11861== The main thread stack size used in this run was 8388608.

074-prefix-var.t TEST 1: $prefix - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 1: $prefix - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 13: no ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==11871== Invalid read of size 4
==11871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11871== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11871== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11871== by 0x8062D5B: main (nginx.c:385)
==11871== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11871==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 13: no ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==11871==
==11871== Process terminating with default action of signal 11 (SIGSEGV)
==11871== Access not within mapped region at address 0x0
==11871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11871== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11871== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11871== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11871== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==11871== by 0x8062D5B: main (nginx.c:385)
==11871== If you believe this happened as a result of a stack
==11871== overflow in your program's main thread (unlikely but
==11871== possible), you can try to increase the size of the
==11871== main thread stack using the --main-stacksize= flag.
==11871== The main thread stack size used in this run was 8388608.

075-logby.t TEST 13: no ngx.eof - status code ok got: ''
expected: '200'
075-logby.t TEST 13: no ngx.eof - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 13: no ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==11872== Invalid read of size 4
==11872== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11872== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11872== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11872== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11872== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11872== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11872== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11872== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11872== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11872== by 0x8062D5B: main (nginx.c:385)
==11872== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11872==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 13: no ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==11872==
==11872== Process terminating with default action of signal 11 (SIGSEGV)
==11872== Access not within mapped region at address 0x0
==11872== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11872== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11872== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11872== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11872== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11872== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11872== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11872== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11872== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11872== by 0x8062D5B: main (nginx.c:385)
==11872== If you believe this happened as a result of a stack
==11872== overflow in your program's main thread (unlikely but
==11872== possible), you can try to increase the size of the
==11872== main thread stack using the --main-stacksize= flag.
==11872== The main thread stack size used in this run was 8388608.

075-logby.t TEST 13: no ngx.eof - status code ok got: ''
expected: '200'
075-logby.t TEST 13: no ngx.eof - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 16: no ngx.socket.tcp() ==11884== Invalid read of size 4
==11884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11884== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11884== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11884== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11884== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11884== by 0x8062D5B: main (nginx.c:385)
==11884== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11884==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 16: no ngx.socket.tcp() ==11884==
==11884== Process terminating with default action of signal 11 (SIGSEGV)
==11884== Access not within mapped region at address 0x0
==11884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11884== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11884== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11884== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11884== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11884== by 0x8062D5B: main (nginx.c:385)
==11884== If you believe this happened as a result of a stack
==11884== overflow in your program's main thread (unlikely but
==11884== possible), you can try to increase the size of the
==11884== main thread stack using the --main-stacksize= flag.
==11884== The main thread stack size used in this run was 8388608.

075-logby.t TEST 16: no ngx.socket.tcp() - status code ok got: ''
expected: '200'
075-logby.t TEST 16: no ngx.socket.tcp() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 16: no ngx.socket.tcp() ==11905== Invalid read of size 4
==11905== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11905== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11905== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11905== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11905== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11905== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11905== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11905== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11905== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11905== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11905== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11905== by 0x8062D5B: main (nginx.c:385)
==11905== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11905==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 16: no ngx.socket.tcp() ==11905==
==11905== Process terminating with default action of signal 11 (SIGSEGV)
==11905== Access not within mapped region at address 0x0
==11905== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11905== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11905== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11905== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11905== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11905== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11905== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11905== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11905== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11905== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11905== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11905== by 0x8062D5B: main (nginx.c:385)
==11905== If you believe this happened as a result of a stack
==11905== overflow in your program's main thread (unlikely but
==11905== possible), you can try to increase the size of the
==11905== main thread stack using the --main-stacksize= flag.
==11905== The main thread stack size used in this run was 8388608.

075-logby.t TEST 16: no ngx.socket.tcp() - status code ok got: ''
expected: '200'
075-logby.t TEST 16: no ngx.socket.tcp() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 17: no ngx.socket.connect() ==11917== Invalid read of size 4
==11917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11917== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11917== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11917== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11917== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11917== by 0x8062D5B: main (nginx.c:385)
==11917== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11917==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 17: no ngx.socket.connect() ==11917==
==11917== Process terminating with default action of signal 11 (SIGSEGV)
==11917== Access not within mapped region at address 0x0
==11917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11917== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11917== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11917== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11917== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11917== by 0x8062D5B: main (nginx.c:385)
==11917== If you believe this happened as a result of a stack
==11917== overflow in your program's main thread (unlikely but
==11917== possible), you can try to increase the size of the
==11917== main thread stack using the --main-stacksize= flag.
==11917== The main thread stack size used in this run was 8388608.

075-logby.t TEST 17: no ngx.socket.connect() - status code ok got: ''
expected: '200'
075-logby.t TEST 17: no ngx.socket.connect() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 17: no ngx.socket.connect() ==11938== Invalid read of size 4
==11938== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11938== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11938== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11938== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11938== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11938== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11938== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11938== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11938== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11938== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11938== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11938== by 0x8062D5B: main (nginx.c:385)
==11938== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11938==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 17: no ngx.socket.connect() ==11938==
==11938== Process terminating with default action of signal 11 (SIGSEGV)
==11938== Access not within mapped region at address 0x0
==11938== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11938== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11938== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11938== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11938== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11938== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11938== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11938== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11938== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11938== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11938== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11938== by 0x8062D5B: main (nginx.c:385)
==11938== If you believe this happened as a result of a stack
==11938== overflow in your program's main thread (unlikely but
==11938== possible), you can try to increase the size of the
==11938== main thread stack using the --main-stacksize= flag.
==11938== The main thread stack size used in this run was 8388608.

075-logby.t TEST 17: no ngx.socket.connect() - status code ok got: ''
expected: '200'
075-logby.t TEST 17: no ngx.socket.connect() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 9: globals shared ==11950== Invalid read of size 4
==11950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11950== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11950== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11950== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11950== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11950== by 0x8062D5B: main (nginx.c:385)
==11950== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11950==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 9: globals shared ==11950==
==11950== Process terminating with default action of signal 11 (SIGSEGV)
==11950== Access not within mapped region at address 0x0
==11950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11950== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11950== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11950== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11950== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11950== by 0x8062D5B: main (nginx.c:385)
==11950== If you believe this happened as a result of a stack
==11950== overflow in your program's main thread (unlikely but
==11950== possible), you can try to increase the size of the
==11950== main thread stack using the --main-stacksize= flag.
==11950== The main thread stack size used in this run was 8388608.

075-logby.t TEST 9: globals shared - status code ok got: ''
expected: '200'
075-logby.t TEST 9: globals shared - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 9: globals shared ==11971== Invalid read of size 4
==11971== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11971== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11971== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11971== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11971== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11971== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11971== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11971== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11971== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11971== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11971== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11971== by 0x8062D5B: main (nginx.c:385)
==11971== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11971==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 9: globals shared ==11971==
==11971== Process terminating with default action of signal 11 (SIGSEGV)
==11971== Access not within mapped region at address 0x0
==11971== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11971== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11971== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11971== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11971== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11971== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11971== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11971== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11971== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11971== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==11971== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==11971== by 0x8062D5B: main (nginx.c:385)
==11971== If you believe this happened as a result of a stack
==11971== overflow in your program's main thread (unlikely but
==11971== possible), you can try to increase the size of the
==11971== main thread stack using the --main-stacksize= flag.
==11971== The main thread stack size used in this run was 8388608.

075-logby.t TEST 9: globals shared - status code ok got: ''
expected: '200'
075-logby.t TEST 9: globals shared - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 9: globals shared - grep_error_log_out (req 1) got: ""
length: 0
expected: "old foo: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 12: no ngx.flush ==11983== Invalid read of size 4
==11983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11983== by 0x8062D5B: main (nginx.c:385)
==11983== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11983==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 12: no ngx.flush ==11983==
==11983== Process terminating with default action of signal 11 (SIGSEGV)
==11983== Access not within mapped region at address 0x0
==11983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==11983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==11983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==11983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==11983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==11983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==11983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==11983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==11983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==11983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==11983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==11983== by 0x8062D5B: main (nginx.c:385)
==11983== If you believe this happened as a result of a stack
==11983== overflow in your program's main thread (unlikely but
==11983== possible), you can try to increase the size of the
==11983== main thread stack using the --main-stacksize= flag.
==11983== The main thread stack size used in this run was 8388608.

075-logby.t TEST 12: no ngx.flush - status code ok got: ''
expected: '200'
075-logby.t TEST 12: no ngx.flush - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 12: no ngx.flush ==12004== Invalid read of size 4
==12004== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12004== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12004== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12004== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12004== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12004== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12004== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12004== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12004== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12004== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12004== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12004== by 0x8062D5B: main (nginx.c:385)
==12004== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12004==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 12: no ngx.flush ==12004==
==12004== Process terminating with default action of signal 11 (SIGSEGV)
==12004== Access not within mapped region at address 0x0
==12004== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12004== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12004== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12004== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12004== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12004== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12004== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12004== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12004== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12004== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12004== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12004== by 0x8062D5B: main (nginx.c:385)
==12004== If you believe this happened as a result of a stack
==12004== overflow in your program's main thread (unlikely but
==12004== possible), you can try to increase the size of the
==12004== main thread stack using the --main-stacksize= flag.
==12004== The main thread stack size used in this run was 8388608.

075-logby.t TEST 12: no ngx.flush - status code ok got: ''
expected: '200'
075-logby.t TEST 12: no ngx.flush - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 3: log_by_lua_file & content_by_lua ==12016== Invalid read of size 4
==12016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12016== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12016== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12016== by 0x8062D5B: main (nginx.c:385)
==12016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 3: log_by_lua_file & content_by_lua ==12016==
==12016== Process terminating with default action of signal 11 (SIGSEGV)
==12016== Access not within mapped region at address 0x0
==12016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12016== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12016== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12016== by 0x8062D5B: main (nginx.c:385)
==12016== If you believe this happened as a result of a stack
==12016== overflow in your program's main thread (unlikely but
==12016== possible), you can try to increase the size of the
==12016== main thread stack using the --main-stacksize= flag.
==12016== The main thread stack size used in this run was 8388608.

075-logby.t TEST 3: log_by_lua_file & content_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 3: log_by_lua_file & content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "127.0.0.1\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 3: log_by_lua_file & content_by_lua ==12037== Invalid read of size 4
==12037== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12037== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12037== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12037== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12037== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12037== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12037== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12037== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12037== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12037== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12037== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12037== by 0x8062D5B: main (nginx.c:385)
==12037== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12037==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 3: log_by_lua_file & content_by_lua ==12037==
==12037== Process terminating with default action of signal 11 (SIGSEGV)
==12037== Access not within mapped region at address 0x0
==12037== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12037== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12037== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12037== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12037== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12037== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12037== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12037== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12037== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12037== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12037== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12037== by 0x8062D5B: main (nginx.c:385)
==12037== If you believe this happened as a result of a stack
==12037== overflow in your program's main thread (unlikely but
==12037== possible), you can try to increase the size of the
==12037== main thread stack using the --main-stacksize= flag.
==12037== The main thread stack size used in this run was 8388608.

075-logby.t TEST 3: log_by_lua_file & content_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 3: log_by_lua_file & content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "127.0.0.1\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 2: log_by_lua_file ==12050== Invalid read of size 4
==12050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12050== by 0x8062D5B: main (nginx.c:385)
==12050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 2: log_by_lua_file ==12050==
==12050== Process terminating with default action of signal 11 (SIGSEGV)
==12050== Access not within mapped region at address 0x0
==12050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12050== by 0x8062D5B: main (nginx.c:385)
==12050== If you believe this happened as a result of a stack
==12050== overflow in your program's main thread (unlikely but
==12050== possible), you can try to increase the size of the
==12050== main thread stack using the --main-stacksize= flag.
==12050== The main thread stack size used in this run was 8388608.

075-logby.t TEST 2: log_by_lua_file - status code ok got: ''
expected: '200'
075-logby.t TEST 2: log_by_lua_file - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 2: log_by_lua_file ==12071== Invalid read of size 4
==12071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12071== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12071== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12071== by 0x8062D5B: main (nginx.c:385)
==12071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 2: log_by_lua_file ==12071==
==12071== Process terminating with default action of signal 11 (SIGSEGV)
==12071== Access not within mapped region at address 0x0
==12071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12071== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12071== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12071== by 0x8062D5B: main (nginx.c:385)
==12071== If you believe this happened as a result of a stack
==12071== overflow in your program's main thread (unlikely but
==12071== possible), you can try to increase the size of the
==12071== main thread stack using the --main-stacksize= flag.
==12071== The main thread stack size used in this run was 8388608.

075-logby.t TEST 2: log_by_lua_file - status code ok got: ''
expected: '200'
075-logby.t TEST 2: log_by_lua_file - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 6: log_by_lua + shared dict ==12084== Invalid read of size 4
==12084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12084== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12084== by 0x8062D5B: main (nginx.c:385)
==12084== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12084==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 6: log_by_lua + shared dict ==12084==
==12084== Process terminating with default action of signal 11 (SIGSEGV)
==12084== Access not within mapped region at address 0x0
==12084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12084== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12084== by 0x8062D5B: main (nginx.c:385)
==12084== If you believe this happened as a result of a stack
==12084== overflow in your program's main thread (unlikely but
==12084== possible), you can try to increase the size of the
==12084== main thread stack using the --main-stacksize= flag.
==12084== The main thread stack size used in this run was 8388608.

075-logby.t TEST 6: log_by_lua + shared dict - status code ok got: ''
expected: '200'
075-logby.t TEST 6: log_by_lua + shared dict - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 6: log_by_lua + shared dict ==12105== Invalid read of size 4
==12105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12105== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12105== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12105== by 0x8062D5B: main (nginx.c:385)
==12105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 6: log_by_lua + shared dict ==12105==
==12105== Process terminating with default action of signal 11 (SIGSEGV)
==12105== Access not within mapped region at address 0x0
==12105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12105== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12105== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12105== by 0x8062D5B: main (nginx.c:385)
==12105== If you believe this happened as a result of a stack
==12105== overflow in your program's main thread (unlikely but
==12105== possible), you can try to increase the size of the
==12105== main thread stack using the --main-stacksize= flag.
==12105== The main thread stack size used in this run was 8388608.

075-logby.t TEST 6: log_by_lua + shared dict - status code ok got: ''
expected: '200'
075-logby.t TEST 6: log_by_lua + shared dict - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 20: log_by_lua runs before access logging (github issue #254) ==12117== Invalid read of size 4
==12117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12117== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12117== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12117== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12117== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12117== by 0x8062D5B: main (nginx.c:385)
==12117== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12117==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 20: log_by_lua runs before access logging (github issue #254) ==12117==
==12117== Process terminating with default action of signal 11 (SIGSEGV)
==12117== Access not within mapped region at address 0x0
==12117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12117== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12117== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12117== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12117== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12117== by 0x8062D5B: main (nginx.c:385)
==12117== If you believe this happened as a result of a stack
==12117== overflow in your program's main thread (unlikely but
==12117== possible), you can try to increase the size of the
==12117== main thread stack using the --main-stacksize= flag.
==12117== The main thread stack size used in this run was 8388608.

075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - status code ok got: ''
expected: '200'
075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 20: log_by_lua runs before access logging (github issue #254) ==12138== Invalid read of size 4
==12138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12138== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12138== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12138== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12138== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12138== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12138== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12138== by 0x8062D5B: main (nginx.c:385)
==12138== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12138==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 20: log_by_lua runs before access logging (github issue #254) ==12138==
==12138== Process terminating with default action of signal 11 (SIGSEGV)
==12138== Access not within mapped region at address 0x0
==12138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12138== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12138== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12138== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12138== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12138== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12138== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12138== by 0x8062D5B: main (nginx.c:385)
==12138== If you believe this happened as a result of a stack
==12138== overflow in your program's main thread (unlikely but
==12138== possible), you can try to increase the size of the
==12138== main thread stack using the --main-stacksize= flag.
==12138== The main thread stack size used in this run was 8388608.

075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - status code ok got: ''
expected: '200'
075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) ==12151== Invalid read of size 4
==12151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12151== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12151== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12151== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12151== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12151== by 0x8062D5B: main (nginx.c:385)
==12151== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12151==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) ==12151==
==12151== Process terminating with default action of signal 11 (SIGSEGV)
==12151== Access not within mapped region at address 0x0
==12151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12151== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12151== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12151== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12151== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12151== by 0x8062D5B: main (nginx.c:385)
==12151== If you believe this happened as a result of a stack
==12151== overflow in your program's main thread (unlikely but
==12151== possible), you can try to increase the size of the
==12151== main thread stack using the --main-stacksize= flag.
==12151== The main thread stack size used in this run was 8388608.

075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - status code ok got: ''
expected: '200'
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) ==12172== Invalid read of size 4
==12172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12172== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12172== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12172== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12172== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12172== by 0x8062D5B: main (nginx.c:385)
==12172== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12172==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) ==12172==
==12172== Process terminating with default action of signal 11 (SIGSEGV)
==12172== Access not within mapped region at address 0x0
==12172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12172== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12172== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12172== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12172== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12172== by 0x8062D5B: main (nginx.c:385)
==12172== If you believe this happened as a result of a stack
==12172== overflow in your program's main thread (unlikely but
==12172== possible), you can try to increase the size of the
==12172== main thread stack using the --main-stacksize= flag.
==12172== The main thread stack size used in this run was 8388608.

075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - status code ok got: ''
expected: '200'
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) ==12185== Invalid read of size 4
==12185== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12185== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12185== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12185== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12185== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12185== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12185== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12185== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12185== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12185== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12185== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12185== by 0x8062D5B: main (nginx.c:385)
==12185== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12185==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) ==12185==
==12185== Process terminating with default action of signal 11 (SIGSEGV)
==12185== Access not within mapped region at address 0x0
==12185== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12185== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12185== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12185== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12185== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12185== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12185== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12185== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12185== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12185== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12185== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12185== by 0x8062D5B: main (nginx.c:385)
==12185== If you believe this happened as a result of a stack
==12185== overflow in your program's main thread (unlikely but
==12185== possible), you can try to increase the size of the
==12185== main thread stack using the --main-stacksize= flag.
==12185== The main thread stack size used in this run was 8388608.

075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - status code ok got: ''
expected: '200'
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) ==12206== Invalid read of size 4
==12206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12206== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12206== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12206== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12206== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12206== by 0x8062D5B: main (nginx.c:385)
==12206== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12206==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) ==12206==
==12206== Process terminating with default action of signal 11 (SIGSEGV)
==12206== Access not within mapped region at address 0x0
==12206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12206== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12206== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12206== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12206== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12206== by 0x8062D5B: main (nginx.c:385)
==12206== If you believe this happened as a result of a stack
==12206== overflow in your program's main thread (unlikely but
==12206== possible), you can try to increase the size of the
==12206== main thread stack using the --main-stacksize= flag.
==12206== The main thread stack size used in this run was 8388608.

075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - status code ok got: ''
expected: '200'
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 10: no ngx.print ==12218== Invalid read of size 4
==12218== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12218== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12218== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12218== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12218== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12218== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12218== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12218== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12218== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12218== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12218== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12218== by 0x8062D5B: main (nginx.c:385)
==12218== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12218==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 10: no ngx.print ==12218==
==12218== Process terminating with default action of signal 11 (SIGSEGV)
==12218== Access not within mapped region at address 0x0
==12218== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12218== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12218== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12218== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12218== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12218== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12218== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12218== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12218== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12218== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12218== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12218== by 0x8062D5B: main (nginx.c:385)
==12218== If you believe this happened as a result of a stack
==12218== overflow in your program's main thread (unlikely but
==12218== possible), you can try to increase the size of the
==12218== main thread stack using the --main-stacksize= flag.
==12218== The main thread stack size used in this run was 8388608.

075-logby.t TEST 10: no ngx.print - status code ok got: ''
expected: '200'
075-logby.t TEST 10: no ngx.print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 10: no ngx.print ==12239== Invalid read of size 4
==12239== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12239== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12239== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12239== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12239== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12239== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12239== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12239== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12239== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12239== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12239== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12239== by 0x8062D5B: main (nginx.c:385)
==12239== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12239==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 10: no ngx.print ==12239==
==12239== Process terminating with default action of signal 11 (SIGSEGV)
==12239== Access not within mapped region at address 0x0
==12239== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12239== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12239== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12239== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12239== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12239== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12239== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12239== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12239== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12239== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12239== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12239== by 0x8062D5B: main (nginx.c:385)
==12239== If you believe this happened as a result of a stack
==12239== overflow in your program's main thread (unlikely but
==12239== possible), you can try to increase the size of the
==12239== main thread stack using the --main-stacksize= flag.
==12239== The main thread stack size used in this run was 8388608.

075-logby.t TEST 10: no ngx.print - status code ok got: ''
expected: '200'
075-logby.t TEST 10: no ngx.print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 11: no ngx.say ==12251== Invalid read of size 4
==12251== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12251== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12251== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12251== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12251== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12251== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12251== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12251== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12251== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12251== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12251== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12251== by 0x8062D5B: main (nginx.c:385)
==12251== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12251==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 11: no ngx.say ==12251==
==12251== Process terminating with default action of signal 11 (SIGSEGV)
==12251== Access not within mapped region at address 0x0
==12251== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12251== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12251== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12251== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12251== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12251== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12251== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12251== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12251== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12251== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12251== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12251== by 0x8062D5B: main (nginx.c:385)
==12251== If you believe this happened as a result of a stack
==12251== overflow in your program's main thread (unlikely but
==12251== possible), you can try to increase the size of the
==12251== main thread stack using the --main-stacksize= flag.
==12251== The main thread stack size used in this run was 8388608.

075-logby.t TEST 11: no ngx.say - status code ok got: ''
expected: '200'
075-logby.t TEST 11: no ngx.say - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 11: no ngx.say ==12272== Invalid read of size 4
==12272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12272== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12272== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12272== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12272== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12272== by 0x8062D5B: main (nginx.c:385)
==12272== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12272==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 11: no ngx.say ==12272==
==12272== Process terminating with default action of signal 11 (SIGSEGV)
==12272== Access not within mapped region at address 0x0
==12272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12272== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12272== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12272== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12272== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12272== by 0x8062D5B: main (nginx.c:385)
==12272== If you believe this happened as a result of a stack
==12272== overflow in your program's main thread (unlikely but
==12272== possible), you can try to increase the size of the
==12272== main thread stack using the --main-stacksize= flag.
==12272== The main thread stack size used in this run was 8388608.

075-logby.t TEST 11: no ngx.say - status code ok got: ''
expected: '200'
075-logby.t TEST 11: no ngx.say - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 15: no ngx.req.socket() ==12284== Invalid read of size 4
==12284== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12284== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12284== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12284== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12284== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12284== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12284== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12284== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12284== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12284== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12284== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12284== by 0x8062D5B: main (nginx.c:385)
==12284== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12284==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 15: no ngx.req.socket() ==12284==
==12284== Process terminating with default action of signal 11 (SIGSEGV)
==12284== Access not within mapped region at address 0x0
==12284== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12284== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12284== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12284== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12284== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12284== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12284== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12284== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12284== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12284== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12284== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12284== by 0x8062D5B: main (nginx.c:385)
==12284== If you believe this happened as a result of a stack
==12284== overflow in your program's main thread (unlikely but
==12284== possible), you can try to increase the size of the
==12284== main thread stack using the --main-stacksize= flag.
==12284== The main thread stack size used in this run was 8388608.

075-logby.t TEST 15: no ngx.req.socket() - status code ok got: ''
expected: '200'
075-logby.t TEST 15: no ngx.req.socket() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 15: no ngx.req.socket() ==12305== Invalid read of size 4
==12305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12305== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12305== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12305== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12305== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12305== by 0x8062D5B: main (nginx.c:385)
==12305== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12305==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 15: no ngx.req.socket() ==12305==
==12305== Process terminating with default action of signal 11 (SIGSEGV)
==12305== Access not within mapped region at address 0x0
==12305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12305== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12305== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12305== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12305== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12305== by 0x8062D5B: main (nginx.c:385)
==12305== If you believe this happened as a result of a stack
==12305== overflow in your program's main thread (unlikely but
==12305== possible), you can try to increase the size of the
==12305== main thread stack using the --main-stacksize= flag.
==12305== The main thread stack size used in this run was 8388608.

075-logby.t TEST 15: no ngx.req.socket() - status code ok got: ''
expected: '200'
075-logby.t TEST 15: no ngx.req.socket() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 18: backtrace ==12317== Invalid read of size 4
==12317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12317== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12317== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12317== by 0x8062D5B: main (nginx.c:385)
==12317== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12317==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 18: backtrace ==12317==
==12317== Process terminating with default action of signal 11 (SIGSEGV)
==12317== Access not within mapped region at address 0x0
==12317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12317== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12317== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12317== by 0x8062D5B: main (nginx.c:385)
==12317== If you believe this happened as a result of a stack
==12317== overflow in your program's main thread (unlikely but
==12317== possible), you can try to increase the size of the
==12317== main thread stack using the --main-stacksize= flag.
==12317== The main thread stack size used in this run was 8388608.

075-logby.t TEST 18: backtrace - status code ok got: ''
expected: '200'
075-logby.t TEST 18: backtrace - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 18: backtrace ==12338== Invalid read of size 4
==12338== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12338== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12338== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12338== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12338== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12338== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12338== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12338== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12338== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12338== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12338== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12338== by 0x8062D5B: main (nginx.c:385)
==12338== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12338==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 18: backtrace ==12338==
==12338== Process terminating with default action of signal 11 (SIGSEGV)
==12338== Access not within mapped region at address 0x0
==12338== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12338== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12338== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12338== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12338== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12338== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12338== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12338== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12338== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12338== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12338== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12338== by 0x8062D5B: main (nginx.c:385)
==12338== If you believe this happened as a result of a stack
==12338== overflow in your program's main thread (unlikely but
==12338== possible), you can try to increase the size of the
==12338== main thread stack using the --main-stacksize= flag.
==12338== The main thread stack size used in this run was 8388608.

075-logby.t TEST 18: backtrace - status code ok got: ''
expected: '200'
075-logby.t TEST 18: backtrace - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 7: lua error (string) ==12350== Invalid read of size 4
==12350== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12350== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12350== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12350== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12350== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12350== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12350== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12350== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12350== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12350== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12350== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12350== by 0x8062D5B: main (nginx.c:385)
==12350== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12350==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 7: lua error (string) ==12350==
==12350== Process terminating with default action of signal 11 (SIGSEGV)
==12350== Access not within mapped region at address 0x0
==12350== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12350== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12350== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12350== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12350== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12350== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12350== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12350== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12350== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12350== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12350== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12350== by 0x8062D5B: main (nginx.c:385)
==12350== If you believe this happened as a result of a stack
==12350== overflow in your program's main thread (unlikely but
==12350== possible), you can try to increase the size of the
==12350== main thread stack using the --main-stacksize= flag.
==12350== The main thread stack size used in this run was 8388608.

075-logby.t TEST 7: lua error (string) - status code ok got: ''
expected: '200'
075-logby.t TEST 7: lua error (string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 7: lua error (string) ==12371== Invalid read of size 4
==12371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12371== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12371== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12371== by 0x8062D5B: main (nginx.c:385)
==12371== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12371==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 7: lua error (string) ==12371==
==12371== Process terminating with default action of signal 11 (SIGSEGV)
==12371== Access not within mapped region at address 0x0
==12371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12371== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12371== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12371== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12371== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12371== by 0x8062D5B: main (nginx.c:385)
==12371== If you believe this happened as a result of a stack
==12371== overflow in your program's main thread (unlikely but
==12371== possible), you can try to increase the size of the
==12371== main thread stack using the --main-stacksize= flag.
==12371== The main thread stack size used in this run was 8388608.

075-logby.t TEST 7: lua error (string) - status code ok got: ''
expected: '200'
075-logby.t TEST 7: lua error (string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 14: no ngx.exit ==12383== Invalid read of size 4
==12383== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12383== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12383== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12383== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12383== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12383== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12383== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12383== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12383== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12383== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12383== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12383== by 0x8062D5B: main (nginx.c:385)
==12383== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12383==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 14: no ngx.exit ==12383==
==12383== Process terminating with default action of signal 11 (SIGSEGV)
==12383== Access not within mapped region at address 0x0
==12383== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12383== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12383== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12383== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12383== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12383== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12383== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12383== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12383== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12383== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12383== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12383== by 0x8062D5B: main (nginx.c:385)
==12383== If you believe this happened as a result of a stack
==12383== overflow in your program's main thread (unlikely but
==12383== possible), you can try to increase the size of the
==12383== main thread stack using the --main-stacksize= flag.
==12383== The main thread stack size used in this run was 8388608.

075-logby.t TEST 14: no ngx.exit - status code ok got: ''
expected: '200'
075-logby.t TEST 14: no ngx.exit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 14: no ngx.exit ==12404== Invalid read of size 4
==12404== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12404== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12404== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12404== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12404== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12404== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12404== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12404== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12404== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12404== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12404== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12404== by 0x8062D5B: main (nginx.c:385)
==12404== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12404==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 14: no ngx.exit ==12404==
==12404== Process terminating with default action of signal 11 (SIGSEGV)
==12404== Access not within mapped region at address 0x0
==12404== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12404== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12404== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12404== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12404== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12404== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12404== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12404== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12404== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12404== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12404== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12404== by 0x8062D5B: main (nginx.c:385)
==12404== If you believe this happened as a result of a stack
==12404== overflow in your program's main thread (unlikely but
==12404== possible), you can try to increase the size of the
==12404== main thread stack using the --main-stacksize= flag.
==12404== The main thread stack size used in this run was 8388608.

075-logby.t TEST 14: no ngx.exit - status code ok got: ''
expected: '200'
075-logby.t TEST 14: no ngx.exit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 19: Lua file does not exist ==12416== Invalid read of size 4
==12416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12416== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12416== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12416== by 0x8062D5B: main (nginx.c:385)
==12416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 19: Lua file does not exist ==12416==
==12416== Process terminating with default action of signal 11 (SIGSEGV)
==12416== Access not within mapped region at address 0x0
==12416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12416== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12416== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12416== by 0x8062D5B: main (nginx.c:385)
==12416== If you believe this happened as a result of a stack
==12416== overflow in your program's main thread (unlikely but
==12416== possible), you can try to increase the size of the
==12416== main thread stack using the --main-stacksize= flag.
==12416== The main thread stack size used in this run was 8388608.

075-logby.t TEST 19: Lua file does not exist - status code ok got: ''
expected: '200'
075-logby.t TEST 19: Lua file does not exist - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 19: Lua file does not exist ==12437== Invalid read of size 4
==12437== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12437== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12437== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12437== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12437== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12437== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12437== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12437== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12437== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12437== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12437== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12437== by 0x8062D5B: main (nginx.c:385)
==12437== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12437==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 19: Lua file does not exist ==12437==
==12437== Process terminating with default action of signal 11 (SIGSEGV)
==12437== Access not within mapped region at address 0x0
==12437== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12437== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12437== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12437== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12437== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12437== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12437== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12437== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12437== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12437== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12437== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12437== by 0x8062D5B: main (nginx.c:385)
==12437== If you believe this happened as a result of a stack
==12437== overflow in your program's main thread (unlikely but
==12437== possible), you can try to increase the size of the
==12437== main thread stack using the --main-stacksize= flag.
==12437== The main thread stack size used in this run was 8388608.

075-logby.t TEST 19: Lua file does not exist - status code ok got: ''
expected: '200'
075-logby.t TEST 19: Lua file does not exist - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 1: log_by_lua ==12450== Invalid read of size 4
==12450== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12450== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12450== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12450== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12450== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12450== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12450== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12450== by 0x8062D5B: main (nginx.c:385)
==12450== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12450==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 1: log_by_lua ==12450==
==12450== Process terminating with default action of signal 11 (SIGSEGV)
==12450== Access not within mapped region at address 0x0
==12450== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12450== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12450== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12450== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12450== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12450== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12450== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12450== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12450== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12450== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12450== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12450== by 0x8062D5B: main (nginx.c:385)
==12450== If you believe this happened as a result of a stack
==12450== overflow in your program's main thread (unlikely but
==12450== possible), you can try to increase the size of the
==12450== main thread stack using the --main-stacksize= flag.
==12450== The main thread stack size used in this run was 8388608.

075-logby.t TEST 1: log_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 1: log_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 1: log_by_lua ==12471== Invalid read of size 4
==12471== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12471== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12471== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12471== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12471== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12471== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12471== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12471== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12471== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12471== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12471== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12471== by 0x8062D5B: main (nginx.c:385)
==12471== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12471==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 1: log_by_lua ==12471==
==12471== Process terminating with default action of signal 11 (SIGSEGV)
==12471== Access not within mapped region at address 0x0
==12471== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12471== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12471== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12471== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12471== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12471== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12471== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12471== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12471== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12471== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12471== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12471== by 0x8062D5B: main (nginx.c:385)
==12471== If you believe this happened as a result of a stack
==12471== overflow in your program's main thread (unlikely but
==12471== possible), you can try to increase the size of the
==12471== main thread stack using the --main-stacksize= flag.
==12471== The main thread stack size used in this run was 8388608.

075-logby.t TEST 1: log_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 1: log_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 8: lua error (nil) ==12483== Invalid read of size 4
==12483== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12483== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12483== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12483== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12483== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12483== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12483== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12483== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12483== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12483== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12483== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12483== by 0x8062D5B: main (nginx.c:385)
==12483== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12483==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 8: lua error (nil) ==12483==
==12483== Process terminating with default action of signal 11 (SIGSEGV)
==12483== Access not within mapped region at address 0x0
==12483== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12483== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12483== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12483== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12483== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12483== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12483== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12483== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12483== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12483== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12483== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12483== by 0x8062D5B: main (nginx.c:385)
==12483== If you believe this happened as a result of a stack
==12483== overflow in your program's main thread (unlikely but
==12483== possible), you can try to increase the size of the
==12483== main thread stack using the --main-stacksize= flag.
==12483== The main thread stack size used in this run was 8388608.

075-logby.t TEST 8: lua error (nil) - status code ok got: ''
expected: '200'
075-logby.t TEST 8: lua error (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 8: lua error (nil) ==12504== Invalid read of size 4
==12504== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12504== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12504== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12504== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12504== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12504== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12504== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12504== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12504== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12504== by 0x8062D5B: main (nginx.c:385)
==12504== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12504==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
075-logby.t TEST 8: lua error (nil) ==12504==
==12504== Process terminating with default action of signal 11 (SIGSEGV)
==12504== Access not within mapped region at address 0x0
==12504== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12504== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12504== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12504== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12504== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12504== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12504== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12504== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12504== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12504== by 0x8062D5B: main (nginx.c:385)
==12504== If you believe this happened as a result of a stack
==12504== overflow in your program's main thread (unlikely but
==12504== possible), you can try to increase the size of the
==12504== main thread stack using the --main-stacksize= flag.
==12504== The main thread stack size used in this run was 8388608.

075-logby.t TEST 8: lua error (nil) - status code ok got: ''
expected: '200'
075-logby.t TEST 8: lua error (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - Can't connect to 127.0.0.1:1984: Connection refused ==12513== Invalid read of size 4
==12513== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12513== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12513== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12513== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12513== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12513== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12513== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12513== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12513== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12513== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12513== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12513== by 0x8062D5B: main (nginx.c:385)
==12513== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12513==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - Can't connect to 127.0.0.1:1984: Connection refused ==12513==
==12513== Process terminating with default action of signal 11 (SIGSEGV)
==12513== Access not within mapped region at address 0x0
==12513== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12513== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12513== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12513== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12513== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12513== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12513== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12513== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12513== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12513== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12513== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12513== by 0x8062D5B: main (nginx.c:385)
==12513== If you believe this happened as a result of a stack
==12513== overflow in your program's main thread (unlikely but
==12513== possible), you can try to increase the size of the
==12513== main thread stack using the --main-stacksize= flag.
==12513== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - status code ok got: ''
expected: '200'
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - Can't connect to 127.0.0.1:1984: Connection refused ==12514== Invalid read of size 4
==12514== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12514== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12514== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12514== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12514== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12514== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12514== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12514== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12514== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12514== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12514== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12514== by 0x8062D5B: main (nginx.c:385)
==12514== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12514==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - Can't connect to 127.0.0.1:1984: Connection refused ==12514==
==12514== Process terminating with default action of signal 11 (SIGSEGV)
==12514== Access not within mapped region at address 0x0
==12514== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12514== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12514== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12514== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12514== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12514== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12514== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12514== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12514== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12514== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12514== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12514== by 0x8062D5B: main (nginx.c:385)
==12514== If you believe this happened as a result of a stack
==12514== overflow in your program's main thread (unlikely but
==12514== possible), you can try to increase the size of the
==12514== main thread stack using the --main-stacksize= flag.
==12514== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - status code ok got: ''
expected: '200'
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). ==12526== Invalid read of size 4
==12526== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12526== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12526== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12526== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12526== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12526== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12526== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12526== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12526== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12526== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12526== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12526== by 0x8062D5B: main (nginx.c:385)
==12526== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12526==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). ==12526==
==12526== Process terminating with default action of signal 11 (SIGSEGV)
==12526== Access not within mapped region at address 0x0
==12526== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12526== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12526== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12526== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12526== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12526== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12526== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12526== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12526== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12526== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12526== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12526== by 0x8062D5B: main (nginx.c:385)
==12526== If you believe this happened as a result of a stack
==12526== overflow in your program's main thread (unlikely but
==12526== possible), you can try to increase the size of the
==12526== main thread stack using the --main-stacksize= flag.
==12526== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - status code ok got: ''
expected: '200'
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:43:17 [alert] 12512\#0: worker process 12526 exited on signal 11" (req 0) 2020/10/27 04:43:17 [debug] 12512\#0: shmtx forced unlock
2020/10/27 04:43:17 [debug] 12512\#0: wake up, sigio 0
2020/10/27 04:43:17 [debug] 12512\#0: reap children
2020/10/27 04:43:17 [debug] 12512\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:43:17 [debug] 12512\#0: child: 1 12526 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:43:17 [debug] 12512\#0: channel 3:4
2020/10/27 04:43:17 [notice] 12512\#0: start worker process 12547
2020/10/27 04:43:17 [debug] 12512\#0: sigsuspend
2020/10/27 04:43:17 [debug] 12547\#0: malloc: 05048998:12
'
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). ==12547== Invalid read of size 4
==12547== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12547== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12547== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12547== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12547== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12547== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12547== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12547== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12547== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12547== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12547== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12547== by 0x8062D5B: main (nginx.c:385)
==12547== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12547==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). ==12547==
==12547== Process terminating with default action of signal 11 (SIGSEGV)
==12547== Access not within mapped region at address 0x0
==12547== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12547== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12547== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12547== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12547== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12547== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12547== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12547== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12547== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12547== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12547== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12547== by 0x8062D5B: main (nginx.c:385)
==12547== If you believe this happened as a result of a stack
==12547== overflow in your program's main thread (unlikely but
==12547== possible), you can try to increase the size of the
==12547== main thread stack using the --main-stacksize= flag.
==12547== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - status code ok got: ''
expected: '200'
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:43:17 [alert] 12512\#0: worker process 12547 exited on signal 11" (req 1) 2020/10/27 04:43:17 [debug] 12512\#0: shmtx forced unlock
2020/10/27 04:43:17 [debug] 12512\#0: wake up, sigio 0
2020/10/27 04:43:17 [debug] 12512\#0: reap children
2020/10/27 04:43:17 [debug] 12512\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:43:17 [debug] 12512\#0: child: 1 12547 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:43:17 [debug] 12512\#0: channel 3:4
2020/10/27 04:43:17 [notice] 12512\#0: start worker process 12548
2020/10/27 04:43:17 [debug] 12512\#0: sigsuspend
2020/10/27 04:43:17 [debug] 12548\#0: malloc: 05048998:12
'
077-sleep.t TEST 2: sleep a - content ==12559== Invalid read of size 4
==12559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12559== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12559== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12559== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12559== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12559== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12559== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12559== by 0x8062D5B: main (nginx.c:385)
==12559== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12559==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 2: sleep a - content ==12559==
==12559== Process terminating with default action of signal 11 (SIGSEGV)
==12559== Access not within mapped region at address 0x0
==12559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12559== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12559== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12559== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12559== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12559== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12559== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12559== by 0x8062D5B: main (nginx.c:385)
==12559== If you believe this happened as a result of a stack
==12559== overflow in your program's main thread (unlikely but
==12559== possible), you can try to increase the size of the
==12559== main thread stack using the --main-stacksize= flag.
==12559== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 2: sleep a - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 2: sleep a - content ==12580== Invalid read of size 4
==12580== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12580== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12580== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12580== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12580== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12580== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12580== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12580== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12580== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12580== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12580== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12580== by 0x8062D5B: main (nginx.c:385)
==12580== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12580==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 2: sleep a - content ==12580==
==12580== Process terminating with default action of signal 11 (SIGSEGV)
==12580== Access not within mapped region at address 0x0
==12580== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12580== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12580== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12580== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12580== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12580== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12580== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12580== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12580== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12580== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12580== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12580== by 0x8062D5B: main (nginx.c:385)
==12580== If you believe this happened as a result of a stack
==12580== overflow in your program's main thread (unlikely but
==12580== possible), you can try to increase the size of the
==12580== main thread stack using the --main-stacksize= flag.
==12580== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 2: sleep a - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==12592== Invalid read of size 4
==12592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12592== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12592== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12592== by 0x8062D5B: main (nginx.c:385)
==12592== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12592==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==12592==
==12592== Process terminating with default action of signal 11 (SIGSEGV)
==12592== Access not within mapped region at address 0x0
==12592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12592== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12592== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12592== by 0x8062D5B: main (nginx.c:385)
==12592== If you believe this happened as a result of a stack
==12592== overflow in your program's main thread (unlikely but
==12592== possible), you can try to increase the size of the
==12592== main thread stack using the --main-stacksize= flag.
==12592== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==12613== Invalid read of size 4
==12613== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12613== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12613== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12613== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12613== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12613== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12613== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12613== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12613== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12613== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12613== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12613== by 0x8062D5B: main (nginx.c:385)
==12613== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12613==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep ==12613==
==12613== Process terminating with default action of signal 11 (SIGSEGV)
==12613== Access not within mapped region at address 0x0
==12613== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12613== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12613== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12613== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12613== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12613== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12613== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12613== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12613== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12613== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12613== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12613== by 0x8062D5B: main (nginx.c:385)
==12613== If you believe this happened as a result of a stack
==12613== overflow in your program's main thread (unlikely but
==12613== possible), you can try to increase the size of the
==12613== main thread stack using the --main-stacksize= flag.
==12613== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep ==12625== Invalid read of size 4
==12625== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12625== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12625== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12625== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12625== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12625== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12625== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12625== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12625== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12625== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12625== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12625== by 0x8062D5B: main (nginx.c:385)
==12625== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12625==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep ==12625==
==12625== Process terminating with default action of signal 11 (SIGSEGV)
==12625== Access not within mapped region at address 0x0
==12625== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12625== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12625== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12625== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12625== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12625== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12625== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12625== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12625== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12625== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12625== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12625== by 0x8062D5B: main (nginx.c:385)
==12625== If you believe this happened as a result of a stack
==12625== overflow in your program's main thread (unlikely but
==12625== possible), you can try to increase the size of the
==12625== main thread stack using the --main-stacksize= flag.
==12625== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep ==12646== Invalid read of size 4
==12646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12646== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12646== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12646== by 0x8062D5B: main (nginx.c:385)
==12646== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12646==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep ==12646==
==12646== Process terminating with default action of signal 11 (SIGSEGV)
==12646== Access not within mapped region at address 0x0
==12646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12646== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12646== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12646== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12646== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12646== by 0x8062D5B: main (nginx.c:385)
==12646== If you believe this happened as a result of a stack
==12646== overflow in your program's main thread (unlikely but
==12646== possible), you can try to increase the size of the
==12646== main thread stack using the --main-stacksize= flag.
==12646== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) ==12658== Invalid read of size 4
==12658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12658== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12658== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12658== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12658== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12658== by 0x8062D5B: main (nginx.c:385)
==12658== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12658==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) ==12658==
==12658== Process terminating with default action of signal 11 (SIGSEGV)
==12658== Access not within mapped region at address 0x0
==12658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12658== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12658== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12658== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12658== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12658== by 0x8062D5B: main (nginx.c:385)
==12658== If you believe this happened as a result of a stack
==12658== overflow in your program's main thread (unlikely but
==12658== possible), you can try to increase the size of the
==12658== main thread stack using the --main-stacksize= flag.
==12658== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - status code ok got: ''
expected: '200'
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) ==12679== Invalid read of size 4
==12679== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12679== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12679== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12679== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12679== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12679== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12679== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12679== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12679== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12679== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12679== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12679== by 0x8062D5B: main (nginx.c:385)
==12679== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12679==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) ==12679==
==12679== Process terminating with default action of signal 11 (SIGSEGV)
==12679== Access not within mapped region at address 0x0
==12679== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12679== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12679== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12679== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12679== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12679== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12679== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12679== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12679== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12679== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12679== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12679== by 0x8062D5B: main (nginx.c:385)
==12679== If you believe this happened as a result of a stack
==12679== overflow in your program's main thread (unlikely but
==12679== possible), you can try to increase the size of the
==12679== main thread stack using the --main-stacksize= flag.
==12679== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - status code ok got: ''
expected: '200'
077-sleep.t TEST 6: sleep 0 ==12692== Invalid read of size 4
==12692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12692== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12692== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12692== by 0x8062D5B: main (nginx.c:385)
==12692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 6: sleep 0 ==12692==
==12692== Process terminating with default action of signal 11 (SIGSEGV)
==12692== Access not within mapped region at address 0x0
==12692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12692== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12692== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12692== by 0x8062D5B: main (nginx.c:385)
==12692== If you believe this happened as a result of a stack
==12692== overflow in your program's main thread (unlikely but
==12692== possible), you can try to increase the size of the
==12692== main thread stack using the --main-stacksize= flag.
==12692== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 6: sleep 0 - status code ok got: ''
expected: '200'
077-sleep.t TEST 6: sleep 0 - response_body_like - response is expected () ''
doesn't match '(?^s:elapsed: 0)'
077-sleep.t TEST 6: sleep 0 ==12713== Invalid read of size 4
==12713== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12713== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12713== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12713== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12713== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12713== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12713== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12713== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12713== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12713== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12713== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12713== by 0x8062D5B: main (nginx.c:385)
==12713== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12713==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 6: sleep 0 ==12713==
==12713== Process terminating with default action of signal 11 (SIGSEGV)
==12713== Access not within mapped region at address 0x0
==12713== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12713== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12713== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12713== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12713== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12713== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12713== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12713== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12713== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12713== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12713== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12713== by 0x8062D5B: main (nginx.c:385)
==12713== If you believe this happened as a result of a stack
==12713== overflow in your program's main thread (unlikely but
==12713== possible), you can try to increase the size of the
==12713== main thread stack using the --main-stacksize= flag.
==12713== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 6: sleep 0 - status code ok got: ''
expected: '200'
077-sleep.t TEST 6: sleep 0 - response_body_like - response is expected () ''
doesn't match '(?^s:elapsed: 0)'
077-sleep.t TEST 1: sleep 0.5 - content ==12725== Invalid read of size 4
==12725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12725== by 0x8062D5B: main (nginx.c:385)
==12725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 1: sleep 0.5 - content ==12725==
==12725== Process terminating with default action of signal 11 (SIGSEGV)
==12725== Access not within mapped region at address 0x0
==12725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12725== by 0x8062D5B: main (nginx.c:385)
==12725== If you believe this happened as a result of a stack
==12725== overflow in your program's main thread (unlikely but
==12725== possible), you can try to increase the size of the
==12725== main thread stack using the --main-stacksize= flag.
==12725== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 1: sleep 0.5 - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 1: sleep 0.5 - content - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-5]\d*|5)$)'
077-sleep.t TEST 1: sleep 0.5 - content ==12746== Invalid read of size 4
==12746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12746== by 0x8062D5B: main (nginx.c:385)
==12746== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12746==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 1: sleep 0.5 - content ==12746==
==12746== Process terminating with default action of signal 11 (SIGSEGV)
==12746== Access not within mapped region at address 0x0
==12746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12746== by 0x8062D5B: main (nginx.c:385)
==12746== If you believe this happened as a result of a stack
==12746== overflow in your program's main thread (unlikely but
==12746== possible), you can try to increase the size of the
==12746== main thread stack using the --main-stacksize= flag.
==12746== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 1: sleep 0.5 - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 1: sleep 0.5 - content - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-5]\d*|5)$)'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content ==12758== Invalid read of size 4
==12758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12758== by 0x8062D5B: main (nginx.c:385)
==12758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 3: sleep 0.33 - multi-times in content ==12758==
==12758== Process terminating with default action of signal 11 (SIGSEGV)
==12758== Access not within mapped region at address 0x0
==12758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12758== by 0x8062D5B: main (nginx.c:385)
==12758== If you believe this happened as a result of a stack
==12758== overflow in your program's main thread (unlikely but
==12758== possible), you can try to increase the size of the
==12758== main thread stack using the --main-stacksize= flag.
==12758== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 3: sleep 0.33 - multi-times in content - status code ok got: ''
expected: '200'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:0\.9\d*|1\.[0-2]\d*|1)$)'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content ==12779== Invalid read of size 4
==12779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12779== by 0x8062D5B: main (nginx.c:385)
==12779== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12779==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
077-sleep.t TEST 3: sleep 0.33 - multi-times in content ==12779==
==12779== Process terminating with default action of signal 11 (SIGSEGV)
==12779== Access not within mapped region at address 0x0
==12779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12779== by 0x8062D5B: main (nginx.c:385)
==12779== If you believe this happened as a result of a stack
==12779== overflow in your program's main thread (unlikely but
==12779== possible), you can try to increase the size of the
==12779== main thread stack using the --main-stacksize= flag.
==12779== The main thread stack size used in this run was 8388608.

077-sleep.t TEST 3: sleep 0.33 - multi-times in content - status code ok got: ''
expected: '200'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:0\.9\d*|1\.[0-2]\d*|1)$)'
080-hup-shdict.t TEST 1: initialize the fields in shdict - Can't connect to 127.0.0.1:1984: Connection refused ==12788== Invalid read of size 4
==12788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12788== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12788== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12788== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12788== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12788== by 0x8062D5B: main (nginx.c:385)
==12788== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12788==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
080-hup-shdict.t TEST 1: initialize the fields in shdict - Can't connect to 127.0.0.1:1984: Connection refused ==12788==
==12788== Process terminating with default action of signal 11 (SIGSEGV)
==12788== Access not within mapped region at address 0x0
==12788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12788== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12788== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12788== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12788== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12788== by 0x8062D5B: main (nginx.c:385)
==12788== If you believe this happened as a result of a stack
==12788== overflow in your program's main thread (unlikely but
==12788== possible), you can try to increase the size of the
==12788== main thread stack using the --main-stacksize= flag.
==12788== The main thread stack size used in this run was 8388608.

080-hup-shdict.t TEST 1: initialize the fields in shdict - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 1: initialize the fields in shdict - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
080-hup-shdict.t TEST 1: initialize the fields in shdict - Can't connect to 127.0.0.1:1984: Connection refused ==12789== Invalid read of size 4
==12789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12789== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12789== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12789== by 0x8062D5B: main (nginx.c:385)
==12789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
080-hup-shdict.t TEST 1: initialize the fields in shdict - Can't connect to 127.0.0.1:1984: Connection refused ==12789==
==12789== Process terminating with default action of signal 11 (SIGSEGV)
==12789== Access not within mapped region at address 0x0
==12789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12789== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12789== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12789== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12789== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12789== by 0x8062D5B: main (nginx.c:385)
==12789== If you believe this happened as a result of a stack
==12789== overflow in your program's main thread (unlikely but
==12789== possible), you can try to increase the size of the
==12789== main thread stack using the --main-stacksize= flag.
==12789== The main thread stack size used in this run was 8388608.

080-hup-shdict.t TEST 1: initialize the fields in shdict - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 1: initialize the fields in shdict - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload ==12801== Invalid read of size 4
==12801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12801== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12801== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12801== by 0x8062D5B: main (nginx.c:385)
==12801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload ==12801==
==12801== Process terminating with default action of signal 11 (SIGSEGV)
==12801== Access not within mapped region at address 0x0
==12801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12801== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12801== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12801== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12801== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12801== by 0x8062D5B: main (nginx.c:385)
==12801== If you believe this happened as a result of a stack
==12801== overflow in your program's main thread (unlikely but
==12801== possible), you can try to increase the size of the
==12801== main thread stack using the --main-stacksize= flag.
==12801== The main thread stack size used in this run was 8388608.

080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload ==12822== Invalid read of size 4
==12822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12822== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12822== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12822== by 0x8062D5B: main (nginx.c:385)
==12822== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12822==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload ==12822==
==12822== Process terminating with default action of signal 11 (SIGSEGV)
==12822== Access not within mapped region at address 0x0
==12822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12822== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12822== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12822== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12822== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12822== by 0x8062D5B: main (nginx.c:385)
==12822== If you believe this happened as a result of a stack
==12822== overflow in your program's main thread (unlikely but
==12822== possible), you can try to increase the size of the
==12822== main thread stack using the --main-stacksize= flag.
==12822== The main thread stack size used in this run was 8388608.

080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
081-bytecode.t TEST 2: bytecode (stripped) - Can't connect to 127.0.0.1:1984: Connection refused ==12831== Invalid read of size 4
==12831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12831== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12831== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12831== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12831== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12831== by 0x8062D5B: main (nginx.c:385)
==12831== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12831==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
081-bytecode.t TEST 2: bytecode (stripped) - Can't connect to 127.0.0.1:1984: Connection refused ==12831==
==12831== Process terminating with default action of signal 11 (SIGSEGV)
==12831== Access not within mapped region at address 0x0
==12831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12831== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12831== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12831== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12831== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12831== by 0x8062D5B: main (nginx.c:385)
==12831== If you believe this happened as a result of a stack
==12831== overflow in your program's main thread (unlikely but
==12831== possible), you can try to increase the size of the
==12831== main thread stack using the --main-stacksize= flag.
==12831== The main thread stack size used in this run was 8388608.

081-bytecode.t TEST 2: bytecode (stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 2: bytecode (stripped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
081-bytecode.t TEST 2: bytecode (stripped) - Can't connect to 127.0.0.1:1984: Connection refused ==12832== Invalid read of size 4
==12832== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12832== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12832== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12832== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12832== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12832== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12832== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12832== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12832== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12832== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12832== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12832== by 0x8062D5B: main (nginx.c:385)
==12832== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12832==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
081-bytecode.t TEST 2: bytecode (stripped) - Can't connect to 127.0.0.1:1984: Connection refused ==12832==
==12832== Process terminating with default action of signal 11 (SIGSEGV)
==12832== Access not within mapped region at address 0x0
==12832== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12832== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12832== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12832== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12832== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12832== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12832== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12832== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12832== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12832== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12832== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12832== by 0x8062D5B: main (nginx.c:385)
==12832== If you believe this happened as a result of a stack
==12832== overflow in your program's main thread (unlikely but
==12832== possible), you can try to increase the size of the
==12832== main thread stack using the --main-stacksize= flag.
==12832== The main thread stack size used in this run was 8388608.

081-bytecode.t TEST 2: bytecode (stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 2: bytecode (stripped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
081-bytecode.t TEST 1: bytecode (not stripped) ==12845== Invalid read of size 4
==12845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12845== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12845== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12845== by 0x8062D5B: main (nginx.c:385)
==12845== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12845==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
081-bytecode.t TEST 1: bytecode (not stripped) ==12845==
==12845== Process terminating with default action of signal 11 (SIGSEGV)
==12845== Access not within mapped region at address 0x0
==12845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12845== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12845== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12845== by 0x8062D5B: main (nginx.c:385)
==12845== If you believe this happened as a result of a stack
==12845== overflow in your program's main thread (unlikely but
==12845== possible), you can try to increase the size of the
==12845== main thread stack using the --main-stacksize= flag.
==12845== The main thread stack size used in this run was 8388608.

081-bytecode.t TEST 1: bytecode (not stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 1: bytecode (not stripped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
081-bytecode.t TEST 1: bytecode (not stripped) ==12866== Invalid read of size 4
==12866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12866== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12866== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12866== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12866== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12866== by 0x8062D5B: main (nginx.c:385)
==12866== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12866==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
081-bytecode.t TEST 1: bytecode (not stripped) ==12866==
==12866== Process terminating with default action of signal 11 (SIGSEGV)
==12866== Access not within mapped region at address 0x0
==12866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12866== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12866== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12866== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12866== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12866== by 0x8062D5B: main (nginx.c:385)
==12866== If you believe this happened as a result of a stack
==12866== overflow in your program's main thread (unlikely but
==12866== possible), you can try to increase the size of the
==12866== main thread stack using the --main-stacksize= flag.
==12866== The main thread stack size used in this run was 8388608.

081-bytecode.t TEST 1: bytecode (not stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 1: bytecode (not stripped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==12876== Invalid read of size 4
==12876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12876== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12876== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12876== by 0x8062D5B: main (nginx.c:385)
==12876== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12876==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==12876==
==12876== Process terminating with default action of signal 11 (SIGSEGV)
==12876== Access not within mapped region at address 0x0
==12876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12876== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12876== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==12876== by 0x8062D5B: main (nginx.c:385)
==12876== If you believe this happened as a result of a stack
==12876== overflow in your program's main thread (unlikely but
==12876== possible), you can try to increase the size of the
==12876== main thread stack using the --main-stacksize= flag.
==12876== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 7: setkeepalive (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==12877== Invalid read of size 4
==12877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12877== by 0x8062D5B: main (nginx.c:385)
==12877== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12877==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==12877==
==12877== Process terminating with default action of signal 11 (SIGSEGV)
==12877== Access not within mapped region at address 0x0
==12877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12877== by 0x8062D5B: main (nginx.c:385)
==12877== If you believe this happened as a result of a stack
==12877== overflow in your program's main thread (unlikely but
==12877== possible), you can try to increase the size of the
==12877== main thread stack using the --main-stacksize= flag.
==12877== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 7: setkeepalive (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) ==12889== Invalid read of size 4
==12889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12889== by 0x8062D5B: main (nginx.c:385)
==12889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) ==12889==
==12889== Process terminating with default action of signal 11 (SIGSEGV)
==12889== Access not within mapped region at address 0x0
==12889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12889== by 0x8062D5B: main (nginx.c:385)
==12889== If you believe this happened as a result of a stack
==12889== overflow in your program's main thread (unlikely but
==12889== possible), you can try to increase the size of the
==12889== main thread stack using the --main-stacksize= flag.
==12889== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 5: getreusedtimes (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) ==12910== Invalid read of size 4
==12910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12910== by 0x8062D5B: main (nginx.c:385)
==12910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) ==12910==
==12910== Process terminating with default action of signal 11 (SIGSEGV)
==12910== Access not within mapped region at address 0x0
==12910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12910== by 0x8062D5B: main (nginx.c:385)
==12910== If you believe this happened as a result of a stack
==12910== overflow in your program's main thread (unlikely but
==12910== possible), you can try to increase the size of the
==12910== main thread stack using the --main-stacksize= flag.
==12910== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 5: getreusedtimes (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 2: receiveuntil ==12922== Invalid read of size 4
==12922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12922== by 0x8062D5B: main (nginx.c:385)
==12922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12922==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 2: receiveuntil ==12922==
==12922== Process terminating with default action of signal 11 (SIGSEGV)
==12922== Access not within mapped region at address 0x0
==12922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12922== by 0x8062D5B: main (nginx.c:385)
==12922== If you believe this happened as a result of a stack
==12922== overflow in your program's main thread (unlikely but
==12922== possible), you can try to increase the size of the
==12922== main thread stack using the --main-stacksize= flag.
==12922== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 2: receiveuntil - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 2: receiveuntil ==12943== Invalid read of size 4
==12943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12943== by 0x8062D5B: main (nginx.c:385)
==12943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 2: receiveuntil ==12943==
==12943== Process terminating with default action of signal 11 (SIGSEGV)
==12943== Access not within mapped region at address 0x0
==12943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12943== by 0x8062D5B: main (nginx.c:385)
==12943== If you believe this happened as a result of a stack
==12943== overflow in your program's main thread (unlikely but
==12943== possible), you can try to increase the size of the
==12943== main thread stack using the --main-stacksize= flag.
==12943== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 2: receiveuntil - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 3: send (bad arg number) ==12955== Invalid read of size 4
==12955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12955== by 0x8062D5B: main (nginx.c:385)
==12955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 3: send (bad arg number) ==12955==
==12955== Process terminating with default action of signal 11 (SIGSEGV)
==12955== Access not within mapped region at address 0x0
==12955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12955== by 0x8062D5B: main (nginx.c:385)
==12955== If you believe this happened as a result of a stack
==12955== overflow in your program's main thread (unlikely but
==12955== possible), you can try to increase the size of the
==12955== main thread stack using the --main-stacksize= flag.
==12955== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 3: send (bad arg number) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 3: send (bad arg number) ==12976== Invalid read of size 4
==12976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12976== by 0x8062D5B: main (nginx.c:385)
==12976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 3: send (bad arg number) ==12976==
==12976== Process terminating with default action of signal 11 (SIGSEGV)
==12976== Access not within mapped region at address 0x0
==12976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==12976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==12976== by 0x8062D5B: main (nginx.c:385)
==12976== If you believe this happened as a result of a stack
==12976== overflow in your program's main thread (unlikely but
==12976== possible), you can try to increase the size of the
==12976== main thread stack using the --main-stacksize= flag.
==12976== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 3: send (bad arg number) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 6: close (bad self) ==12988== Invalid read of size 4
==12988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12988== by 0x8062D5B: main (nginx.c:385)
==12988== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12988==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 6: close (bad self) ==12988==
==12988== Process terminating with default action of signal 11 (SIGSEGV)
==12988== Access not within mapped region at address 0x0
==12988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==12988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==12988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==12988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==12988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==12988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==12988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==12988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==12988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==12988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==12988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==12988== by 0x8062D5B: main (nginx.c:385)
==12988== If you believe this happened as a result of a stack
==12988== overflow in your program's main thread (unlikely but
==12988== possible), you can try to increase the size of the
==12988== main thread stack using the --main-stacksize= flag.
==12988== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 6: close (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 6: close (bad self) ==13009== Invalid read of size 4
==13009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13009== by 0x8062D5B: main (nginx.c:385)
==13009== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13009==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 6: close (bad self) ==13009==
==13009== Process terminating with default action of signal 11 (SIGSEGV)
==13009== Access not within mapped region at address 0x0
==13009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13009== by 0x8062D5B: main (nginx.c:385)
==13009== If you believe this happened as a result of a stack
==13009== overflow in your program's main thread (unlikely but
==13009== possible), you can try to increase the size of the
==13009== main thread stack using the --main-stacksize= flag.
==13009== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 6: close (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 1: receive ==13021== Invalid read of size 4
==13021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13021== by 0x8062D5B: main (nginx.c:385)
==13021== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13021==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 1: receive ==13021==
==13021== Process terminating with default action of signal 11 (SIGSEGV)
==13021== Access not within mapped region at address 0x0
==13021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13021== by 0x8062D5B: main (nginx.c:385)
==13021== If you believe this happened as a result of a stack
==13021== overflow in your program's main thread (unlikely but
==13021== possible), you can try to increase the size of the
==13021== main thread stack using the --main-stacksize= flag.
==13021== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 1: receive - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 1: receive ==13042== Invalid read of size 4
==13042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13042== by 0x8062D5B: main (nginx.c:385)
==13042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 1: receive ==13042==
==13042== Process terminating with default action of signal 11 (SIGSEGV)
==13042== Access not within mapped region at address 0x0
==13042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13042== by 0x8062D5B: main (nginx.c:385)
==13042== If you believe this happened as a result of a stack
==13042== overflow in your program's main thread (unlikely but
==13042== possible), you can try to increase the size of the
==13042== main thread stack using the --main-stacksize= flag.
==13042== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 1: receive - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 4: send (bad self) ==13054== Invalid read of size 4
==13054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13054== by 0x8062D5B: main (nginx.c:385)
==13054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 4: send (bad self) ==13054==
==13054== Process terminating with default action of signal 11 (SIGSEGV)
==13054== Access not within mapped region at address 0x0
==13054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13054== by 0x8062D5B: main (nginx.c:385)
==13054== If you believe this happened as a result of a stack
==13054== overflow in your program's main thread (unlikely but
==13054== possible), you can try to increase the size of the
==13054== main thread stack using the --main-stacksize= flag.
==13054== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 4: send (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 4: send (bad self) ==13075== Invalid read of size 4
==13075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13075== by 0x8062D5B: main (nginx.c:385)
==13075== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13075==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
083-bad-sock-self.t TEST 4: send (bad self) ==13075==
==13075== Process terminating with default action of signal 11 (SIGSEGV)
==13075== Access not within mapped region at address 0x0
==13075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13075== by 0x8062D5B: main (nginx.c:385)
==13075== If you believe this happened as a result of a stack
==13075== overflow in your program's main thread (unlikely but
==13075== possible), you can try to increase the size of the
==13075== main thread stack using the --main-stacksize= flag.
==13075== The main thread stack size used in this run was 8388608.

083-bad-sock-self.t TEST 4: send (bad self) - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - Can't connect to 127.0.0.1:1984: Connection refused ==13084== Invalid read of size 4
==13084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13084== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==13084== by 0x8062D5B: main (nginx.c:385)
==13084== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13084==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - Can't connect to 127.0.0.1:1984: Connection refused ==13084==
==13084== Process terminating with default action of signal 11 (SIGSEGV)
==13084== Access not within mapped region at address 0x0
==13084== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13084== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13084== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13084== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13084== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13084== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13084== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13084== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13084== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13084== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13084== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==13084== by 0x8062D5B: main (nginx.c:385)
==13084== If you believe this happened as a result of a stack
==13084== overflow in your program's main thread (unlikely but
==13084== possible), you can try to increase the size of the
==13084== main thread stack using the --main-stacksize= flag.
==13084== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read: --abc
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - Can't connect to 127.0.0.1:1984: Connection refused ==13085== Invalid read of size 4
==13085== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13085== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13085== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13085== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13085== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13085== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13085== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13085== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13085== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13085== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13085== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13085== by 0x8062D5B: main (nginx.c:385)
==13085== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13085==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - Can't connect to 127.0.0.1:1984: Connection refused ==13085==
==13085== Process terminating with default action of signal 11 (SIGSEGV)
==13085== Access not within mapped region at address 0x0
==13085== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13085== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13085== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13085== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13085== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13085== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13085== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13085== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13085== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13085== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13085== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13085== by 0x8062D5B: main (nginx.c:385)
==13085== If you believe this happened as a result of a stack
==13085== overflow in your program's main thread (unlikely but
==13085== possible), you can try to increase the size of the
==13085== main thread stack using the --main-stacksize= flag.
==13085== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read: --abc
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers ==13097== Invalid read of size 4
==13097== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13097== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13097== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13097== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13097== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13097== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13097== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13097== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13097== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13097== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13097== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13097== by 0x8062D5B: main (nginx.c:385)
==13097== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13097==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers ==13097==
==13097== Process terminating with default action of signal 11 (SIGSEGV)
==13097== Access not within mapped region at address 0x0
==13097== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13097== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13097== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13097== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13097== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13097== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13097== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13097== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13097== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13097== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13097== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13097== by 0x8062D5B: main (nginx.c:385)
==13097== If you believe this happened as a result of a stack
==13097== overflow in your program's main thread (unlikely but
==13097== possible), you can try to increase the size of the
==13097== main thread stack using the --main-stacksize= flag.
==13097== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers ==13118== Invalid read of size 4
==13118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13118== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13118== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13118== by 0x8062D5B: main (nginx.c:385)
==13118== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13118==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers ==13118==
==13118== Process terminating with default action of signal 11 (SIGSEGV)
==13118== Access not within mapped region at address 0x0
==13118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13118== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13118== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13118== by 0x8062D5B: main (nginx.c:385)
==13118== If you believe this happened as a result of a stack
==13118== overflow in your program's main thread (unlikely but
==13118== possible), you can try to increase the size of the
==13118== main thread stack using the --main-stacksize= flag.
==13118== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 8: bad option table ==13130== Invalid read of size 4
==13130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13130== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13130== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13130== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13130== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13130== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13130== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13130== by 0x8062D5B: main (nginx.c:385)
==13130== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13130==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 8: bad option table ==13130==
==13130== Process terminating with default action of signal 11 (SIGSEGV)
==13130== Access not within mapped region at address 0x0
==13130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13130== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13130== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13130== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13130== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13130== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13130== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13130== by 0x8062D5B: main (nginx.c:385)
==13130== If you believe this happened as a result of a stack
==13130== overflow in your program's main thread (unlikely but
==13130== possible), you can try to increase the size of the
==13130== main thread stack using the --main-stacksize= flag.
==13130== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 8: bad option table - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 8: bad option table - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 0)
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:44:43 [alert] 13083\#0: worker process 13130 exited on signal 11" (req 0) 2020/10/27 04:44:43 [debug] 13083\#0: shmtx forced unlock
2020/10/27 04:44:43 [debug] 13083\#0: wake up, sigio 0
2020/10/27 04:44:43 [debug] 13083\#0: reap children
2020/10/27 04:44:43 [debug] 13083\#0: child: 0 13130 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:44:43 [debug] 13083\#0: channel 3:4
2020/10/27 04:44:43 [notice] 13083\#0: start worker process 13151
'
084-inclusive-receiveuntil.t TEST 8: bad option table ==13151== Invalid read of size 4
==13151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13151== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13151== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13151== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13151== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13151== by 0x8062D5B: main (nginx.c:385)
==13151== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13151==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 8: bad option table ==13151==
==13151== Process terminating with default action of signal 11 (SIGSEGV)
==13151== Access not within mapped region at address 0x0
==13151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13151== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13151== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13151== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13151== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13151== by 0x8062D5B: main (nginx.c:385)
==13151== If you believe this happened as a result of a stack
==13151== overflow in your program's main thread (unlikely but
==13151== possible), you can try to increase the size of the
==13151== main thread stack using the --main-stacksize= flag.
==13151== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 8: bad option table - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 8: bad option table - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 1)
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:44:44 [alert] 13083\#0: worker process 13151 exited on signal 11" (req 1) 2020/10/27 04:44:44 [debug] 13083\#0: shmtx forced unlock
2020/10/27 04:44:44 [debug] 13083\#0: wake up, sigio 0
2020/10/27 04:44:44 [debug] 13083\#0: reap children
2020/10/27 04:44:44 [debug] 13083\#0: child: 0 13151 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:44:44 [debug] 13083\#0: channel 3:4
2020/10/27 04:44:44 [notice] 13083\#0: start worker process 13152
'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false ==13163== Invalid read of size 4
==13163== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13163== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13163== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13163== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13163== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13163== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13163== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13163== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13163== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13163== by 0x8062D5B: main (nginx.c:385)
==13163== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13163==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 5: inclusive option value false ==13163==
==13163== Process terminating with default action of signal 11 (SIGSEGV)
==13163== Access not within mapped region at address 0x0
==13163== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13163== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13163== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13163== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13163== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13163== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13163== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13163== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13163== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13163== by 0x8062D5B: main (nginx.c:385)
==13163== If you believe this happened as a result of a stack
==13163== overflow in your program's main thread (unlikely but
==13163== possible), you can try to increase the size of the
==13163== main thread stack using the --main-stacksize= flag.
==13163== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 5: inclusive option value false - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false ==13184== Invalid read of size 4
==13184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13184== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13184== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13184== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13184== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13184== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13184== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13184== by 0x8062D5B: main (nginx.c:385)
==13184== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13184==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 5: inclusive option value false ==13184==
==13184== Process terminating with default action of signal 11 (SIGSEGV)
==13184== Access not within mapped region at address 0x0
==13184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13184== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13184== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13184== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13184== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13184== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13184== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13184== by 0x8062D5B: main (nginx.c:385)
==13184== If you believe this happened as a result of a stack
==13184== overflow in your program's main thread (unlikely but
==13184== possible), you can try to increase the size of the
==13184== main thread stack using the --main-stacksize= flag.
==13184== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 5: inclusive option value false - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode ==13196== Invalid read of size 4
==13196== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13196== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13196== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13196== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13196== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13196== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13196== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13196== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13196== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13196== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13196== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13196== by 0x8062D5B: main (nginx.c:385)
==13196== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13196==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode ==13196==
==13196== Process terminating with default action of signal 11 (SIGSEGV)
==13196== Access not within mapped region at address 0x0
==13196== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13196== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13196== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13196== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13196== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13196== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13196== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13196== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13196== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13196== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13196== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13196== by 0x8062D5B: main (nginx.c:385)
==13196== If you believe this happened as a result of a stack
==13196== overflow in your program's main thread (unlikely but
==13196== possible), you can try to increase the size of the
==13196== main thread stack using the --main-stacksize= flag.
==13196== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ababcabdabcabe
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode ==13217== Invalid read of size 4
==13217== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13217== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13217== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13217== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13217== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13217== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13217== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13217== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13217== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13217== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13217== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13217== by 0x8062D5B: main (nginx.c:385)
==13217== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13217==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode ==13217==
==13217== Process terminating with default action of signal 11 (SIGSEGV)
==13217== Access not within mapped region at address 0x0
==13217== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13217== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13217== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13217== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13217== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13217== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13217== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13217== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13217== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13217== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13217== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13217== by 0x8062D5B: main (nginx.c:385)
==13217== If you believe this happened as a result of a stack
==13217== overflow in your program's main thread (unlikely but
==13217== possible), you can try to increase the size of the
==13217== main thread stack using the --main-stacksize= flag.
==13217== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ababcabdabcabe
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode ==13229== Invalid read of size 4
==13229== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13229== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13229== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13229== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13229== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13229== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13229== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13229== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13229== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13229== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13229== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13229== by 0x8062D5B: main (nginx.c:385)
==13229== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13229==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode ==13229==
==13229== Process terminating with default action of signal 11 (SIGSEGV)
==13229== Access not within mapped region at address 0x0
==13229== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13229== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13229== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13229== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13229== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13229== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13229== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13229== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13229== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13229== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13229== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13229== by 0x8062D5B: main (nginx.c:385)
==13229== If you believe this happened as a result of a stack
==13229== overflow in your program's main thread (unlikely but
==13229== possible), you can try to increase the size of the
==13229== main thread stack using the --main-stacksize= flag.
==13229== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode ==13250== Invalid read of size 4
==13250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13250== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13250== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13250== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13250== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13250== by 0x8062D5B: main (nginx.c:385)
==13250== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13250==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode ==13250==
==13250== Process terminating with default action of signal 11 (SIGSEGV)
==13250== Access not within mapped region at address 0x0
==13250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13250== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13250== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13250== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13250== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13250== by 0x8062D5B: main (nginx.c:385)
==13250== If you believe this happened as a result of a stack
==13250== overflow in your program's main thread (unlikely but
==13250== possible), you can try to increase the size of the
==13250== main thread stack using the --main-stacksize= flag.
==13250== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type ==13262== Invalid read of size 4
==13262== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13262== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13262== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13262== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13262== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13262== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13262== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13262== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13262== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13262== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13262== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13262== by 0x8062D5B: main (nginx.c:385)
==13262== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13262==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type ==13262==
==13262== Process terminating with default action of signal 11 (SIGSEGV)
==13262== Access not within mapped region at address 0x0
==13262== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13262== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13262== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13262== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13262== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13262== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13262== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13262== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13262== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13262== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13262== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13262== by 0x8062D5B: main (nginx.c:385)
==13262== If you believe this happened as a result of a stack
==13262== overflow in your program's main thread (unlikely but
==13262== possible), you can try to increase the size of the
==13262== main thread stack using the --main-stacksize= flag.
==13262== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 0)
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:44:58 [alert] 13083\#0: worker process 13262 exited on signal 11" (req 0) 2020/10/27 04:44:58 [debug] 13083\#0: shmtx forced unlock
2020/10/27 04:44:58 [debug] 13083\#0: wake up, sigio 0
2020/10/27 04:44:58 [debug] 13083\#0: reap children
2020/10/27 04:44:58 [debug] 13083\#0: child: 0 13262 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:44:58 [debug] 13083\#0: channel 3:4
2020/10/27 04:44:58 [notice] 13083\#0: start worker process 13283
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type ==13283== Invalid read of size 4
==13283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13283== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13283== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13283== by 0x8062D5B: main (nginx.c:385)
==13283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type ==13283==
==13283== Process terminating with default action of signal 11 (SIGSEGV)
==13283== Access not within mapped region at address 0x0
==13283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13283== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13283== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13283== by 0x8062D5B: main (nginx.c:385)
==13283== If you believe this happened as a result of a stack
==13283== overflow in your program's main thread (unlikely but
==13283== possible), you can try to increase the size of the
==13283== main thread stack using the --main-stacksize= flag.
==13283== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 1)
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:44:58 [alert] 13083\#0: worker process 13283 exited on signal 11" (req 1) 2020/10/27 04:44:58 [debug] 13083\#0: shmtx forced unlock
2020/10/27 04:44:58 [debug] 13083\#0: wake up, sigio 0
2020/10/27 04:44:58 [debug] 13083\#0: reap children
2020/10/27 04:44:58 [debug] 13083\#0: child: 0 13283 e:0 t:1 d:0 r:1 j:0
'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer ==13295== Invalid read of size 4
==13295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13295== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13295== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13295== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13295== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13295== by 0x8062D5B: main (nginx.c:385)
==13295== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13295==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer ==13295==
==13295== Process terminating with default action of signal 11 (SIGSEGV)
==13295== Access not within mapped region at address 0x0
==13295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13295== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13295== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13295== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13295== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13295== by 0x8062D5B: main (nginx.c:385)
==13295== If you believe this happened as a result of a stack
==13295== overflow in your program's main thread (unlikely but
==13295== possible), you can try to increase the size of the
==13295== main thread stack using the --main-stacksize= flag.
==13295== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read: --abc
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer ==13316== Invalid read of size 4
==13316== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13316== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13316== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13316== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13316== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13316== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13316== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13316== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13316== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13316== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13316== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13316== by 0x8062D5B: main (nginx.c:385)
==13316== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13316==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer ==13316==
==13316== Process terminating with default action of signal 11 (SIGSEGV)
==13316== Access not within mapped region at address 0x0
==13316== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13316== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13316== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13316== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13316== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13316== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13316== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13316== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13316== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13316== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13316== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13316== by 0x8062D5B: main (nginx.c:385)
==13316== If you believe this happened as a result of a stack
==13316== overflow in your program's main thread (unlikely but
==13316== possible), you can try to increase the size of the
==13316== main thread stack using the --main-stacksize= flag.
==13316== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read: --abc
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil ==13328== Invalid read of size 4
==13328== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13328== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13328== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13328== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13328== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13328== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13328== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13328== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13328== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13328== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13328== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13328== by 0x8062D5B: main (nginx.c:385)
==13328== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13328==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil ==13328==
==13328== Process terminating with default action of signal 11 (SIGSEGV)
==13328== Access not within mapped region at address 0x0
==13328== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13328== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13328== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13328== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13328== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13328== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13328== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13328== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13328== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13328== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13328== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13328== by 0x8062D5B: main (nginx.c:385)
==13328== If you believe this happened as a result of a stack
==13328== overflow in your program's main thread (unlikely but
==13328== possible), you can try to increase the size of the
==13328== main thread stack using the --main-stacksize= flag.
==13328== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil ==13349== Invalid read of size 4
==13349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13349== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13349== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13349== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13349== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13349== by 0x8062D5B: main (nginx.c:385)
==13349== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13349==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil ==13349==
==13349== Process terminating with default action of signal 11 (SIGSEGV)
==13349== Access not within mapped region at address 0x0
==13349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13349== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13349== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13349== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13349== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13349== by 0x8062D5B: main (nginx.c:385)
==13349== If you believe this happened as a result of a stack
==13349== overflow in your program's main thread (unlikely but
==13349== possible), you can try to increase the size of the
==13349== main thread stack using the --main-stacksize= flag.
==13349== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) ==13361== Invalid read of size 4
==13361== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13361== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13361== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13361== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13361== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13361== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13361== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13361== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13361== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13361== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13361== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13361== by 0x8062D5B: main (nginx.c:385)
==13361== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13361==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) ==13361==
==13361== Process terminating with default action of signal 11 (SIGSEGV)
==13361== Access not within mapped region at address 0x0
==13361== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13361== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13361== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13361== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13361== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13361== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13361== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13361== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13361== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13361== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13361== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13361== by 0x8062D5B: main (nginx.c:385)
==13361== If you believe this happened as a result of a stack
==13361== overflow in your program's main thread (unlikely but
==13361== possible), you can try to increase the size of the
==13361== main thread stack using the --main-stacksize= flag.
==13361== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcaa
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) ==13382== Invalid read of size 4
==13382== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13382== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13382== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13382== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13382== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13382== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13382== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13382== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13382== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13382== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13382== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13382== by 0x8062D5B: main (nginx.c:385)
==13382== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13382==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) ==13382==
==13382== Process terminating with default action of signal 11 (SIGSEGV)
==13382== Access not within mapped region at address 0x0
==13382== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13382== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13382== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13382== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13382== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13382== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13382== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13382== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13382== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13382== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13382== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13382== by 0x8062D5B: main (nginx.c:385)
==13382== If you believe this happened as a result of a stack
==13382== overflow in your program's main thread (unlikely but
==13382== possible), you can try to increase the size of the
==13382== main thread stack using the --main-stacksize= flag.
==13382== The main thread stack size used in this run was 8388608.

084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcaa
-failed to read a line: closed [d
-]
-close: 1 nil
'
086-init-by.t TEST 1: sanity (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==13391== Invalid read of size 4
==13391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13391== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==13391== by 0x8062D5B: main (nginx.c:385)
==13391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 1: sanity (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==13391==
==13391== Process terminating with default action of signal 11 (SIGSEGV)
==13391== Access not within mapped region at address 0x0
==13391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13391== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==13391== by 0x8062D5B: main (nginx.c:385)
==13391== If you believe this happened as a result of a stack
==13391== overflow in your program's main thread (unlikely but
==13391== possible), you can try to increase the size of the
==13391== main thread stack using the --main-stacksize= flag.
==13391== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 1: sanity (inline) - status code ok got: ''
expected: '200'
086-init-by.t TEST 1: sanity (inline) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 1: sanity (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==13392== Invalid read of size 4
==13392== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13392== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13392== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13392== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13392== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13392== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13392== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13392== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13392== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13392== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13392== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13392== by 0x8062D5B: main (nginx.c:385)
==13392== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13392==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 1: sanity (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==13392==
==13392== Process terminating with default action of signal 11 (SIGSEGV)
==13392== Access not within mapped region at address 0x0
==13392== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13392== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13392== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13392== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13392== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13392== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13392== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13392== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13392== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13392== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13392== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13392== by 0x8062D5B: main (nginx.c:385)
==13392== If you believe this happened as a result of a stack
==13392== overflow in your program's main thread (unlikely but
==13392== possible), you can try to increase the size of the
==13392== main thread stack using the --main-stacksize= flag.
==13392== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 1: sanity (inline) - status code ok got: ''
expected: '200'
086-init-by.t TEST 1: sanity (inline) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 2: sanity (file) ==13404== Invalid read of size 4
==13404== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13404== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13404== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13404== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13404== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13404== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13404== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13404== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13404== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13404== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13404== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13404== by 0x8062D5B: main (nginx.c:385)
==13404== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13404==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 2: sanity (file) ==13404==
==13404== Process terminating with default action of signal 11 (SIGSEGV)
==13404== Access not within mapped region at address 0x0
==13404== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13404== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13404== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13404== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13404== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13404== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13404== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13404== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13404== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13404== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13404== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13404== by 0x8062D5B: main (nginx.c:385)
==13404== If you believe this happened as a result of a stack
==13404== overflow in your program's main thread (unlikely but
==13404== possible), you can try to increase the size of the
==13404== main thread stack using the --main-stacksize= flag.
==13404== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 2: sanity (file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 2: sanity (file) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 2: sanity (file) ==13425== Invalid read of size 4
==13425== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13425== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13425== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13425== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13425== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13425== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13425== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13425== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13425== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13425== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13425== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13425== by 0x8062D5B: main (nginx.c:385)
==13425== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13425==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 2: sanity (file) ==13425==
==13425== Process terminating with default action of signal 11 (SIGSEGV)
==13425== Access not within mapped region at address 0x0
==13425== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13425== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13425== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13425== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13425== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13425== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13425== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13425== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13425== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13425== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13425== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13425== by 0x8062D5B: main (nginx.c:385)
==13425== If you believe this happened as a result of a stack
==13425== overflow in your program's main thread (unlikely but
==13425== possible), you can try to increase the size of the
==13425== main thread stack using the --main-stacksize= flag.
==13425== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 2: sanity (file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 2: sanity (file) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 3: require ==13438== Invalid read of size 4
==13438== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13438== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13438== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13438== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13438== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13438== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13438== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13438== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13438== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13438== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13438== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13438== by 0x8062D5B: main (nginx.c:385)
==13438== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13438==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 3: require ==13438==
==13438== Process terminating with default action of signal 11 (SIGSEGV)
==13438== Access not within mapped region at address 0x0
==13438== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13438== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13438== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13438== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13438== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13438== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13438== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13438== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13438== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13438== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13438== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13438== by 0x8062D5B: main (nginx.c:385)
==13438== If you believe this happened as a result of a stack
==13438== overflow in your program's main thread (unlikely but
==13438== possible), you can try to increase the size of the
==13438== main thread stack using the --main-stacksize= flag.
==13438== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 3: require - status code ok got: ''
expected: '200'
086-init-by.t TEST 3: require - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 3: require ==13459== Invalid read of size 4
==13459== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13459== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13459== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13459== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13459== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13459== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13459== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13459== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13459== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13459== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13459== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13459== by 0x8062D5B: main (nginx.c:385)
==13459== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13459==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 3: require ==13459==
==13459== Process terminating with default action of signal 11 (SIGSEGV)
==13459== Access not within mapped region at address 0x0
==13459== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13459== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13459== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13459== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13459== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13459== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13459== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13459== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13459== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13459== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13459== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13459== by 0x8062D5B: main (nginx.c:385)
==13459== If you believe this happened as a result of a stack
==13459== overflow in your program's main thread (unlikely but
==13459== possible), you can try to increase the size of the
==13459== main thread stack using the --main-stacksize= flag.
==13459== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 3: require - status code ok got: ''
expected: '200'
086-init-by.t TEST 3: require - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 4: shdict (single) ==13472== Invalid read of size 4
==13472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13472== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13472== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13472== by 0x8062D5B: main (nginx.c:385)
==13472== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13472==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 4: shdict (single) ==13472==
==13472== Process terminating with default action of signal 11 (SIGSEGV)
==13472== Access not within mapped region at address 0x0
==13472== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13472== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13472== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13472== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13472== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13472== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13472== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13472== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13472== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13472== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13472== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13472== by 0x8062D5B: main (nginx.c:385)
==13472== If you believe this happened as a result of a stack
==13472== overflow in your program's main thread (unlikely but
==13472== possible), you can try to increase the size of the
==13472== main thread stack using the --main-stacksize= flag.
==13472== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 4: shdict (single) - status code ok got: ''
expected: '200'
086-init-by.t TEST 4: shdict (single) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 4: shdict (single) ==13493== Invalid read of size 4
==13493== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13493== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13493== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13493== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13493== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13493== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13493== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13493== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13493== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13493== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13493== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13493== by 0x8062D5B: main (nginx.c:385)
==13493== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13493==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 4: shdict (single) ==13493==
==13493== Process terminating with default action of signal 11 (SIGSEGV)
==13493== Access not within mapped region at address 0x0
==13493== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13493== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13493== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13493== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13493== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13493== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13493== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13493== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13493== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13493== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13493== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13493== by 0x8062D5B: main (nginx.c:385)
==13493== If you believe this happened as a result of a stack
==13493== overflow in your program's main thread (unlikely but
==13493== possible), you can try to increase the size of the
==13493== main thread stack using the --main-stacksize= flag.
==13493== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 4: shdict (single) - status code ok got: ''
expected: '200'
086-init-by.t TEST 4: shdict (single) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 5: shdict (multi) ==13505== Invalid read of size 4
==13505== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13505== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13505== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13505== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13505== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13505== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13505== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13505== by 0x8062D5B: main (nginx.c:385)
==13505== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13505==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 5: shdict (multi) ==13505==
==13505== Process terminating with default action of signal 11 (SIGSEGV)
==13505== Access not within mapped region at address 0x0
==13505== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13505== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13505== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13505== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13505== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13505== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13505== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13505== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13505== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13505== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13505== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13505== by 0x8062D5B: main (nginx.c:385)
==13505== If you believe this happened as a result of a stack
==13505== overflow in your program's main thread (unlikely but
==13505== possible), you can try to increase the size of the
==13505== main thread stack using the --main-stacksize= flag.
==13505== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 5: shdict (multi) - status code ok got: ''
expected: '200'
086-init-by.t TEST 5: shdict (multi) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 5: shdict (multi) ==13526== Invalid read of size 4
==13526== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13526== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13526== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13526== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13526== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13526== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13526== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13526== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13526== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13526== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13526== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13526== by 0x8062D5B: main (nginx.c:385)
==13526== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13526==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 5: shdict (multi) ==13526==
==13526== Process terminating with default action of signal 11 (SIGSEGV)
==13526== Access not within mapped region at address 0x0
==13526== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13526== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13526== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13526== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13526== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13526== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13526== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13526== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13526== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13526== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13526== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13526== by 0x8062D5B: main (nginx.c:385)
==13526== If you believe this happened as a result of a stack
==13526== overflow in your program's main thread (unlikely but
==13526== possible), you can try to increase the size of the
==13526== main thread stack using the --main-stacksize= flag.
==13526== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 5: shdict (multi) - status code ok got: ''
expected: '200'
086-init-by.t TEST 5: shdict (multi) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 6: print ==13538== Invalid read of size 4
==13538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13538== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13538== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13538== by 0x8062D5B: main (nginx.c:385)
==13538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 6: print ==13538==
==13538== Process terminating with default action of signal 11 (SIGSEGV)
==13538== Access not within mapped region at address 0x0
==13538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13538== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13538== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13538== by 0x8062D5B: main (nginx.c:385)
==13538== If you believe this happened as a result of a stack
==13538== overflow in your program's main thread (unlikely but
==13538== possible), you can try to increase the size of the
==13538== main thread stack using the --main-stacksize= flag.
==13538== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 6: print - status code ok got: ''
expected: '200'
086-init-by.t TEST 6: print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 6: print ==13559== Invalid read of size 4
==13559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13559== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13559== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13559== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13559== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13559== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13559== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13559== by 0x8062D5B: main (nginx.c:385)
==13559== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13559==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 6: print ==13559==
==13559== Process terminating with default action of signal 11 (SIGSEGV)
==13559== Access not within mapped region at address 0x0
==13559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13559== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13559== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13559== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13559== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13559== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13559== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13559== by 0x8062D5B: main (nginx.c:385)
==13559== If you believe this happened as a result of a stack
==13559== overflow in your program's main thread (unlikely but
==13559== possible), you can try to increase the size of the
==13559== main thread stack using the --main-stacksize= flag.
==13559== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 6: print - status code ok got: ''
expected: '200'
086-init-by.t TEST 6: print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 7: ngx.log ==13571== Invalid read of size 4
==13571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13571== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13571== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13571== by 0x8062D5B: main (nginx.c:385)
==13571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 7: ngx.log ==13571==
==13571== Process terminating with default action of signal 11 (SIGSEGV)
==13571== Access not within mapped region at address 0x0
==13571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13571== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13571== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13571== by 0x8062D5B: main (nginx.c:385)
==13571== If you believe this happened as a result of a stack
==13571== overflow in your program's main thread (unlikely but
==13571== possible), you can try to increase the size of the
==13571== main thread stack using the --main-stacksize= flag.
==13571== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 7: ngx.log - status code ok got: ''
expected: '200'
086-init-by.t TEST 7: ngx.log - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 7: ngx.log ==13592== Invalid read of size 4
==13592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13592== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13592== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13592== by 0x8062D5B: main (nginx.c:385)
==13592== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13592==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 7: ngx.log ==13592==
==13592== Process terminating with default action of signal 11 (SIGSEGV)
==13592== Access not within mapped region at address 0x0
==13592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13592== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13592== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13592== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13592== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13592== by 0x8062D5B: main (nginx.c:385)
==13592== If you believe this happened as a result of a stack
==13592== overflow in your program's main thread (unlikely but
==13592== possible), you can try to increase the size of the
==13592== main thread stack using the --main-stacksize= flag.
==13592== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 7: ngx.log - status code ok got: ''
expected: '200'
086-init-by.t TEST 7: ngx.log - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 8: require (with shm defined) ==13604== Invalid read of size 4
==13604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13604== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13604== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13604== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13604== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13604== by 0x8062D5B: main (nginx.c:385)
==13604== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13604==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 8: require (with shm defined) ==13604==
==13604== Process terminating with default action of signal 11 (SIGSEGV)
==13604== Access not within mapped region at address 0x0
==13604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13604== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13604== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13604== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13604== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13604== by 0x8062D5B: main (nginx.c:385)
==13604== If you believe this happened as a result of a stack
==13604== overflow in your program's main thread (unlikely but
==13604== possible), you can try to increase the size of the
==13604== main thread stack using the --main-stacksize= flag.
==13604== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 8: require (with shm defined) - status code ok got: ''
expected: '200'
086-init-by.t TEST 8: require (with shm defined) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 8: require (with shm defined) ==13625== Invalid read of size 4
==13625== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13625== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13625== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13625== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13625== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13625== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13625== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13625== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13625== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13625== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13625== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13625== by 0x8062D5B: main (nginx.c:385)
==13625== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13625==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 8: require (with shm defined) ==13625==
==13625== Process terminating with default action of signal 11 (SIGSEGV)
==13625== Access not within mapped region at address 0x0
==13625== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13625== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13625== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13625== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13625== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13625== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13625== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13625== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13625== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13625== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13625== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13625== by 0x8062D5B: main (nginx.c:385)
==13625== If you believe this happened as a result of a stack
==13625== overflow in your program's main thread (unlikely but
==13625== possible), you can try to increase the size of the
==13625== main thread stack using the --main-stacksize= flag.
==13625== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 8: require (with shm defined) - status code ok got: ''
expected: '200'
086-init-by.t TEST 8: require (with shm defined) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) ==13638== Invalid read of size 4
==13638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13638== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13638== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13638== by 0x8062D5B: main (nginx.c:385)
==13638== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13638==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) ==13638==
==13638== Process terminating with default action of signal 11 (SIGSEGV)
==13638== Access not within mapped region at address 0x0
==13638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13638== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13638== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13638== by 0x8062D5B: main (nginx.c:385)
==13638== If you believe this happened as a result of a stack
==13638== overflow in your program's main thread (unlikely but
==13638== possible), you can try to increase the size of the
==13638== main thread stack using the --main-stacksize= flag.
==13638== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - status code ok got: ''
expected: '200'
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) ==13659== Invalid read of size 4
==13659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13659== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13659== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13659== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13659== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13659== by 0x8062D5B: main (nginx.c:385)
==13659== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13659==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) ==13659==
==13659== Process terminating with default action of signal 11 (SIGSEGV)
==13659== Access not within mapped region at address 0x0
==13659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13659== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13659== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13659== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13659== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13659== by 0x8062D5B: main (nginx.c:385)
==13659== If you believe this happened as a result of a stack
==13659== overflow in your program's main thread (unlikely but
==13659== possible), you can try to increase the size of the
==13659== main thread stack using the --main-stacksize= flag.
==13659== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - status code ok got: ''
expected: '200'
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 10: coroutine API (init_by_lua_file) ==13671== Invalid read of size 4
==13671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13671== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13671== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13671== by 0x8062D5B: main (nginx.c:385)
==13671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 10: coroutine API (init_by_lua_file) ==13671==
==13671== Process terminating with default action of signal 11 (SIGSEGV)
==13671== Access not within mapped region at address 0x0
==13671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13671== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13671== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13671== by 0x8062D5B: main (nginx.c:385)
==13671== If you believe this happened as a result of a stack
==13671== overflow in your program's main thread (unlikely but
==13671== possible), you can try to increase the size of the
==13671== main thread stack using the --main-stacksize= flag.
==13671== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 10: coroutine API (init_by_lua_file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 10: coroutine API (init_by_lua_file) ==13692== Invalid read of size 4
==13692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13692== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13692== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13692== by 0x8062D5B: main (nginx.c:385)
==13692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 10: coroutine API (init_by_lua_file) ==13692==
==13692== Process terminating with default action of signal 11 (SIGSEGV)
==13692== Access not within mapped region at address 0x0
==13692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13692== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13692== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13692== by 0x8062D5B: main (nginx.c:385)
==13692== If you believe this happened as a result of a stack
==13692== overflow in your program's main thread (unlikely but
==13692== possible), you can try to increase the size of the
==13692== main thread stack using the --main-stacksize= flag.
==13692== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 10: coroutine API (init_by_lua_file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 11: access a field in the ngx. table ==13705== Invalid read of size 4
==13705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13705== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13705== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13705== by 0x8062D5B: main (nginx.c:385)
==13705== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13705==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 11: access a field in the ngx. table ==13705==
==13705== Process terminating with default action of signal 11 (SIGSEGV)
==13705== Access not within mapped region at address 0x0
==13705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13705== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13705== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13705== by 0x8062D5B: main (nginx.c:385)
==13705== If you believe this happened as a result of a stack
==13705== overflow in your program's main thread (unlikely but
==13705== possible), you can try to increase the size of the
==13705== main thread stack using the --main-stacksize= flag.
==13705== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 11: access a field in the ngx. table - status code ok got: ''
expected: '200'
086-init-by.t TEST 11: access a field in the ngx. table - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 11: access a field in the ngx. table ==13726== Invalid read of size 4
==13726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13726== by 0x8062D5B: main (nginx.c:385)
==13726== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13726==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
086-init-by.t TEST 11: access a field in the ngx. table ==13726==
==13726== Process terminating with default action of signal 11 (SIGSEGV)
==13726== Access not within mapped region at address 0x0
==13726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13726== by 0x8062D5B: main (nginx.c:385)
==13726== If you believe this happened as a result of a stack
==13726== overflow in your program's main thread (unlikely but
==13726== possible), you can try to increase the size of the
==13726== main thread stack using the --main-stacksize= flag.
==13726== The main thread stack size used in this run was 8388608.

086-init-by.t TEST 11: access a field in the ngx. table - status code ok got: ''
expected: '200'
086-init-by.t TEST 11: access a field in the ngx. table - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - Can't connect to 127.0.0.1:1984: Connection refused ==13735== Invalid read of size 4
==13735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13735== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13735== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13735== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13735== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==13735== by 0x8062D5B: main (nginx.c:385)
==13735== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13735==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - Can't connect to 127.0.0.1:1984: Connection refused ==13735==
==13735== Process terminating with default action of signal 11 (SIGSEGV)
==13735== Access not within mapped region at address 0x0
==13735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13735== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13735== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13735== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13735== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==13735== by 0x8062D5B: main (nginx.c:385)
==13735== If you believe this happened as a result of a stack
==13735== overflow in your program's main thread (unlikely but
==13735== possible), you can try to increase the size of the
==13735== main thread stack using the --main-stacksize= flag.
==13735== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 11: access the google DNS server (using domain names) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - Can't connect to 127.0.0.1:1984: Connection refused ==13736== Invalid read of size 4
==13736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13736== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13736== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13736== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13736== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13736== by 0x8062D5B: main (nginx.c:385)
==13736== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13736==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - Can't connect to 127.0.0.1:1984: Connection refused ==13736==
==13736== Process terminating with default action of signal 11 (SIGSEGV)
==13736== Access not within mapped region at address 0x0
==13736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13736== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13736== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13736== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13736== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13736== by 0x8062D5B: main (nginx.c:385)
==13736== If you believe this happened as a result of a stack
==13736== overflow in your program's main thread (unlikely but
==13736== possible), you can try to increase the size of the
==13736== main thread stack using the --main-stacksize= flag.
==13736== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 11: access the google DNS server (using domain names) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects ==13748== Invalid read of size 4
==13748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13748== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13748== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13748== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13748== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13748== by 0x8062D5B: main (nginx.c:385)
==13748== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13748==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects ==13748==
==13748== Process terminating with default action of signal 11 (SIGSEGV)
==13748== Access not within mapped region at address 0x0
==13748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13748== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13748== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13748== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13748== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13748== by 0x8062D5B: main (nginx.c:385)
==13748== If you believe this happened as a result of a stack
==13748== overflow in your program's main thread (unlikely but
==13748== possible), you can try to increase the size of the
==13748== main thread stack using the --main-stacksize= flag.
==13748== The main thread stack size used in this run was 8388608.
==13748== 512 bytes in 1 blocks are definitely lost in loss record 2,744 of 2,969
==13748== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==13748== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==13748== by 0x40CC146: mem_alloc (lib_aux.c:335)
==13748== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==13748== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==13748== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==13748== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==13748== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==13748== by 0x40BB16A: trace_state (lj_trace.c:680)
==13748== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==13748== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==13748== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==13748== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==13748== by 0x407FA29: lua_resume (lj_api.c:1296)
==13748== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==13748== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==13748== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==13748== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==13748== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==13748== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==13748== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==13748== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==13748== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==13748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13748== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13748== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13748== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13748== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13748== by 0x8062D5B: main (nginx.c:385)
==13748==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects ==13769== Invalid read of size 4
==13769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13769== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13769== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13769== by 0x8062D5B: main (nginx.c:385)
==13769== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13769==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects ==13769==
==13769== Process terminating with default action of signal 11 (SIGSEGV)
==13769== Access not within mapped region at address 0x0
==13769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13769== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13769== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13769== by 0x8062D5B: main (nginx.c:385)
==13769== If you believe this happened as a result of a stack
==13769== overflow in your program's main thread (unlikely but
==13769== possible), you can try to increase the size of the
==13769== main thread stack using the --main-stacksize= flag.
==13769== The main thread stack size used in this run was 8388608.
==13769== 512 bytes in 1 blocks are definitely lost in loss record 2,744 of 2,969
==13769== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==13769== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==13769== by 0x40CC146: mem_alloc (lib_aux.c:335)
==13769== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==13769== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==13769== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==13769== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==13769== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==13769== by 0x40BB16A: trace_state (lj_trace.c:680)
==13769== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==13769== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==13769== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==13769== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==13769== by 0x407FA29: lua_resume (lj_api.c:1296)
==13769== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==13769== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==13769== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==13769== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==13769== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==13769== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==13769== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==13769== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==13769== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==13769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13769== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13769== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13769== by 0x8062D5B: main (nginx.c:385)
==13769==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 16: bad request tries to close ==13781== Invalid read of size 4
==13781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13781== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13781== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13781== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13781== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13781== by 0x8062D5B: main (nginx.c:385)
==13781== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13781==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 16: bad request tries to close ==13781==
==13781== Process terminating with default action of signal 11 (SIGSEGV)
==13781== Access not within mapped region at address 0x0
==13781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13781== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13781== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13781== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13781== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13781== by 0x8062D5B: main (nginx.c:385)
==13781== If you believe this happened as a result of a stack
==13781== overflow in your program's main thread (unlikely but
==13781== possible), you can try to increase the size of the
==13781== main thread stack using the --main-stacksize= flag.
==13781== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 16: bad request tries to close - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 16: bad request tries to close - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 16: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:05 [alert] 13734\#0: worker process 13781 exited on signal 11" (req 0) 2020/10/27 04:46:05 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:05 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:05 [debug] 13734\#0: reap children
2020/10/27 04:46:05 [debug] 13734\#0: child: 0 13781 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:05 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:05 [notice] 13734\#0: start worker process 13803
'
087-udp-socket.t TEST 16: bad request tries to close ==13803== Invalid read of size 4
==13803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13803== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13803== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13803== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13803== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13803== by 0x8062D5B: main (nginx.c:385)
==13803== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13803==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 16: bad request tries to close ==13803==
==13803== Process terminating with default action of signal 11 (SIGSEGV)
==13803== Access not within mapped region at address 0x0
==13803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13803== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13803== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13803== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13803== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13803== by 0x8062D5B: main (nginx.c:385)
==13803== If you believe this happened as a result of a stack
==13803== overflow in your program's main thread (unlikely but
==13803== possible), you can try to increase the size of the
==13803== main thread stack using the --main-stacksize= flag.
==13803== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 16: bad request tries to close - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 16: bad request tries to close - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 16: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:05 [alert] 13734\#0: worker process 13781 exited on signal 11" (req 1) 2020/10/27 04:46:05 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:05 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:05 [debug] 13734\#0: reap children
2020/10/27 04:46:05 [debug] 13734\#0: child: 0 13781 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:05 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:05 [notice] 13734\#0: start worker process 13803
2020/10/27 04:46:05 [debug] 13734\#0: sigsuspend
2020/10/27 04:46:05 [debug] 13803\#0: malloc: 0539B128:12
2020/10/27 04:46:05 [debug] 13803\#0: malloc: 0539B168:8
'
087-udp-socket.t TEST 16: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:05 [alert] 13734\#0: worker process 13803 exited on signal 11" (req 1) 2020/10/27 04:46:05 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:05 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:05 [debug] 13734\#0: reap children
2020/10/27 04:46:05 [debug] 13734\#0: child: 0 13803 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:05 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:05 [notice] 13734\#0: start worker process 13804
'
087-udp-socket.t TEST 18: send boolean and nil ==13815== Invalid read of size 4
==13815== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13815== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13815== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13815== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13815== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13815== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13815== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13815== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13815== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13815== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13815== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13815== by 0x8062D5B: main (nginx.c:385)
==13815== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13815==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 18: send boolean and nil ==13815==
==13815== Process terminating with default action of signal 11 (SIGSEGV)
==13815== Access not within mapped region at address 0x0
==13815== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13815== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13815== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13815== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13815== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13815== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13815== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13815== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13815== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13815== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13815== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13815== by 0x8062D5B: main (nginx.c:385)
==13815== If you believe this happened as a result of a stack
==13815== overflow in your program's main thread (unlikely but
==13815== possible), you can try to increase the size of the
==13815== main thread stack using the --main-stacksize= flag.
==13815== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 18: send boolean and nil - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 18: send boolean and nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-sent ok
-sent ok
-sent ok
'
087-udp-socket.t TEST 18: send boolean and nil ==13837== Invalid read of size 4
==13837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13837== by 0x8062D5B: main (nginx.c:385)
==13837== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13837==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 18: send boolean and nil ==13837==
==13837== Process terminating with default action of signal 11 (SIGSEGV)
==13837== Access not within mapped region at address 0x0
==13837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13837== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13837== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13837== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13837== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13837== by 0x8062D5B: main (nginx.c:385)
==13837== If you believe this happened as a result of a stack
==13837== overflow in your program's main thread (unlikely but
==13837== possible), you can try to increase the size of the
==13837== main thread stack using the --main-stacksize= flag.
==13837== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 18: send boolean and nil - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 18: send boolean and nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-sent ok
-sent ok
-sent ok
'
087-udp-socket.t TEST 14: bad request tries to send ==13849== Invalid read of size 4
==13849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13849== by 0x8062D5B: main (nginx.c:385)
==13849== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13849==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 14: bad request tries to send ==13849==
==13849== Process terminating with default action of signal 11 (SIGSEGV)
==13849== Access not within mapped region at address 0x0
==13849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13849== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13849== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13849== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13849== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13849== by 0x8062D5B: main (nginx.c:385)
==13849== If you believe this happened as a result of a stack
==13849== overflow in your program's main thread (unlikely but
==13849== possible), you can try to increase the size of the
==13849== main thread stack using the --main-stacksize= flag.
==13849== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 14: bad request tries to send - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 14: bad request tries to send - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 14: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:12 [alert] 13734\#0: worker process 13849 exited on signal 11" (req 0) 2020/10/27 04:46:12 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:12 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:12 [debug] 13734\#0: reap children
2020/10/27 04:46:12 [debug] 13734\#0: child: 0 13849 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:12 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:12 [notice] 13734\#0: start worker process 13870
'
087-udp-socket.t TEST 14: bad request tries to send ==13870== Invalid read of size 4
==13870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13870== by 0x8062D5B: main (nginx.c:385)
==13870== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13870==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 14: bad request tries to send ==13870==
==13870== Process terminating with default action of signal 11 (SIGSEGV)
==13870== Access not within mapped region at address 0x0
==13870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13870== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13870== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13870== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13870== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13870== by 0x8062D5B: main (nginx.c:385)
==13870== If you believe this happened as a result of a stack
==13870== overflow in your program's main thread (unlikely but
==13870== possible), you can try to increase the size of the
==13870== main thread stack using the --main-stacksize= flag.
==13870== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 14: bad request tries to send - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 14: bad request tries to send - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 14: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:12 [alert] 13734\#0: worker process 13849 exited on signal 11" (req 1) 2020/10/27 04:46:12 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:12 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:12 [debug] 13734\#0: reap children
2020/10/27 04:46:12 [debug] 13734\#0: child: 0 13849 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:12 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:12 [notice] 13734\#0: start worker process 13870
2020/10/27 04:46:12 [debug] 13734\#0: sigsuspend
2020/10/27 04:46:12 [debug] 13870\#0: malloc: 0593D1A8:12
2020/10/27 04:46:12 [debug] 13870\#0: malloc: 05A5CA50:8
'
087-udp-socket.t TEST 14: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:13 [alert] 13734\#0: worker process 13870 exited on signal 11" (req 1) 2020/10/27 04:46:13 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:13 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:13 [debug] 13734\#0: reap children
2020/10/27 04:46:13 [debug] 13734\#0: child: 0 13870 e:0 t:1 d:0 r:1 j:0
'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase ==13882== Invalid read of size 4
==13882== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13882== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13882== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13882== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13882== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13882== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13882== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13882== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13882== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13882== by 0x8062D5B: main (nginx.c:385)
==13882== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13882==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase ==13882==
==13882== Process terminating with default action of signal 11 (SIGSEGV)
==13882== Access not within mapped region at address 0x0
==13882== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13882== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13882== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13882== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13882== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13882== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13882== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13882== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13882== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13882== by 0x8062D5B: main (nginx.c:385)
==13882== If you believe this happened as a result of a stack
==13882== overflow in your program's main thread (unlikely but
==13882== possible), you can try to increase the size of the
==13882== main thread stack using the --main-stacksize= flag.
==13882== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase ==13904== Invalid read of size 4
==13904== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13904== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13904== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13904== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13904== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13904== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13904== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13904== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13904== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13904== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13904== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13904== by 0x8062D5B: main (nginx.c:385)
==13904== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13904==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase ==13904==
==13904== Process terminating with default action of signal 11 (SIGSEGV)
==13904== Access not within mapped region at address 0x0
==13904== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13904== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13904== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13904== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13904== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13904== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13904== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13904== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13904== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13904== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13904== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13904== by 0x8062D5B: main (nginx.c:385)
==13904== If you believe this happened as a result of a stack
==13904== overflow in your program's main thread (unlikely but
==13904== possible), you can try to increase the size of the
==13904== main thread stack using the --main-stacksize= flag.
==13904== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1'
087-udp-socket.t TEST 15: bad request tries to receive ==13916== Invalid read of size 4
==13916== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13916== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13916== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13916== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13916== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13916== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13916== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13916== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13916== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13916== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13916== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13916== by 0x8062D5B: main (nginx.c:385)
==13916== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13916==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 15: bad request tries to receive ==13916==
==13916== Process terminating with default action of signal 11 (SIGSEGV)
==13916== Access not within mapped region at address 0x0
==13916== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13916== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13916== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13916== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13916== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13916== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13916== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13916== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13916== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13916== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13916== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13916== by 0x8062D5B: main (nginx.c:385)
==13916== If you believe this happened as a result of a stack
==13916== overflow in your program's main thread (unlikely but
==13916== possible), you can try to increase the size of the
==13916== main thread stack using the --main-stacksize= flag.
==13916== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 15: bad request tries to receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 15: bad request tries to receive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 15: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:20 [alert] 13734\#0: worker process 13916 exited on signal 11" (req 0) 2020/10/27 04:46:20 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:20 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:20 [debug] 13734\#0: reap children
2020/10/27 04:46:20 [debug] 13734\#0: child: 0 13916 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:20 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:20 [notice] 13734\#0: start worker process 13937
'
087-udp-socket.t TEST 15: bad request tries to receive ==13937== Invalid read of size 4
==13937== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13937== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13937== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13937== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13937== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13937== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13937== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13937== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13937== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13937== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13937== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13937== by 0x8062D5B: main (nginx.c:385)
==13937== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13937==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 15: bad request tries to receive ==13937==
==13937== Process terminating with default action of signal 11 (SIGSEGV)
==13937== Access not within mapped region at address 0x0
==13937== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13937== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13937== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13937== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13937== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13937== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13937== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13937== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13937== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13937== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13937== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13937== by 0x8062D5B: main (nginx.c:385)
==13937== If you believe this happened as a result of a stack
==13937== overflow in your program's main thread (unlikely but
==13937== possible), you can try to increase the size of the
==13937== main thread stack using the --main-stacksize= flag.
==13937== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 15: bad request tries to receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 15: bad request tries to receive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 15: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:20 [alert] 13734\#0: worker process 13916 exited on signal 11" (req 1) 2020/10/27 04:46:20 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:20 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:20 [debug] 13734\#0: reap children
2020/10/27 04:46:20 [debug] 13734\#0: child: 0 13916 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:20 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:20 [notice] 13734\#0: start worker process 13937
2020/10/27 04:46:20 [debug] 13734\#0: sigsuspend
2020/10/27 04:46:20 [debug] 13937\#0: malloc: 060BFB18:12
2020/10/27 04:46:20 [debug] 13937\#0: malloc: 060BFB58:8
'
087-udp-socket.t TEST 15: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:20 [alert] 13734\#0: worker process 13937 exited on signal 11" (req 1) 2020/10/27 04:46:20 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:20 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:20 [debug] 13734\#0: reap children
2020/10/27 04:46:20 [debug] 13734\#0: child: 0 13937 e:0 t:1 d:0 r:1 j:0
'
087-udp-socket.t TEST 9: read timeout and re-receive ==13950== Invalid read of size 4
==13950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13950== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13950== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13950== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13950== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13950== by 0x8062D5B: main (nginx.c:385)
==13950== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13950==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 9: read timeout and re-receive ==13950==
==13950== Process terminating with default action of signal 11 (SIGSEGV)
==13950== Access not within mapped region at address 0x0
==13950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13950== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13950== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13950== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13950== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13950== by 0x8062D5B: main (nginx.c:385)
==13950== If you believe this happened as a result of a stack
==13950== overflow in your program's main thread (unlikely but
==13950== possible), you can try to increase the size of the
==13950== main thread stack using the --main-stacksize= flag.
==13950== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 9: read timeout and re-receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 9: read timeout and re-receive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received: hello world
'
087-udp-socket.t TEST 9: read timeout and re-receive ==13973== Invalid read of size 4
==13973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13973== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13973== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13973== by 0x8062D5B: main (nginx.c:385)
==13973== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 9: read timeout and re-receive ==13973==
==13973== Process terminating with default action of signal 11 (SIGSEGV)
==13973== Access not within mapped region at address 0x0
==13973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13973== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==13973== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==13973== by 0x8062D5B: main (nginx.c:385)
==13973== If you believe this happened as a result of a stack
==13973== overflow in your program's main thread (unlikely but
==13973== possible), you can try to increase the size of the
==13973== main thread stack using the --main-stacksize= flag.
==13973== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 9: read timeout and re-receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 9: read timeout and re-receive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received: hello world
'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 ==13987== Invalid read of size 4
==13987== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13987== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13987== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13987== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13987== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13987== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13987== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13987== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13987== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13987== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13987== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13987== by 0x8062D5B: main (nginx.c:385)
==13987== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13987==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 ==13987==
==13987== Process terminating with default action of signal 11 (SIGSEGV)
==13987== Access not within mapped region at address 0x0
==13987== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==13987== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==13987== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==13987== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==13987== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==13987== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==13987== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==13987== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==13987== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==13987== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==13987== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==13987== by 0x8062D5B: main (nginx.c:385)
==13987== If you believe this happened as a result of a stack
==13987== overflow in your program's main thread (unlikely but
==13987== possible), you can try to increase the size of the
==13987== main thread stack using the --main-stacksize= flag.
==13987== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 ==14008== Invalid read of size 4
==14008== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14008== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14008== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14008== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14008== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14008== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14008== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14008== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14008== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14008== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14008== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14008== by 0x8062D5B: main (nginx.c:385)
==14008== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14008==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 ==14008==
==14008== Process terminating with default action of signal 11 (SIGSEGV)
==14008== Access not within mapped region at address 0x0
==14008== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14008== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14008== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14008== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14008== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14008== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14008== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14008== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14008== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14008== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14008== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14008== by 0x8062D5B: main (nginx.c:385)
==14008== If you believe this happened as a result of a stack
==14008== overflow in your program's main thread (unlikely but
==14008== possible), you can try to increase the size of the
==14008== main thread stack using the --main-stacksize= flag.
==14008== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) ==14020== Invalid read of size 4
==14020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14020== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14020== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14020== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14020== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14020== by 0x8062D5B: main (nginx.c:385)
==14020== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14020==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) ==14020==
==14020== Process terminating with default action of signal 11 (SIGSEGV)
==14020== Access not within mapped region at address 0x0
==14020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14020== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14020== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14020== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14020== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14020== by 0x8062D5B: main (nginx.c:385)
==14020== If you believe this happened as a result of a stack
==14020== overflow in your program's main thread (unlikely but
==14020== possible), you can try to increase the size of the
==14020== main thread stack using the --main-stacksize= flag.
==14020== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) ==14041== Invalid read of size 4
==14041== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14041== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14041== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14041== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14041== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14041== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14041== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14041== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14041== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14041== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14041== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14041== by 0x8062D5B: main (nginx.c:385)
==14041== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14041==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) ==14041==
==14041== Process terminating with default action of signal 11 (SIGSEGV)
==14041== Access not within mapped region at address 0x0
==14041== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14041== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14041== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14041== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14041== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14041== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14041== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14041== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14041== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14041== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14041== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14041== by 0x8062D5B: main (nginx.c:385)
==14041== If you believe this happened as a result of a stack
==14041== overflow in your program's main thread (unlikely but
==14041== possible), you can try to increase the size of the
==14041== main thread stack using the --main-stacksize= flag.
==14041== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 7: recv timeout ==14053== Invalid read of size 4
==14053== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14053== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14053== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14053== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14053== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14053== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14053== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14053== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14053== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14053== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14053== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14053== by 0x8062D5B: main (nginx.c:385)
==14053== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14053==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 7: recv timeout ==14053==
==14053== Process terminating with default action of signal 11 (SIGSEGV)
==14053== Access not within mapped region at address 0x0
==14053== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14053== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14053== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14053== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14053== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14053== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14053== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14053== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14053== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14053== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14053== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14053== by 0x8062D5B: main (nginx.c:385)
==14053== If you believe this happened as a result of a stack
==14053== overflow in your program's main thread (unlikely but
==14053== possible), you can try to increase the size of the
==14053== main thread stack using the --main-stacksize= flag.
==14053== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 7: recv timeout - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 7: recv timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
087-udp-socket.t TEST 7: recv timeout - pattern "lua udp socket read timed out" should match a line in error.log (req 0)
087-udp-socket.t TEST 7: recv timeout ==14074== Invalid read of size 4
==14074== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14074== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14074== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14074== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14074== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14074== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14074== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14074== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14074== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14074== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14074== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14074== by 0x8062D5B: main (nginx.c:385)
==14074== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14074==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 7: recv timeout ==14074==
==14074== Process terminating with default action of signal 11 (SIGSEGV)
==14074== Access not within mapped region at address 0x0
==14074== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14074== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14074== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14074== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14074== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14074== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14074== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14074== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14074== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14074== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14074== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14074== by 0x8062D5B: main (nginx.c:385)
==14074== If you believe this happened as a result of a stack
==14074== overflow in your program's main thread (unlikely but
==14074== possible), you can try to increase the size of the
==14074== main thread stack using the --main-stacksize= flag.
==14074== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 7: recv timeout - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 7: recv timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
087-udp-socket.t TEST 7: recv timeout - pattern "lua udp socket read timed out" should match a line in error.log (req 1)
087-udp-socket.t TEST 3: access a TCP interface ==14086== Invalid read of size 4
==14086== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14086== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14086== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14086== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14086== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14086== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14086== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14086== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14086== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14086== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14086== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14086== by 0x8062D5B: main (nginx.c:385)
==14086== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14086==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 3: access a TCP interface ==14086==
==14086== Process terminating with default action of signal 11 (SIGSEGV)
==14086== Access not within mapped region at address 0x0
==14086== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14086== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14086== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14086== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14086== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14086== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14086== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14086== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14086== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14086== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14086== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14086== by 0x8062D5B: main (nginx.c:385)
==14086== If you believe this happened as a result of a stack
==14086== overflow in your program's main thread (unlikely but
==14086== possible), you can try to increase the size of the
==14086== main thread stack using the --main-stacksize= flag.
==14086== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 3: access a TCP interface - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 3: access a TCP interface - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected
-failed to receive data: connection refused
'
087-udp-socket.t TEST 3: access a TCP interface ==14107== Invalid read of size 4
==14107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14107== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14107== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14107== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14107== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14107== by 0x8062D5B: main (nginx.c:385)
==14107== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14107==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 3: access a TCP interface ==14107==
==14107== Process terminating with default action of signal 11 (SIGSEGV)
==14107== Access not within mapped region at address 0x0
==14107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14107== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14107== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14107== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14107== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14107== by 0x8062D5B: main (nginx.c:385)
==14107== If you believe this happened as a result of a stack
==14107== overflow in your program's main thread (unlikely but
==14107== possible), you can try to increase the size of the
==14107== main thread stack using the --main-stacksize= flag.
==14107== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 3: access a TCP interface - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 3: access a TCP interface - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected
-failed to receive data: connection refused
'
087-udp-socket.t TEST 13: bad request tries to setpeer ==14119== Invalid read of size 4
==14119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14119== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14119== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14119== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14119== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14119== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14119== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14119== by 0x8062D5B: main (nginx.c:385)
==14119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14119==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 13: bad request tries to setpeer ==14119==
==14119== Process terminating with default action of signal 11 (SIGSEGV)
==14119== Access not within mapped region at address 0x0
==14119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14119== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14119== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14119== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14119== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14119== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14119== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14119== by 0x8062D5B: main (nginx.c:385)
==14119== If you believe this happened as a result of a stack
==14119== overflow in your program's main thread (unlikely but
==14119== possible), you can try to increase the size of the
==14119== main thread stack using the --main-stacksize= flag.
==14119== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 13: bad request tries to setpeer - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 13: bad request tries to setpeer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 13: bad request tries to setpeer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:43 [alert] 13734\#0: worker process 14119 exited on signal 11" (req 0) 2020/10/27 04:46:43 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:43 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:43 [debug] 13734\#0: reap children
2020/10/27 04:46:43 [debug] 13734\#0: child: 0 14119 e:0 t:1 d:0 r:1 j:0
'
087-udp-socket.t TEST 13: bad request tries to setpeer ==14140== Invalid read of size 4
==14140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14140== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14140== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14140== by 0x8062D5B: main (nginx.c:385)
==14140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 13: bad request tries to setpeer ==14140==
==14140== Process terminating with default action of signal 11 (SIGSEGV)
==14140== Access not within mapped region at address 0x0
==14140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14140== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14140== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14140== by 0x8062D5B: main (nginx.c:385)
==14140== If you believe this happened as a result of a stack
==14140== overflow in your program's main thread (unlikely but
==14140== possible), you can try to increase the size of the
==14140== main thread stack using the --main-stacksize= flag.
==14140== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 13: bad request tries to setpeer - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 13: bad request tries to setpeer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 13: bad request tries to setpeer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:43 [alert] 13734\#0: worker process 14119 exited on signal 11" (req 1) 2020/10/27 04:46:43 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:43 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:43 [debug] 13734\#0: reap children
2020/10/27 04:46:43 [debug] 13734\#0: child: 0 14119 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:46:43 [debug] 13734\#0: channel 3:4
2020/10/27 04:46:43 [notice] 13734\#0: start worker process 14140
2020/10/27 04:46:43 [debug] 13734\#0: sigsuspend
2020/10/27 04:46:43 [debug] 14140\#0: malloc: 057DA280:12
2020/10/27 04:46:43 [debug] 14140\#0: malloc: 05DB16F8:8
'
087-udp-socket.t TEST 13: bad request tries to setpeer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:46:43 [alert] 13734\#0: worker process 14140 exited on signal 11" (req 1) 2020/10/27 04:46:43 [debug] 13734\#0: shmtx forced unlock
2020/10/27 04:46:43 [debug] 13734\#0: wake up, sigio 0
2020/10/27 04:46:43 [debug] 13734\#0: reap children
2020/10/27 04:46:43 [debug] 13734\#0: child: 0 14140 e:0 t:1 d:0 r:1 j:0
'
087-udp-socket.t TEST 12: datagram unix domain socket ==14153== Invalid read of size 4
==14153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14153== by 0x8062D5B: main (nginx.c:385)
==14153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 12: datagram unix domain socket ==14153==
==14153== Process terminating with default action of signal 11 (SIGSEGV)
==14153== Access not within mapped region at address 0x0
==14153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14153== by 0x8062D5B: main (nginx.c:385)
==14153== If you believe this happened as a result of a stack
==14153== overflow in your program's main thread (unlikely but
==14153== possible), you can try to increase the size of the
==14153== main thread stack using the --main-stacksize= flag.
==14153== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 12: datagram unix domain socket - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 12: datagram unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected
-received 14 bytes: hello,
-client
'
087-udp-socket.t TEST 12: datagram unix domain socket ==14176== Invalid read of size 4
==14176== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14176== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14176== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14176== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14176== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14176== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14176== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14176== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14176== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14176== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14176== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14176== by 0x8062D5B: main (nginx.c:385)
==14176== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14176==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 12: datagram unix domain socket ==14176==
==14176== Process terminating with default action of signal 11 (SIGSEGV)
==14176== Access not within mapped region at address 0x0
==14176== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14176== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14176== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14176== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14176== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14176== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14176== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14176== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14176== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14176== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14176== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14176== by 0x8062D5B: main (nginx.c:385)
==14176== If you believe this happened as a result of a stack
==14176== overflow in your program's main thread (unlikely but
==14176== possible), you can try to increase the size of the
==14176== main thread stack using the --main-stacksize= flag.
==14176== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 12: datagram unix domain socket - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 12: datagram unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected
-received 14 bytes: hello,
-client
'
087-udp-socket.t TEST 6: connect again immediately ==14190== Invalid read of size 4
==14190== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14190== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14190== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14190== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14190== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14190== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14190== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14190== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14190== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14190== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14190== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14190== by 0x8062D5B: main (nginx.c:385)
==14190== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14190==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 6: connect again immediately ==14190==
==14190== Process terminating with default action of signal 11 (SIGSEGV)
==14190== Access not within mapped region at address 0x0
==14190== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14190== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14190== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14190== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14190== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14190== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14190== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14190== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14190== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14190== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14190== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14190== by 0x8062D5B: main (nginx.c:385)
==14190== If you believe this happened as a result of a stack
==14190== overflow in your program's main thread (unlikely but
==14190== possible), you can try to increase the size of the
==14190== main thread stack using the --main-stacksize= flag.
==14190== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 6: connect again immediately - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 1
-received: OK
-
-close: 1 nil
'
087-udp-socket.t TEST 6: connect again immediately ==14211== Invalid read of size 4
==14211== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14211== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14211== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14211== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14211== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14211== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14211== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14211== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14211== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14211== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14211== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14211== by 0x8062D5B: main (nginx.c:385)
==14211== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14211==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 6: connect again immediately ==14211==
==14211== Process terminating with default action of signal 11 (SIGSEGV)
==14211== Access not within mapped region at address 0x0
==14211== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14211== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14211== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14211== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14211== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14211== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14211== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14211== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14211== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14211== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14211== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14211== by 0x8062D5B: main (nginx.c:385)
==14211== If you believe this happened as a result of a stack
==14211== overflow in your program's main thread (unlikely but
==14211== possible), you can try to increase the size of the
==14211== main thread stack using the --main-stacksize= flag.
==14211== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 6: connect again immediately - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 1
-received: OK
-
-close: 1 nil
'
087-udp-socket.t TEST 1: sanity ==14223== Invalid read of size 4
==14223== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14223== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14223== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14223== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14223== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14223== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14223== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14223== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14223== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14223== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14223== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14223== by 0x8062D5B: main (nginx.c:385)
==14223== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14223==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 1: sanity ==14223==
==14223== Process terminating with default action of signal 11 (SIGSEGV)
==14223== Access not within mapped region at address 0x0
==14223== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14223== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14223== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14223== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14223== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14223== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14223== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14223== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14223== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14223== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14223== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14223== by 0x8062D5B: main (nginx.c:385)
==14223== If you believe this happened as a result of a stack
==14223== overflow in your program's main thread (unlikely but
==14223== possible), you can try to increase the size of the
==14223== main thread stack using the --main-stacksize= flag.
==14223== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 1: sanity ==14244== Invalid read of size 4
==14244== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14244== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14244== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14244== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14244== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14244== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14244== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14244== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14244== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14244== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14244== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14244== by 0x8062D5B: main (nginx.c:385)
==14244== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14244==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 1: sanity ==14244==
==14244== Process terminating with default action of signal 11 (SIGSEGV)
==14244== Access not within mapped region at address 0x0
==14244== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14244== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14244== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14244== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14244== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14244== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14244== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14244== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14244== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14244== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14244== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14244== by 0x8062D5B: main (nginx.c:385)
==14244== If you believe this happened as a result of a stack
==14244== overflow in your program's main thread (unlikely but
==14244== possible), you can try to increase the size of the
==14244== main thread stack using the --main-stacksize= flag.
==14244== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects ==14256== Invalid read of size 4
==14256== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14256== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14256== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14256== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14256== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14256== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14256== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14256== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14256== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14256== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14256== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14256== by 0x8062D5B: main (nginx.c:385)
==14256== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14256==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects ==14256==
==14256== Process terminating with default action of signal 11 (SIGSEGV)
==14256== Access not within mapped region at address 0x0
==14256== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14256== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14256== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14256== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14256== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14256== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14256== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14256== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14256== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14256== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14256== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14256== by 0x8062D5B: main (nginx.c:385)
==14256== If you believe this happened as a result of a stack
==14256== overflow in your program's main thread (unlikely but
==14256== possible), you can try to increase the size of the
==14256== main thread stack using the --main-stacksize= flag.
==14256== The main thread stack size used in this run was 8388608.
==14256== 1,024 bytes in 1 blocks are definitely lost in loss record 2,810 of 2,917
==14256== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==14256== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==14256== by 0x40CC146: mem_alloc (lib_aux.c:335)
==14256== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==14256== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==14256== by 0x408A916: ir_nextk (lj_ir.c:175)
==14256== by 0x408A916: lj_ir_ktrace (lj_ir.c:302)
==14256== by 0x40AA165: recff_stitch (lj_ffrecord.c:129)
==14256== by 0x40AA165: recff_nyi (lj_ffrecord.c:161)
==14256== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==14256== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==14256== by 0x40BB16A: trace_state (lj_trace.c:680)
==14256== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==14256== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==14256== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==14256== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==14256== by 0x407FA29: lua_resume (lj_api.c:1296)
==14256== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==14256== by 0x8162A0A: ngx_stream_lua_timer_handler (ngx_stream_lua_timer.c:710)
==14256== by 0x80827AB: ngx_event_expire_timers (ngx_event_timer.c:94)
==14256== by 0x8082271: ngx_process_events_and_timers (ngx_event.c:271)
==14256== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14256== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14256== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14256== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14256== by 0x8062D5B: main (nginx.c:385)
==14256==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_ktrace
fun:recff_stitch
fun:recff_nyi
fun:lj_ffrecord_func
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_call
fun:lj_vm_hotcall
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_timer_handler
fun:ngx_event_expire_timers
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects ==14277== Invalid read of size 4
==14277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14277== by 0x8062D5B: main (nginx.c:385)
==14277== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14277==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects ==14277==
==14277== Process terminating with default action of signal 11 (SIGSEGV)
==14277== Access not within mapped region at address 0x0
==14277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14277== by 0x8062D5B: main (nginx.c:385)
==14277== If you believe this happened as a result of a stack
==14277== overflow in your program's main thread (unlikely but
==14277== possible), you can try to increase the size of the
==14277== main thread stack using the --main-stacksize= flag.
==14277== The main thread stack size used in this run was 8388608.
==14277== 1,024 bytes in 1 blocks are definitely lost in loss record 2,810 of 2,917
==14277== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==14277== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==14277== by 0x40CC146: mem_alloc (lib_aux.c:335)
==14277== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==14277== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==14277== by 0x408A916: ir_nextk (lj_ir.c:175)
==14277== by 0x408A916: lj_ir_ktrace (lj_ir.c:302)
==14277== by 0x40AA165: recff_stitch (lj_ffrecord.c:129)
==14277== by 0x40AA165: recff_nyi (lj_ffrecord.c:161)
==14277== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==14277== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==14277== by 0x40BB16A: trace_state (lj_trace.c:680)
==14277== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==14277== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==14277== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==14277== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==14277== by 0x407FA29: lua_resume (lj_api.c:1296)
==14277== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==14277== by 0x8162A0A: ngx_stream_lua_timer_handler (ngx_stream_lua_timer.c:710)
==14277== by 0x80827AB: ngx_event_expire_timers (ngx_event_timer.c:94)
==14277== by 0x8082271: ngx_process_events_and_timers (ngx_event.c:271)
==14277== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14277== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14277== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14277== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14277== by 0x8062D5B: main (nginx.c:385)
==14277==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_ktrace
fun:recff_stitch
fun:recff_nyi
fun:lj_ffrecord_func
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_call
fun:lj_vm_hotcall
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_timer_handler
fun:ngx_event_expire_timers
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 2: multiple parallel queries ==14290== Invalid read of size 4
==14290== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14290== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14290== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14290== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14290== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14290== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14290== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14290== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14290== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14290== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14290== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14290== by 0x8062D5B: main (nginx.c:385)
==14290== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14290==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 2: multiple parallel queries ==14290==
==14290== Process terminating with default action of signal 11 (SIGSEGV)
==14290== Access not within mapped region at address 0x0
==14290== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14290== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14290== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14290== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14290== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14290== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14290== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14290== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14290== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14290== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14290== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14290== by 0x8062D5B: main (nginx.c:385)
==14290== If you believe this happened as a result of a stack
==14290== overflow in your program's main thread (unlikely but
==14290== possible), you can try to increase the size of the
==14290== main thread stack using the --main-stacksize= flag.
==14290== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 2: multiple parallel queries - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 2: multiple parallel queries - response_body_like - response is expected () ''
doesn't match '(?^s:^connected
1: received 12 bytes: []OK
2: received 12 bytes: []OK
$)'
087-udp-socket.t TEST 2: multiple parallel queries ==14311== Invalid read of size 4
==14311== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14311== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14311== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14311== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14311== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14311== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14311== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14311== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14311== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14311== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14311== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14311== by 0x8062D5B: main (nginx.c:385)
==14311== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14311==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 2: multiple parallel queries ==14311==
==14311== Process terminating with default action of signal 11 (SIGSEGV)
==14311== Access not within mapped region at address 0x0
==14311== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14311== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14311== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14311== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14311== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14311== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14311== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14311== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14311== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14311== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14311== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14311== by 0x8062D5B: main (nginx.c:385)
==14311== If you believe this happened as a result of a stack
==14311== overflow in your program's main thread (unlikely but
==14311== possible), you can try to increase the size of the
==14311== main thread stack using the --main-stacksize= flag.
==14311== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 2: multiple parallel queries - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 2: multiple parallel queries - response_body_like - response is expected () ''
doesn't match '(?^s:^connected
1: received 12 bytes: []OK
2: received 12 bytes: []OK
$)'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument ==14323== Invalid read of size 4
==14323== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14323== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14323== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14323== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14323== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14323== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14323== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14323== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14323== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14323== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14323== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14323== by 0x8062D5B: main (nginx.c:385)
==14323== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14323==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 8: with an explicit receive buffer size argument ==14323==
==14323== Process terminating with default action of signal 11 (SIGSEGV)
==14323== Access not within mapped region at address 0x0
==14323== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14323== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14323== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14323== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14323== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14323== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14323== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14323== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14323== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14323== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14323== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14323== by 0x8062D5B: main (nginx.c:385)
==14323== If you believe this happened as a result of a stack
==14323== overflow in your program's main thread (unlikely but
==14323== possible), you can try to increase the size of the
==14323== main thread stack using the --main-stacksize= flag.
==14323== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 8: with an explicit receive buffer size argument - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument ==14344== Invalid read of size 4
==14344== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14344== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14344== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14344== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14344== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14344== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14344== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14344== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14344== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14344== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14344== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14344== by 0x8062D5B: main (nginx.c:385)
==14344== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14344==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
087-udp-socket.t TEST 8: with an explicit receive buffer size argument ==14344==
==14344== Process terminating with default action of signal 11 (SIGSEGV)
==14344== Access not within mapped region at address 0x0
==14344== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14344== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14344== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14344== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14344== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14344== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14344== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14344== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14344== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14344== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14344== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14344== by 0x8062D5B: main (nginx.c:385)
==14344== If you believe this happened as a result of a stack
==14344== overflow in your program's main thread (unlikely but
==14344== possible), you can try to increase the size of the
==14344== main thread stack using the --main-stacksize= flag.
==14344== The main thread stack size used in this run was 8388608.

087-udp-socket.t TEST 8: with an explicit receive buffer size argument - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
089-phase.t TEST 1: get_phase in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==14353== Invalid read of size 4
==14353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14353== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14353== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==14353== by 0x8062D5B: main (nginx.c:385)
==14353== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14353==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 1: get_phase in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==14353==
==14353== Process terminating with default action of signal 11 (SIGSEGV)
==14353== Access not within mapped region at address 0x0
==14353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14353== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14353== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==14353== by 0x8062D5B: main (nginx.c:385)
==14353== If you believe this happened as a result of a stack
==14353== overflow in your program's main thread (unlikely but
==14353== possible), you can try to increase the size of the
==14353== main thread stack using the --main-stacksize= flag.
==14353== The main thread stack size used in this run was 8388608.

089-phase.t TEST 1: get_phase in init_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 1: get_phase in init_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "init\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 1: get_phase in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==14354== Invalid read of size 4
==14354== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14354== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14354== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14354== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14354== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14354== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14354== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14354== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14354== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14354== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14354== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14354== by 0x8062D5B: main (nginx.c:385)
==14354== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14354==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 1: get_phase in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==14354==
==14354== Process terminating with default action of signal 11 (SIGSEGV)
==14354== Access not within mapped region at address 0x0
==14354== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14354== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14354== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14354== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14354== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14354== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14354== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14354== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14354== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14354== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14354== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14354== by 0x8062D5B: main (nginx.c:385)
==14354== If you believe this happened as a result of a stack
==14354== overflow in your program's main thread (unlikely but
==14354== possible), you can try to increase the size of the
==14354== main thread stack using the --main-stacksize= flag.
==14354== The main thread stack size used in this run was 8388608.

089-phase.t TEST 1: get_phase in init_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 1: get_phase in init_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "init\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 6: get_phase in init_worker_by_lua ==14366== Invalid read of size 4
==14366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14366== by 0x8062D5B: main (nginx.c:385)
==14366== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14366==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 6: get_phase in init_worker_by_lua ==14366==
==14366== Process terminating with default action of signal 11 (SIGSEGV)
==14366== Access not within mapped region at address 0x0
==14366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14366== by 0x8062D5B: main (nginx.c:385)
==14366== If you believe this happened as a result of a stack
==14366== overflow in your program's main thread (unlikely but
==14366== possible), you can try to increase the size of the
==14366== main thread stack using the --main-stacksize= flag.
==14366== The main thread stack size used in this run was 8388608.

089-phase.t TEST 6: get_phase in init_worker_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 6: get_phase in init_worker_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "init_worker\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 6: get_phase in init_worker_by_lua ==14387== Invalid read of size 4
==14387== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14387== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14387== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14387== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14387== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14387== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14387== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14387== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14387== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14387== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14387== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14387== by 0x8062D5B: main (nginx.c:385)
==14387== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14387==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 6: get_phase in init_worker_by_lua ==14387==
==14387== Process terminating with default action of signal 11 (SIGSEGV)
==14387== Access not within mapped region at address 0x0
==14387== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14387== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14387== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14387== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14387== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14387== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14387== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14387== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14387== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14387== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14387== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14387== by 0x8062D5B: main (nginx.c:385)
==14387== If you believe this happened as a result of a stack
==14387== overflow in your program's main thread (unlikely but
==14387== possible), you can try to increase the size of the
==14387== main thread stack using the --main-stacksize= flag.
==14387== The main thread stack size used in this run was 8388608.

089-phase.t TEST 6: get_phase in init_worker_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 6: get_phase in init_worker_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "init_worker\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 3: get_phase in content_by_lua ==14399== Invalid read of size 4
==14399== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14399== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14399== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14399== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14399== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14399== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14399== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14399== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14399== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14399== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14399== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14399== by 0x8062D5B: main (nginx.c:385)
==14399== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14399==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 3: get_phase in content_by_lua ==14399==
==14399== Process terminating with default action of signal 11 (SIGSEGV)
==14399== Access not within mapped region at address 0x0
==14399== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14399== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14399== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14399== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14399== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14399== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14399== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14399== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14399== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14399== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14399== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14399== by 0x8062D5B: main (nginx.c:385)
==14399== If you believe this happened as a result of a stack
==14399== overflow in your program's main thread (unlikely but
==14399== possible), you can try to increase the size of the
==14399== main thread stack using the --main-stacksize= flag.
==14399== The main thread stack size used in this run was 8388608.

089-phase.t TEST 3: get_phase in content_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 3: get_phase in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "content\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 3: get_phase in content_by_lua ==14420== Invalid read of size 4
==14420== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14420== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14420== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14420== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14420== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14420== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14420== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14420== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14420== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14420== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14420== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14420== by 0x8062D5B: main (nginx.c:385)
==14420== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14420==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 3: get_phase in content_by_lua ==14420==
==14420== Process terminating with default action of signal 11 (SIGSEGV)
==14420== Access not within mapped region at address 0x0
==14420== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14420== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14420== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14420== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14420== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14420== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14420== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14420== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14420== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14420== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14420== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14420== by 0x8062D5B: main (nginx.c:385)
==14420== If you believe this happened as a result of a stack
==14420== overflow in your program's main thread (unlikely but
==14420== possible), you can try to increase the size of the
==14420== main thread stack using the --main-stacksize= flag.
==14420== The main thread stack size used in this run was 8388608.

089-phase.t TEST 3: get_phase in content_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 3: get_phase in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "content\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 5: get_phase in ngx.timer callback ==14432== Invalid read of size 4
==14432== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14432== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14432== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14432== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14432== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14432== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14432== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14432== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14432== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14432== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14432== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14432== by 0x8062D5B: main (nginx.c:385)
==14432== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14432==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 5: get_phase in ngx.timer callback ==14432==
==14432== Process terminating with default action of signal 11 (SIGSEGV)
==14432== Access not within mapped region at address 0x0
==14432== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14432== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14432== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14432== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14432== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14432== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14432== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14432== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14432== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14432== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14432== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14432== by 0x8062D5B: main (nginx.c:385)
==14432== If you believe this happened as a result of a stack
==14432== overflow in your program's main thread (unlikely but
==14432== possible), you can try to increase the size of the
==14432== main thread stack using the --main-stacksize= flag.
==14432== The main thread stack size used in this run was 8388608.

089-phase.t TEST 5: get_phase in ngx.timer callback - status code ok got: ''
expected: '200'
089-phase.t TEST 5: get_phase in ngx.timer callback ==14453== Invalid read of size 4
==14453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14453== by 0x8062D5B: main (nginx.c:385)
==14453== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14453==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
089-phase.t TEST 5: get_phase in ngx.timer callback ==14453==
==14453== Process terminating with default action of signal 11 (SIGSEGV)
==14453== Access not within mapped region at address 0x0
==14453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14453== by 0x8062D5B: main (nginx.c:385)
==14453== If you believe this happened as a result of a stack
==14453== overflow in your program's main thread (unlikely but
==14453== possible), you can try to increase the size of the
==14453== main thread stack using the --main-stacksize= flag.
==14453== The main thread stack size used in this run was 8388608.

089-phase.t TEST 5: get_phase in ngx.timer callback - status code ok got: ''
expected: '200'
091-coroutine.t TEST 1: basic coroutine print - Can't connect to 127.0.0.1:1984: Connection refused ==14560== Invalid read of size 4
==14560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14560== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14560== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==14560== by 0x8062D5B: main (nginx.c:385)
==14560== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14560==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 1: basic coroutine print - Can't connect to 127.0.0.1:1984: Connection refused ==14560==
==14560== Process terminating with default action of signal 11 (SIGSEGV)
==14560== Access not within mapped region at address 0x0
==14560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14560== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14560== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14560== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14560== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==14560== by 0x8062D5B: main (nginx.c:385)
==14560== If you believe this happened as a result of a stack
==14560== overflow in your program's main thread (unlikely but
==14560== possible), you can try to increase the size of the
==14560== main thread stack using the --main-stacksize= flag.
==14560== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 1: basic coroutine print - status code ok got: ''
expected: '200'
091-coroutine.t TEST 1: basic coroutine print - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 1: basic coroutine print - Can't connect to 127.0.0.1:1984: Connection refused ==14561== Invalid read of size 4
==14561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14561== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14561== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14561== by 0x8062D5B: main (nginx.c:385)
==14561== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14561==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 1: basic coroutine print - Can't connect to 127.0.0.1:1984: Connection refused ==14561==
==14561== Process terminating with default action of signal 11 (SIGSEGV)
==14561== Access not within mapped region at address 0x0
==14561== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14561== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14561== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14561== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14561== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14561== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14561== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14561== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14561== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14561== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14561== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14561== by 0x8062D5B: main (nginx.c:385)
==14561== If you believe this happened as a result of a stack
==14561== overflow in your program's main thread (unlikely but
==14561== possible), you can try to increase the size of the
==14561== main thread stack using the --main-stacksize= flag.
==14561== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 1: basic coroutine print - status code ok got: ''
expected: '200'
091-coroutine.t TEST 1: basic coroutine print - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 2: basic coroutine2 ==14573== Invalid read of size 4
==14573== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14573== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14573== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14573== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14573== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14573== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14573== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14573== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14573== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14573== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14573== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14573== by 0x8062D5B: main (nginx.c:385)
==14573== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14573==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 2: basic coroutine2 ==14573==
==14573== Process terminating with default action of signal 11 (SIGSEGV)
==14573== Access not within mapped region at address 0x0
==14573== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14573== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14573== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14573== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14573== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14573== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14573== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14573== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14573== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14573== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14573== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14573== by 0x8062D5B: main (nginx.c:385)
==14573== If you believe this happened as a result of a stack
==14573== overflow in your program's main thread (unlikely but
==14573== possible), you can try to increase the size of the
==14573== main thread stack using the --main-stacksize= flag.
==14573== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 2: basic coroutine2 - status code ok got: ''
expected: '200'
091-coroutine.t TEST 2: basic coroutine2 - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-cc1: 0
-cc2: 0
-cc3: 0
-cc1: 1
-cc2: 1
-cc3: 1
-cc1: 2
-cc2: 2
-cc3: 2
'
091-coroutine.t TEST 2: basic coroutine2 ==14594== Invalid read of size 4
==14594== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14594== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14594== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14594== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14594== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14594== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14594== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14594== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14594== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14594== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14594== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14594== by 0x8062D5B: main (nginx.c:385)
==14594== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14594==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 2: basic coroutine2 ==14594==
==14594== Process terminating with default action of signal 11 (SIGSEGV)
==14594== Access not within mapped region at address 0x0
==14594== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14594== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14594== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14594== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14594== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14594== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14594== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14594== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14594== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14594== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14594== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14594== by 0x8062D5B: main (nginx.c:385)
==14594== If you believe this happened as a result of a stack
==14594== overflow in your program's main thread (unlikely but
==14594== possible), you can try to increase the size of the
==14594== main thread stack using the --main-stacksize= flag.
==14594== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 2: basic coroutine2 - status code ok got: ''
expected: '200'
091-coroutine.t TEST 2: basic coroutine2 - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-cc1: 0
-cc2: 0
-cc3: 0
-cc1: 1
-cc2: 1
-cc3: 1
-cc1: 2
-cc2: 2
-cc3: 2
'
091-coroutine.t TEST 3: basic coroutine and cosocket ==14606== Invalid read of size 4
==14606== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14606== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14606== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14606== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14606== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14606== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14606== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14606== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14606== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14606== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14606== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14606== by 0x8062D5B: main (nginx.c:385)
==14606== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14606==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 3: basic coroutine and cosocket ==14606==
==14606== Process terminating with default action of signal 11 (SIGSEGV)
==14606== Access not within mapped region at address 0x0
==14606== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14606== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14606== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14606== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14606== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14606== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14606== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14606== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14606== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14606== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14606== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14606== by 0x8062D5B: main (nginx.c:385)
==14606== If you believe this happened as a result of a stack
==14606== overflow in your program's main thread (unlikely but
==14606== possible), you can try to increase the size of the
==14606== main thread stack using the --main-stacksize= flag.
==14606== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 3: basic coroutine and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 3: basic coroutine and cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 3: basic coroutine and cosocket ==14627== Invalid read of size 4
==14627== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14627== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14627== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14627== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14627== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14627== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14627== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14627== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14627== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14627== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14627== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14627== by 0x8062D5B: main (nginx.c:385)
==14627== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14627==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 3: basic coroutine and cosocket ==14627==
==14627== Process terminating with default action of signal 11 (SIGSEGV)
==14627== Access not within mapped region at address 0x0
==14627== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14627== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14627== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14627== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14627== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14627== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14627== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14627== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14627== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14627== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14627== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14627== by 0x8062D5B: main (nginx.c:385)
==14627== If you believe this happened as a result of a stack
==14627== overflow in your program's main thread (unlikely but
==14627== possible), you can try to increase the size of the
==14627== main thread stack using the --main-stacksize= flag.
==14627== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 3: basic coroutine and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 3: basic coroutine and cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) ==14639== Invalid read of size 4
==14639== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14639== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14639== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14639== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14639== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14639== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14639== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14639== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14639== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14639== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14639== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14639== by 0x8062D5B: main (nginx.c:385)
==14639== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14639==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) ==14639==
==14639== Process terminating with default action of signal 11 (SIGSEGV)
==14639== Access not within mapped region at address 0x0
==14639== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14639== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14639== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14639== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14639== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14639== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14639== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14639== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14639== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14639== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14639== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14639== by 0x8062D5B: main (nginx.c:385)
==14639== If you believe this happened as a result of a stack
==14639== overflow in your program's main thread (unlikely but
==14639== possible), you can try to increase the size of the
==14639== main thread stack using the --main-stacksize= flag.
==14639== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) ==14660== Invalid read of size 4
==14660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14660== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14660== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14660== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14660== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14660== by 0x8062D5B: main (nginx.c:385)
==14660== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14660==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) ==14660==
==14660== Process terminating with default action of signal 11 (SIGSEGV)
==14660== Access not within mapped region at address 0x0
==14660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14660== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14660== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14660== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14660== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14660== by 0x8062D5B: main (nginx.c:385)
==14660== If you believe this happened as a result of a stack
==14660== overflow in your program's main thread (unlikely but
==14660== possible), you can try to increase the size of the
==14660== main thread stack using the --main-stacksize= flag.
==14660== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) ==14672== Invalid read of size 4
==14672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14672== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14672== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14672== by 0x8062D5B: main (nginx.c:385)
==14672== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14672==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) ==14672==
==14672== Process terminating with default action of signal 11 (SIGSEGV)
==14672== Access not within mapped region at address 0x0
==14672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14672== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14672== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14672== by 0x8062D5B: main (nginx.c:385)
==14672== If you believe this happened as a result of a stack
==14672== overflow in your program's main thread (unlikely but
==14672== possible), you can try to increase the size of the
==14672== main thread stack using the --main-stacksize= flag.
==14672== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) ==14693== Invalid read of size 4
==14693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14693== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14693== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14693== by 0x8062D5B: main (nginx.c:385)
==14693== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14693==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) ==14693==
==14693== Process terminating with default action of signal 11 (SIGSEGV)
==14693== Access not within mapped region at address 0x0
==14693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14693== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14693== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14693== by 0x8062D5B: main (nginx.c:385)
==14693== If you believe this happened as a result of a stack
==14693== overflow in your program's main thread (unlikely but
==14693== possible), you can try to increase the size of the
==14693== main thread stack using the --main-stacksize= flag.
==14693== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) ==14705== Invalid read of size 4
==14705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14705== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14705== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14705== by 0x8062D5B: main (nginx.c:385)
==14705== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14705==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 6: coroutine.wrap(generate fib) ==14705==
==14705== Process terminating with default action of signal 11 (SIGSEGV)
==14705== Access not within mapped region at address 0x0
==14705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14705== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14705== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14705== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14705== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14705== by 0x8062D5B: main (nginx.c:385)
==14705== If you believe this happened as a result of a stack
==14705== overflow in your program's main thread (unlikely but
==14705== possible), you can try to increase the size of the
==14705== main thread stack using the --main-stacksize= flag.
==14705== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 6: coroutine.wrap(generate fib) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - response_body - response is expected (repeated req 0, req 0) @@ -1,16 +0,0 @@
-1
-1
-2
-3
-5
-8
-13
-21
-34
-55
-89
-144
-233
-377
-610
-987
'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) ==14726== Invalid read of size 4
==14726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14726== by 0x8062D5B: main (nginx.c:385)
==14726== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14726==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 6: coroutine.wrap(generate fib) ==14726==
==14726== Process terminating with default action of signal 11 (SIGSEGV)
==14726== Access not within mapped region at address 0x0
==14726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14726== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14726== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14726== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14726== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14726== by 0x8062D5B: main (nginx.c:385)
==14726== If you believe this happened as a result of a stack
==14726== overflow in your program's main thread (unlikely but
==14726== possible), you can try to increase the size of the
==14726== main thread stack using the --main-stacksize= flag.
==14726== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 6: coroutine.wrap(generate fib) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - response_body - response is expected (repeated req 1, req 0) @@ -1,16 +0,0 @@
-1
-1
-2
-3
-5
-8
-13
-21
-34
-55
-89
-144
-233
-377
-610
-987
'
091-coroutine.t TEST 7: coroutine wrap and cosocket ==14738== Invalid read of size 4
==14738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14738== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14738== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14738== by 0x8062D5B: main (nginx.c:385)
==14738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 7: coroutine wrap and cosocket ==14738==
==14738== Process terminating with default action of signal 11 (SIGSEGV)
==14738== Access not within mapped region at address 0x0
==14738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14738== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14738== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14738== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14738== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14738== by 0x8062D5B: main (nginx.c:385)
==14738== If you believe this happened as a result of a stack
==14738== overflow in your program's main thread (unlikely but
==14738== possible), you can try to increase the size of the
==14738== main thread stack using the --main-stacksize= flag.
==14738== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 7: coroutine wrap and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 7: coroutine wrap and cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 7: coroutine wrap and cosocket ==14759== Invalid read of size 4
==14759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14759== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14759== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14759== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14759== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14759== by 0x8062D5B: main (nginx.c:385)
==14759== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14759==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 7: coroutine wrap and cosocket ==14759==
==14759== Process terminating with default action of signal 11 (SIGSEGV)
==14759== Access not within mapped region at address 0x0
==14759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14759== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14759== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14759== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14759== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14759== by 0x8062D5B: main (nginx.c:385)
==14759== If you believe this happened as a result of a stack
==14759== overflow in your program's main thread (unlikely but
==14759== possible), you can try to increase the size of the
==14759== main thread stack using the --main-stacksize= flag.
==14759== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 7: coroutine wrap and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 7: coroutine wrap and cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 8: coroutine status, running ==14771== Invalid read of size 4
==14771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14771== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14771== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14771== by 0x8062D5B: main (nginx.c:385)
==14771== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14771==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 8: coroutine status, running ==14771==
==14771== Process terminating with default action of signal 11 (SIGSEGV)
==14771== Access not within mapped region at address 0x0
==14771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14771== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14771== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14771== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14771== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14771== by 0x8062D5B: main (nginx.c:385)
==14771== If you believe this happened as a result of a stack
==14771== overflow in your program's main thread (unlikely but
==14771== possible), you can try to increase the size of the
==14771== main thread stack using the --main-stacksize= flag.
==14771== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 8: coroutine status, running - status code ok got: ''
expected: '200'
091-coroutine.t TEST 8: coroutine status, running - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-suspended: suspended
-running: running
-suspended: suspended
-normal: normal
-dead: dead
'
091-coroutine.t TEST 8: coroutine status, running ==14792== Invalid read of size 4
==14792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14792== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14792== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14792== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14792== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14792== by 0x8062D5B: main (nginx.c:385)
==14792== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14792==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 8: coroutine status, running ==14792==
==14792== Process terminating with default action of signal 11 (SIGSEGV)
==14792== Access not within mapped region at address 0x0
==14792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14792== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14792== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14792== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14792== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14792== by 0x8062D5B: main (nginx.c:385)
==14792== If you believe this happened as a result of a stack
==14792== overflow in your program's main thread (unlikely but
==14792== possible), you can try to increase the size of the
==14792== main thread stack using the --main-stacksize= flag.
==14792== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 8: coroutine status, running - status code ok got: ''
expected: '200'
091-coroutine.t TEST 8: coroutine status, running - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-suspended: suspended
-running: running
-suspended: suspended
-normal: normal
-dead: dead
'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately ==14805== Invalid read of size 4
==14805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14805== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14805== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14805== by 0x8062D5B: main (nginx.c:385)
==14805== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14805==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately ==14805==
==14805== Process terminating with default action of signal 11 (SIGSEGV)
==14805== Access not within mapped region at address 0x0
==14805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14805== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14805== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14805== by 0x8062D5B: main (nginx.c:385)
==14805== If you believe this happened as a result of a stack
==14805== overflow in your program's main thread (unlikely but
==14805== possible), you can try to increase the size of the
==14805== main thread stack using the --main-stacksize= flag.
==14805== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - status code ok got: ''
expected: '200'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-[]
-[]
-done
'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately ==14826== Invalid read of size 4
==14826== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14826== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14826== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14826== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14826== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14826== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14826== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14826== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14826== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14826== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14826== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14826== by 0x8062D5B: main (nginx.c:385)
==14826== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14826==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately ==14826==
==14826== Process terminating with default action of signal 11 (SIGSEGV)
==14826== Access not within mapped region at address 0x0
==14826== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14826== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14826== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14826== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14826== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14826== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14826== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14826== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14826== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14826== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14826== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14826== by 0x8062D5B: main (nginx.c:385)
==14826== If you believe this happened as a result of a stack
==14826== overflow in your program's main thread (unlikely but
==14826== possible), you can try to increase the size of the
==14826== main thread stack using the --main-stacksize= flag.
==14826== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - status code ok got: ''
expected: '200'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-[]
-[]
-done
'
091-coroutine.t TEST 10: thread traceback (multi-thread) ==14840== Invalid read of size 4
==14840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14840== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14840== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14840== by 0x8062D5B: main (nginx.c:385)
==14840== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14840==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 10: thread traceback (multi-thread) ==14840==
==14840== Process terminating with default action of signal 11 (SIGSEGV)
==14840== Access not within mapped region at address 0x0
==14840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14840== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14840== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14840== by 0x8062D5B: main (nginx.c:385)
==14840== If you believe this happened as a result of a stack
==14840== overflow in your program's main thread (unlikely but
==14840== possible), you can try to increase the size of the
==14840== main thread stack using the --main-stacksize= flag.
==14840== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 10: thread traceback (multi-thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 10: thread traceback (multi-thread) ==14861== Invalid read of size 4
==14861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14861== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14861== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14861== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14861== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14861== by 0x8062D5B: main (nginx.c:385)
==14861== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14861==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 10: thread traceback (multi-thread) ==14861==
==14861== Process terminating with default action of signal 11 (SIGSEGV)
==14861== Access not within mapped region at address 0x0
==14861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14861== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14861== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14861== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14861== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14861== by 0x8062D5B: main (nginx.c:385)
==14861== If you believe this happened as a result of a stack
==14861== overflow in your program's main thread (unlikely but
==14861== possible), you can try to increase the size of the
==14861== main thread stack using the --main-stacksize= flag.
==14861== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 10: thread traceback (multi-thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 11: thread traceback (only the entry thread) ==14873== Invalid read of size 4
==14873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14873== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14873== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14873== by 0x8062D5B: main (nginx.c:385)
==14873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 11: thread traceback (only the entry thread) ==14873==
==14873== Process terminating with default action of signal 11 (SIGSEGV)
==14873== Access not within mapped region at address 0x0
==14873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14873== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14873== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14873== by 0x8062D5B: main (nginx.c:385)
==14873== If you believe this happened as a result of a stack
==14873== overflow in your program's main thread (unlikely but
==14873== possible), you can try to increase the size of the
==14873== main thread stack using the --main-stacksize= flag.
==14873== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 11: thread traceback (only the entry thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 11: thread traceback (only the entry thread) ==14894== Invalid read of size 4
==14894== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14894== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14894== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14894== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14894== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14894== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14894== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14894== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14894== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14894== by 0x8062D5B: main (nginx.c:385)
==14894== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14894==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 11: thread traceback (only the entry thread) ==14894==
==14894== Process terminating with default action of signal 11 (SIGSEGV)
==14894== Access not within mapped region at address 0x0
==14894== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14894== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14894== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14894== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14894== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14894== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14894== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14894== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14894== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14894== by 0x8062D5B: main (nginx.c:385)
==14894== If you believe this happened as a result of a stack
==14894== overflow in your program's main thread (unlikely but
==14894== possible), you can try to increase the size of the
==14894== main thread stack using the --main-stacksize= flag.
==14894== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 11: thread traceback (only the entry thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 12: bug: resume dead coroutine with args ==14906== Invalid read of size 4
==14906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14906== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14906== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14906== by 0x8062D5B: main (nginx.c:385)
==14906== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14906==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 12: bug: resume dead coroutine with args ==14906==
==14906== Process terminating with default action of signal 11 (SIGSEGV)
==14906== Access not within mapped region at address 0x0
==14906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14906== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14906== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14906== by 0x8062D5B: main (nginx.c:385)
==14906== If you believe this happened as a result of a stack
==14906== overflow in your program's main thread (unlikely but
==14906== possible), you can try to increase the size of the
==14906== main thread stack using the --main-stacksize= flag.
==14906== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 12: bug: resume dead coroutine with args - status code ok got: ''
expected: '200'
091-coroutine.t TEST 12: bug: resume dead coroutine with args - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-co-body 1 10
-foo 2
-main true 4
-co-body r
-main true 11 -9
-co-body x y
-main true 10 end
-main false cannot resume dead coroutine
'
091-coroutine.t TEST 12: bug: resume dead coroutine with args ==14927== Invalid read of size 4
==14927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14927== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14927== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14927== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14927== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14927== by 0x8062D5B: main (nginx.c:385)
==14927== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14927==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 12: bug: resume dead coroutine with args ==14927==
==14927== Process terminating with default action of signal 11 (SIGSEGV)
==14927== Access not within mapped region at address 0x0
==14927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14927== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14927== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14927== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14927== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14927== by 0x8062D5B: main (nginx.c:385)
==14927== If you believe this happened as a result of a stack
==14927== overflow in your program's main thread (unlikely but
==14927== possible), you can try to increase the size of the
==14927== main thread stack using the --main-stacksize= flag.
==14927== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 12: bug: resume dead coroutine with args - status code ok got: ''
expected: '200'
091-coroutine.t TEST 12: bug: resume dead coroutine with args - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-co-body 1 10
-foo 2
-main true 4
-co-body r
-main true 11 -9
-co-body x y
-main true 10 end
-main false cannot resume dead coroutine
'
091-coroutine.t TEST 13: deeply nested coroutines ==14939== Invalid read of size 4
==14939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14939== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14939== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14939== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14939== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14939== by 0x8062D5B: main (nginx.c:385)
==14939== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14939==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 13: deeply nested coroutines ==14939==
==14939== Process terminating with default action of signal 11 (SIGSEGV)
==14939== Access not within mapped region at address 0x0
==14939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14939== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14939== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14939== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14939== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14939== by 0x8062D5B: main (nginx.c:385)
==14939== If you believe this happened as a result of a stack
==14939== overflow in your program's main thread (unlikely but
==14939== possible), you can try to increase the size of the
==14939== main thread stack using the --main-stacksize= flag.
==14939== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 13: deeply nested coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 13: deeply nested coroutines - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-1: resuming c1
-f begin
-2: resuming c1
-1: resuming c2
-g begin
-2: resuming c2
-g going
-3: resuming c1
-3: resuming c2
-g done
-f done
-main done
'
091-coroutine.t TEST 13: deeply nested coroutines ==14960== Invalid read of size 4
==14960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14960== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14960== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14960== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14960== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14960== by 0x8062D5B: main (nginx.c:385)
==14960== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14960==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 13: deeply nested coroutines ==14960==
==14960== Process terminating with default action of signal 11 (SIGSEGV)
==14960== Access not within mapped region at address 0x0
==14960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14960== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14960== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14960== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14960== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14960== by 0x8062D5B: main (nginx.c:385)
==14960== If you believe this happened as a result of a stack
==14960== overflow in your program's main thread (unlikely but
==14960== possible), you can try to increase the size of the
==14960== main thread stack using the --main-stacksize= flag.
==14960== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 13: deeply nested coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 13: deeply nested coroutines - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-1: resuming c1
-f begin
-2: resuming c1
-1: resuming c2
-g begin
-2: resuming c2
-g going
-3: resuming c1
-3: resuming c2
-g done
-f done
-main done
'
091-coroutine.t TEST 14: using ngx.exit in user coroutines ==14972== Invalid read of size 4
==14972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14972== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14972== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14972== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14972== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14972== by 0x8062D5B: main (nginx.c:385)
==14972== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14972==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 14: using ngx.exit in user coroutines ==14972==
==14972== Process terminating with default action of signal 11 (SIGSEGV)
==14972== Access not within mapped region at address 0x0
==14972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14972== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14972== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14972== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==14972== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==14972== by 0x8062D5B: main (nginx.c:385)
==14972== If you believe this happened as a result of a stack
==14972== overflow in your program's main thread (unlikely but
==14972== possible), you can try to increase the size of the
==14972== main thread stack using the --main-stacksize= flag.
==14972== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 14: using ngx.exit in user coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 14: using ngx.exit in user coroutines ==14993== Invalid read of size 4
==14993== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14993== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14993== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14993== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14993== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14993== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14993== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14993== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14993== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14993== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14993== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14993== by 0x8062D5B: main (nginx.c:385)
==14993== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14993==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 14: using ngx.exit in user coroutines ==14993==
==14993== Process terminating with default action of signal 11 (SIGSEGV)
==14993== Access not within mapped region at address 0x0
==14993== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==14993== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==14993== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==14993== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==14993== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==14993== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==14993== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==14993== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==14993== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==14993== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==14993== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==14993== by 0x8062D5B: main (nginx.c:385)
==14993== If you believe this happened as a result of a stack
==14993== overflow in your program's main thread (unlikely but
==14993== possible), you can try to increase the size of the
==14993== main thread stack using the --main-stacksize= flag.
==14993== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 14: using ngx.exit in user coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent ==15005== Invalid read of size 4
==15005== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15005== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15005== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15005== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15005== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15005== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15005== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15005== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15005== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15005== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15005== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15005== by 0x8062D5B: main (nginx.c:385)
==15005== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15005==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent ==15005==
==15005== Process terminating with default action of signal 11 (SIGSEGV)
==15005== Access not within mapped region at address 0x0
==15005== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15005== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15005== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15005== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15005== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15005== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15005== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15005== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15005== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15005== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15005== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15005== by 0x8062D5B: main (nginx.c:385)
==15005== If you believe this happened as a result of a stack
==15005== overflow in your program's main thread (unlikely but
==15005== possible), you can try to increase the size of the
==15005== main thread stack using the --main-stacksize= flag.
==15005== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - status code ok got: ''
expected: '200'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-f 1
-g 1
-g 2
-true
-f 2
'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent ==15026== Invalid read of size 4
==15026== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15026== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15026== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15026== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15026== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15026== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15026== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15026== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15026== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15026== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15026== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15026== by 0x8062D5B: main (nginx.c:385)
==15026== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15026==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent ==15026==
==15026== Process terminating with default action of signal 11 (SIGSEGV)
==15026== Access not within mapped region at address 0x0
==15026== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15026== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15026== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15026== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15026== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15026== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15026== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15026== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15026== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15026== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15026== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15026== by 0x8062D5B: main (nginx.c:385)
==15026== If you believe this happened as a result of a stack
==15026== overflow in your program's main thread (unlikely but
==15026== possible), you can try to increase the size of the
==15026== main thread stack using the --main-stacksize= flag.
==15026== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - status code ok got: ''
expected: '200'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-f 1
-g 1
-g 2
-true
-f 2
'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume ==15038== Invalid read of size 4
==15038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15038== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15038== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15038== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15038== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15038== by 0x8062D5B: main (nginx.c:385)
==15038== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15038==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume ==15038==
==15038== Process terminating with default action of signal 11 (SIGSEGV)
==15038== Access not within mapped region at address 0x0
==15038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15038== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15038== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15038== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15038== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15038== by 0x8062D5B: main (nginx.c:385)
==15038== If you believe this happened as a result of a stack
==15038== overflow in your program's main thread (unlikely but
==15038== possible), you can try to increase the size of the
==15038== main thread stack using the --main-stacksize= flag.
==15038== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - status code ok got: ''
expected: '200'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-f 1
-g 1
-falsecannot resume normal coroutine
-g 2
-true
-f 2
'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume ==15059== Invalid read of size 4
==15059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15059== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15059== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15059== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15059== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15059== by 0x8062D5B: main (nginx.c:385)
==15059== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15059==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume ==15059==
==15059== Process terminating with default action of signal 11 (SIGSEGV)
==15059== Access not within mapped region at address 0x0
==15059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15059== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15059== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15059== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15059== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15059== by 0x8062D5B: main (nginx.c:385)
==15059== If you believe this happened as a result of a stack
==15059== overflow in your program's main thread (unlikely but
==15059== possible), you can try to increase the size of the
==15059== main thread stack using the --main-stacksize= flag.
==15059== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - status code ok got: ''
expected: '200'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-f 1
-g 1
-falsecannot resume normal coroutine
-g 2
-true
-f 2
'
091-coroutine.t TEST 17: resume running (entry) coroutines ==15071== Invalid read of size 4
==15071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15071== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15071== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15071== by 0x8062D5B: main (nginx.c:385)
==15071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 17: resume running (entry) coroutines ==15071==
==15071== Process terminating with default action of signal 11 (SIGSEGV)
==15071== Access not within mapped region at address 0x0
==15071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15071== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15071== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15071== by 0x8062D5B: main (nginx.c:385)
==15071== If you believe this happened as a result of a stack
==15071== overflow in your program's main thread (unlikely but
==15071== possible), you can try to increase the size of the
==15071== main thread stack using the --main-stacksize= flag.
==15071== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 17: resume running (entry) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 17: resume running (entry) coroutines - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-running
-falsecannot resume running coroutine
'
091-coroutine.t TEST 17: resume running (entry) coroutines ==15092== Invalid read of size 4
==15092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15092== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15092== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15092== by 0x8062D5B: main (nginx.c:385)
==15092== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15092==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 17: resume running (entry) coroutines ==15092==
==15092== Process terminating with default action of signal 11 (SIGSEGV)
==15092== Access not within mapped region at address 0x0
==15092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15092== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15092== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15092== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15092== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15092== by 0x8062D5B: main (nginx.c:385)
==15092== If you believe this happened as a result of a stack
==15092== overflow in your program's main thread (unlikely but
==15092== possible), you can try to increase the size of the
==15092== main thread stack using the --main-stacksize= flag.
==15092== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 17: resume running (entry) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 17: resume running (entry) coroutines - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-running
-falsecannot resume running coroutine
'
091-coroutine.t TEST 18: resume running (user) coroutines ==15104== Invalid read of size 4
==15104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15104== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15104== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15104== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15104== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15104== by 0x8062D5B: main (nginx.c:385)
==15104== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15104==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 18: resume running (user) coroutines ==15104==
==15104== Process terminating with default action of signal 11 (SIGSEGV)
==15104== Access not within mapped region at address 0x0
==15104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15104== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15104== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15104== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15104== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15104== by 0x8062D5B: main (nginx.c:385)
==15104== If you believe this happened as a result of a stack
==15104== overflow in your program's main thread (unlikely but
==15104== possible), you can try to increase the size of the
==15104== main thread stack using the --main-stacksize= flag.
==15104== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 18: resume running (user) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 18: resume running (user) coroutines - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-chunk: suspended
-f: running
-f: falsecannot resume running coroutine
-chunk: true
'
091-coroutine.t TEST 18: resume running (user) coroutines ==15125== Invalid read of size 4
==15125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15125== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15125== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15125== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15125== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15125== by 0x8062D5B: main (nginx.c:385)
==15125== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15125==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 18: resume running (user) coroutines ==15125==
==15125== Process terminating with default action of signal 11 (SIGSEGV)
==15125== Access not within mapped region at address 0x0
==15125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15125== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15125== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15125== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15125== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15125== by 0x8062D5B: main (nginx.c:385)
==15125== If you believe this happened as a result of a stack
==15125== overflow in your program's main thread (unlikely but
==15125== possible), you can try to increase the size of the
==15125== main thread stack using the --main-stacksize= flag.
==15125== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 18: resume running (user) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 18: resume running (user) coroutines - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-chunk: suspended
-f: running
-f: falsecannot resume running coroutine
-chunk: true
'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status ==15137== Invalid read of size 4
==15137== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15137== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15137== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15137== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15137== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15137== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15137== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15137== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15137== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15137== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15137== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15137== by 0x8062D5B: main (nginx.c:385)
==15137== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15137==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status ==15137==
==15137== Process terminating with default action of signal 11 (SIGSEGV)
==15137== Access not within mapped region at address 0x0
==15137== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15137== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15137== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15137== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15137== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15137== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15137== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15137== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15137== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15137== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15137== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15137== by 0x8062D5B: main (nginx.c:385)
==15137== If you believe this happened as a result of a stack
==15137== overflow in your program's main thread (unlikely but
==15137== possible), you can try to increase the size of the
==15137== main thread stack using the --main-stacksize= flag.
==15137== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^s:^child: resume: falsecontent_by_lua\(nginx\.conf:\d+\):4: bad
child: status: dead
parent: status: running
$)'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status ==15158== Invalid read of size 4
==15158== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15158== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15158== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15158== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15158== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15158== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15158== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15158== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15158== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15158== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15158== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15158== by 0x8062D5B: main (nginx.c:385)
==15158== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15158==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status ==15158==
==15158== Process terminating with default action of signal 11 (SIGSEGV)
==15158== Access not within mapped region at address 0x0
==15158== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15158== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15158== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15158== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15158== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15158== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15158== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15158== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15158== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15158== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15158== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15158== by 0x8062D5B: main (nginx.c:385)
==15158== If you believe this happened as a result of a stack
==15158== overflow in your program's main thread (unlikely but
==15158== possible), you can try to increase the size of the
==15158== main thread stack using the --main-stacksize= flag.
==15158== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^s:^child: resume: falsecontent_by_lua\(nginx\.conf:\d+\):4: bad
child: status: dead
parent: status: running
$)'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status ==15170== Invalid read of size 4
==15170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15170== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15170== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15170== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15170== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15170== by 0x8062D5B: main (nginx.c:385)
==15170== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status ==15170==
==15170== Process terminating with default action of signal 11 (SIGSEGV)
==15170== Access not within mapped region at address 0x0
==15170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15170== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15170== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15170== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15170== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15170== by 0x8062D5B: main (nginx.c:385)
==15170== If you believe this happened as a result of a stack
==15170== overflow in your program's main thread (unlikely but
==15170== possible), you can try to increase the size of the
==15170== main thread stack using the --main-stacksize= flag.
==15170== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-status: running
-status: running
'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status ==15191== Invalid read of size 4
==15191== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15191== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15191== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15191== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15191== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15191== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15191== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15191== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15191== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15191== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15191== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15191== by 0x8062D5B: main (nginx.c:385)
==15191== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15191==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status ==15191==
==15191== Process terminating with default action of signal 11 (SIGSEGV)
==15191== Access not within mapped region at address 0x0
==15191== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15191== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15191== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15191== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15191== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15191== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15191== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15191== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15191== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15191== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15191== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15191== by 0x8062D5B: main (nginx.c:385)
==15191== If you believe this happened as a result of a stack
==15191== overflow in your program's main thread (unlikely but
==15191== possible), you can try to increase the size of the
==15191== main thread stack using the --main-stacksize= flag.
==15191== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-status: running
-status: running
'
091-coroutine.t TEST 21: github issue #208: coroutine as iterator doesn't work ==15203== Invalid read of size 4
==15203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15203== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15203== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15203== by 0x8062D5B: main (nginx.c:385)
==15203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 21: github issue #208: coroutine as iterator doesn't work ==15203==
==15203== Process terminating with default action of signal 11 (SIGSEGV)
==15203== Access not within mapped region at address 0x0
==15203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15203== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15203== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15203== by 0x8062D5B: main (nginx.c:385)
==15203== If you believe this happened as a result of a stack
==15203== overflow in your program's main thread (unlikely but
==15203== possible), you can try to increase the size of the
==15203== main thread stack using the --main-stacksize= flag.
==15203== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - status code ok got: ''
expected: '200'
091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-test1
-test2
-test3
-test4
-test5
-test6
-test7
-test8
-test9
-test10
'
091-coroutine.t TEST 21: github issue #208: coroutine as iterator doesn't work ==15224== Invalid read of size 4
==15224== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15224== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15224== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15224== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15224== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15224== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15224== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15224== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15224== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15224== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15224== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15224== by 0x8062D5B: main (nginx.c:385)
==15224== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15224==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 21: github issue #208: coroutine as iterator doesn't work ==15224==
==15224== Process terminating with default action of signal 11 (SIGSEGV)
==15224== Access not within mapped region at address 0x0
==15224== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15224== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15224== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15224== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15224== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15224== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15224== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15224== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15224== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15224== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15224== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15224== by 0x8062D5B: main (nginx.c:385)
==15224== If you believe this happened as a result of a stack
==15224== overflow in your program's main thread (unlikely but
==15224== possible), you can try to increase the size of the
==15224== main thread stack using the --main-stacksize= flag.
==15224== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - status code ok got: ''
expected: '200'
091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-test1
-test2
-test3
-test4
-test5
-test6
-test7
-test8
-test9
-test10
'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua ==15236== Invalid read of size 4
==15236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15236== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15236== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15236== by 0x8062D5B: main (nginx.c:385)
==15236== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15236==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua ==15236==
==15236== Process terminating with default action of signal 11 (SIGSEGV)
==15236== Access not within mapped region at address 0x0
==15236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15236== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15236== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15236== by 0x8062D5B: main (nginx.c:385)
==15236== If you believe this happened as a result of a stack
==15236== overflow in your program's main thread (unlikely but
==15236== possible), you can try to increase the size of the
==15236== main thread stack using the --main-stacksize= flag.
==15236== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua ==15257== Invalid read of size 4
==15257== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15257== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15257== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15257== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15257== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15257== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15257== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15257== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15257== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15257== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15257== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15257== by 0x8062D5B: main (nginx.c:385)
==15257== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15257==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua ==15257==
==15257== Process terminating with default action of signal 11 (SIGSEGV)
==15257== Access not within mapped region at address 0x0
==15257== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15257== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15257== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15257== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15257== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15257== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15257== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15257== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15257== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15257== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15257== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15257== by 0x8062D5B: main (nginx.c:385)
==15257== If you believe this happened as a result of a stack
==15257== overflow in your program's main thread (unlikely but
==15257== possible), you can try to increase the size of the
==15257== main thread stack using the --main-stacksize= flag.
==15257== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua ==15269== Invalid read of size 4
==15269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15269== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15269== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15269== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15269== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15269== by 0x8062D5B: main (nginx.c:385)
==15269== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15269==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua ==15269==
==15269== Process terminating with default action of signal 11 (SIGSEGV)
==15269== Access not within mapped region at address 0x0
==15269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15269== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15269== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15269== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15269== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15269== by 0x8062D5B: main (nginx.c:385)
==15269== If you believe this happened as a result of a stack
==15269== overflow in your program's main thread (unlikely but
==15269== possible), you can try to increase the size of the
==15269== main thread stack using the --main-stacksize= flag.
==15269== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua ==15290== Invalid read of size 4
==15290== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15290== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15290== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15290== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15290== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15290== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15290== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15290== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15290== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15290== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15290== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15290== by 0x8062D5B: main (nginx.c:385)
==15290== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15290==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua ==15290==
==15290== Process terminating with default action of signal 11 (SIGSEGV)
==15290== Access not within mapped region at address 0x0
==15290== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15290== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15290== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15290== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15290== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15290== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15290== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15290== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15290== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15290== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15290== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15290== by 0x8062D5B: main (nginx.c:385)
==15290== If you believe this happened as a result of a stack
==15290== overflow in your program's main thread (unlikely but
==15290== possible), you can try to increase the size of the
==15290== main thread stack using the --main-stacksize= flag.
==15290== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua ==15303== Invalid read of size 4
==15303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15303== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15303== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15303== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15303== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15303== by 0x8062D5B: main (nginx.c:385)
==15303== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15303==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua ==15303==
==15303== Process terminating with default action of signal 11 (SIGSEGV)
==15303== Access not within mapped region at address 0x0
==15303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15303== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15303== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15303== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15303== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15303== by 0x8062D5B: main (nginx.c:385)
==15303== If you believe this happened as a result of a stack
==15303== overflow in your program's main thread (unlikely but
==15303== possible), you can try to increase the size of the
==15303== main thread stack using the --main-stacksize= flag.
==15303== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua ==15324== Invalid read of size 4
==15324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15324== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15324== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15324== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15324== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15324== by 0x8062D5B: main (nginx.c:385)
==15324== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15324==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua ==15324==
==15324== Process terminating with default action of signal 11 (SIGSEGV)
==15324== Access not within mapped region at address 0x0
==15324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15324== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15324== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15324== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15324== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15324== by 0x8062D5B: main (nginx.c:385)
==15324== If you believe this happened as a result of a stack
==15324== overflow in your program's main thread (unlikely but
==15324== possible), you can try to increase the size of the
==15324== main thread stack using the --main-stacksize= flag.
==15324== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua_file ==15336== Invalid read of size 4
==15336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15336== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15336== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15336== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15336== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15336== by 0x8062D5B: main (nginx.c:385)
==15336== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15336==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua_file ==15336==
==15336== Process terminating with default action of signal 11 (SIGSEGV)
==15336== Access not within mapped region at address 0x0
==15336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15336== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15336== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15336== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15336== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15336== by 0x8062D5B: main (nginx.c:385)
==15336== If you believe this happened as a result of a stack
==15336== overflow in your program's main thread (unlikely but
==15336== possible), you can try to increase the size of the
==15336== main thread stack using the --main-stacksize= flag.
==15336== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - status code ok got: ''
expected: '200'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua_file ==15357== Invalid read of size 4
==15357== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15357== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15357== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15357== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15357== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15357== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15357== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15357== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15357== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15357== by 0x8062D5B: main (nginx.c:385)
==15357== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15357==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua_file ==15357==
==15357== Process terminating with default action of signal 11 (SIGSEGV)
==15357== Access not within mapped region at address 0x0
==15357== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15357== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15357== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15357== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15357== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15357== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15357== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15357== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15357== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15357== by 0x8062D5B: main (nginx.c:385)
==15357== If you believe this happened as a result of a stack
==15357== overflow in your program's main thread (unlikely but
==15357== possible), you can try to increase the size of the
==15357== main thread stack using the --main-stacksize= flag.
==15357== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - status code ok got: ''
expected: '200'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 26: coroutine context collicisions ==15370== Invalid read of size 4
==15370== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15370== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15370== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15370== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15370== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15370== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15370== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15370== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15370== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15370== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15370== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15370== by 0x8062D5B: main (nginx.c:385)
==15370== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15370==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 26: coroutine context collicisions ==15370==
==15370== Process terminating with default action of signal 11 (SIGSEGV)
==15370== Access not within mapped region at address 0x0
==15370== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15370== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15370== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15370== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15370== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15370== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15370== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15370== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15370== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15370== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15370== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15370== by 0x8062D5B: main (nginx.c:385)
==15370== If you believe this happened as a result of a stack
==15370== overflow in your program's main thread (unlikely but
==15370== possible), you can try to increase the size of the
==15370== main thread stack using the --main-stacksize= flag.
==15370== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 26: coroutine context collicisions - status code ok got: ''
expected: '200'
091-coroutine.t TEST 26: coroutine context collicisions - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
091-coroutine.t TEST 26: coroutine context collicisions ==15391== Invalid read of size 4
==15391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15391== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15391== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15391== by 0x8062D5B: main (nginx.c:385)
==15391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 26: coroutine context collicisions ==15391==
==15391== Process terminating with default action of signal 11 (SIGSEGV)
==15391== Access not within mapped region at address 0x0
==15391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15391== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15391== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15391== by 0x8062D5B: main (nginx.c:385)
==15391== If you believe this happened as a result of a stack
==15391== overflow in your program's main thread (unlikely but
==15391== possible), you can try to increase the size of the
==15391== main thread stack using the --main-stacksize= flag.
==15391== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 26: coroutine context collicisions - status code ok got: ''
expected: '200'
091-coroutine.t TEST 26: coroutine context collicisions - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
091-coroutine.t TEST 27: require "coroutine" ==15403== Invalid read of size 4
==15403== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15403== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15403== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15403== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15403== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15403== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15403== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15403== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15403== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15403== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15403== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15403== by 0x8062D5B: main (nginx.c:385)
==15403== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15403==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 27: require "coroutine" ==15403==
==15403== Process terminating with default action of signal 11 (SIGSEGV)
==15403== Access not within mapped region at address 0x0
==15403== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15403== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15403== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15403== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15403== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15403== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15403== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15403== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15403== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15403== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15403== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15403== by 0x8062D5B: main (nginx.c:385)
==15403== If you believe this happened as a result of a stack
==15403== overflow in your program's main thread (unlikely but
==15403== possible), you can try to increase the size of the
==15403== main thread stack using the --main-stacksize= flag.
==15403== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 27: require "coroutine" - status code ok got: ''
expected: '200'
091-coroutine.t TEST 27: require "coroutine" - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 27: require "coroutine" ==15424== Invalid read of size 4
==15424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15424== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15424== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15424== by 0x8062D5B: main (nginx.c:385)
==15424== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15424==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 27: require "coroutine" ==15424==
==15424== Process terminating with default action of signal 11 (SIGSEGV)
==15424== Access not within mapped region at address 0x0
==15424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15424== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15424== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15424== by 0x8062D5B: main (nginx.c:385)
==15424== If you believe this happened as a result of a stack
==15424== overflow in your program's main thread (unlikely but
==15424== possible), you can try to increase the size of the
==15424== main thread stack using the --main-stacksize= flag.
==15424== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 27: require "coroutine" - status code ok got: ''
expected: '200'
091-coroutine.t TEST 27: require "coroutine" - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine ==15436== Invalid read of size 4
==15436== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15436== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15436== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15436== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15436== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15436== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15436== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15436== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15436== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15436== by 0x8062D5B: main (nginx.c:385)
==15436== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15436==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine ==15436==
==15436== Process terminating with default action of signal 11 (SIGSEGV)
==15436== Access not within mapped region at address 0x0
==15436== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15436== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15436== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15436== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15436== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15436== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15436== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15436== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15436== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15436== by 0x8062D5B: main (nginx.c:385)
==15436== If you believe this happened as a result of a stack
==15436== overflow in your program's main thread (unlikely but
==15436== possible), you can try to increase the size of the
==15436== main thread stack using the --main-stacksize= flag.
==15436== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine ==15457== Invalid read of size 4
==15457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15457== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15457== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15457== by 0x8062D5B: main (nginx.c:385)
==15457== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15457==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine ==15457==
==15457== Process terminating with default action of signal 11 (SIGSEGV)
==15457== Access not within mapped region at address 0x0
==15457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15457== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15457== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15457== by 0x8062D5B: main (nginx.c:385)
==15457== If you believe this happened as a result of a stack
==15457== overflow in your program's main thread (unlikely but
==15457== possible), you can try to increase the size of the
==15457== main thread stack using the --main-stacksize= flag.
==15457== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine ==15469== Invalid read of size 4
==15469== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15469== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15469== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15469== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15469== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15469== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15469== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15469== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15469== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15469== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15469== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15469== by 0x8062D5B: main (nginx.c:385)
==15469== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15469==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine ==15469==
==15469== Process terminating with default action of signal 11 (SIGSEGV)
==15469== Access not within mapped region at address 0x0
==15469== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15469== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15469== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15469== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15469== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15469== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15469== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15469== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15469== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15469== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15469== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15469== by 0x8062D5B: main (nginx.c:385)
==15469== If you believe this happened as a result of a stack
==15469== overflow in your program's main thread (unlikely but
==15469== possible), you can try to increase the size of the
==15469== main thread stack using the --main-stacksize= flag.
==15469== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine ==15490== Invalid read of size 4
==15490== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15490== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15490== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15490== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15490== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15490== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15490== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15490== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15490== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15490== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15490== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15490== by 0x8062D5B: main (nginx.c:385)
==15490== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15490==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine ==15490==
==15490== Process terminating with default action of signal 11 (SIGSEGV)
==15490== Access not within mapped region at address 0x0
==15490== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15490== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15490== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15490== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15490== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15490== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15490== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15490== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15490== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15490== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15490== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15490== by 0x8062D5B: main (nginx.c:385)
==15490== If you believe this happened as a result of a stack
==15490== overflow in your program's main thread (unlikely but
==15490== possible), you can try to increase the size of the
==15490== main thread stack using the --main-stacksize= flag.
==15490== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine ==15502== Invalid read of size 4
==15502== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15502== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15502== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15502== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15502== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15502== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15502== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15502== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15502== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15502== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15502== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15502== by 0x8062D5B: main (nginx.c:385)
==15502== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15502==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine ==15502==
==15502== Process terminating with default action of signal 11 (SIGSEGV)
==15502== Access not within mapped region at address 0x0
==15502== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15502== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15502== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15502== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15502== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15502== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15502== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15502== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15502== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15502== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15502== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15502== by 0x8062D5B: main (nginx.c:385)
==15502== If you believe this happened as a result of a stack
==15502== overflow in your program's main thread (unlikely but
==15502== possible), you can try to increase the size of the
==15502== main thread stack using the --main-stacksize= flag.
==15502== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine ==15523== Invalid read of size 4
==15523== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15523== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15523== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15523== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15523== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15523== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15523== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15523== by 0x8062D5B: main (nginx.c:385)
==15523== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15523==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine ==15523==
==15523== Process terminating with default action of signal 11 (SIGSEGV)
==15523== Access not within mapped region at address 0x0
==15523== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15523== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15523== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15523== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15523== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15523== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15523== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15523== by 0x8062D5B: main (nginx.c:385)
==15523== If you believe this happened as a result of a stack
==15523== overflow in your program's main thread (unlikely but
==15523== possible), you can try to increase the size of the
==15523== main thread stack using the --main-stacksize= flag.
==15523== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors ==15535== Invalid read of size 4
==15535== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15535== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15535== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15535== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15535== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15535== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15535== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15535== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15535== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15535== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15535== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15535== by 0x8062D5B: main (nginx.c:385)
==15535== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15535==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors ==15535==
==15535== Process terminating with default action of signal 11 (SIGSEGV)
==15535== Access not within mapped region at address 0x0
==15535== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15535== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15535== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15535== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15535== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15535== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15535== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15535== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15535== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15535== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15535== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15535== by 0x8062D5B: main (nginx.c:385)
==15535== If you believe this happened as a result of a stack
==15535== overflow in your program's main thread (unlikely but
==15535== possible), you can try to increase the size of the
==15535== main thread stack using the --main-stacksize= flag.
==15535== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:49:38 [alert] 14559\#0: worker process 15535 exited on signal 11" (req 0) 2020/10/27 04:49:38 [debug] 14559\#0: shmtx forced unlock
2020/10/27 04:49:38 [debug] 14559\#0: wake up, sigio 0
2020/10/27 04:49:38 [debug] 14559\#0: reap children
2020/10/27 04:49:38 [debug] 14559\#0: child: 0 15535 e:0 t:1 d:0 r:1 j:0
'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors ==15556== Invalid read of size 4
==15556== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15556== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15556== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15556== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15556== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15556== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15556== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15556== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15556== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15556== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15556== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15556== by 0x8062D5B: main (nginx.c:385)
==15556== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15556==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors ==15556==
==15556== Process terminating with default action of signal 11 (SIGSEGV)
==15556== Access not within mapped region at address 0x0
==15556== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15556== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15556== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15556== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15556== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15556== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15556== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15556== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15556== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15556== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15556== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15556== by 0x8062D5B: main (nginx.c:385)
==15556== If you believe this happened as a result of a stack
==15556== overflow in your program's main thread (unlikely but
==15556== possible), you can try to increase the size of the
==15556== main thread stack using the --main-stacksize= flag.
==15556== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:49:38 [alert] 14559\#0: worker process 15556 exited on signal 11" (req 1) 2020/10/27 04:49:38 [debug] 14559\#0: shmtx forced unlock
2020/10/27 04:49:38 [debug] 14559\#0: wake up, sigio 0
2020/10/27 04:49:38 [debug] 14559\#0: reap children
2020/10/27 04:49:38 [debug] 14559\#0: child: 0 15556 e:0 t:1 d:0 r:1 j:0
'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield ==15568== Invalid read of size 4
==15568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15568== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15568== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15568== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15568== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15568== by 0x8062D5B: main (nginx.c:385)
==15568== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15568==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield ==15568==
==15568== Process terminating with default action of signal 11 (SIGSEGV)
==15568== Access not within mapped region at address 0x0
==15568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15568== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15568== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15568== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15568== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15568== by 0x8062D5B: main (nginx.c:385)
==15568== If you believe this happened as a result of a stack
==15568== overflow in your program's main thread (unlikely but
==15568== possible), you can try to increase the size of the
==15568== main thread stack using the --main-stacksize= flag.
==15568== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - status code ok got: ''
expected: '200'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok, err
'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield ==15589== Invalid read of size 4
==15589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15589== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15589== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15589== by 0x8062D5B: main (nginx.c:385)
==15589== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15589==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield ==15589==
==15589== Process terminating with default action of signal 11 (SIGSEGV)
==15589== Access not within mapped region at address 0x0
==15589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15589== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15589== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15589== by 0x8062D5B: main (nginx.c:385)
==15589== If you believe this happened as a result of a stack
==15589== overflow in your program's main thread (unlikely but
==15589== possible), you can try to increase the size of the
==15589== main thread stack using the --main-stacksize= flag.
==15589== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - status code ok got: ''
expected: '200'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok, err
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done ==15601== Invalid read of size 4
==15601== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15601== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15601== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15601== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15601== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15601== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15601== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15601== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15601== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15601== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15601== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15601== by 0x8062D5B: main (nginx.c:385)
==15601== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15601==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done ==15601==
==15601== Process terminating with default action of signal 11 (SIGSEGV)
==15601== Access not within mapped region at address 0x0
==15601== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15601== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15601== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15601== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15601== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15601== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15601== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15601== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15601== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15601== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15601== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15601== by 0x8062D5B: main (nginx.c:385)
==15601== If you believe this happened as a result of a stack
==15601== overflow in your program's main thread (unlikely but
==15601== possible), you can try to increase the size of the
==15601== main thread stack using the --main-stacksize= flag.
==15601== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - status code ok got: ''
expected: '200'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'nil
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:49:46 [alert] 14559\#0: worker process 15601 exited on signal 11" (req 0) 2020/10/27 04:49:46 [debug] 14559\#0: shmtx forced unlock
2020/10/27 04:49:46 [debug] 14559\#0: wake up, sigio 0
2020/10/27 04:49:46 [debug] 14559\#0: reap children
2020/10/27 04:49:46 [debug] 14559\#0: child: 0 15601 e:0 t:1 d:0 r:1 j:0
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done ==15622== Invalid read of size 4
==15622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15622== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15622== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15622== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15622== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15622== by 0x8062D5B: main (nginx.c:385)
==15622== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15622==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done ==15622==
==15622== Process terminating with default action of signal 11 (SIGSEGV)
==15622== Access not within mapped region at address 0x0
==15622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15622== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15622== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15622== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15622== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15622== by 0x8062D5B: main (nginx.c:385)
==15622== If you believe this happened as a result of a stack
==15622== overflow in your program's main thread (unlikely but
==15622== possible), you can try to increase the size of the
==15622== main thread stack using the --main-stacksize= flag.
==15622== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - status code ok got: ''
expected: '200'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'nil
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:49:46 [alert] 14559\#0: worker process 15622 exited on signal 11" (req 1) 2020/10/27 04:49:46 [debug] 14559\#0: shmtx forced unlock
2020/10/27 04:49:46 [debug] 14559\#0: wake up, sigio 0
2020/10/27 04:49:46 [debug] 14559\#0: reap children
2020/10/27 04:49:46 [debug] 14559\#0: child: 0 15622 e:0 t:1 d:0 r:1 j:0
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs ==15634== Invalid read of size 4
==15634== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15634== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15634== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15634== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15634== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15634== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15634== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15634== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15634== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15634== by 0x8062D5B: main (nginx.c:385)
==15634== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15634==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 35: coroutine.wrap creates different function refs ==15634==
==15634== Process terminating with default action of signal 11 (SIGSEGV)
==15634== Access not within mapped region at address 0x0
==15634== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15634== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15634== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15634== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15634== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15634== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15634== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15634== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15634== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15634== by 0x8062D5B: main (nginx.c:385)
==15634== If you believe this happened as a result of a stack
==15634== overflow in your program's main thread (unlikely but
==15634== possible), you can try to increase the size of the
==15634== main thread stack using the --main-stacksize= flag.
==15634== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 35: coroutine.wrap creates different function refs - status code ok got: ''
expected: '200'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'co == co2: false
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:49:50 [alert] 14559\#0: worker process 15634 exited on signal 11" (req 0) 2020/10/27 04:49:50 [debug] 14559\#0: shmtx forced unlock
2020/10/27 04:49:50 [debug] 14559\#0: wake up, sigio 0
2020/10/27 04:49:50 [debug] 14559\#0: reap children
2020/10/27 04:49:50 [debug] 14559\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:49:50 [debug] 14559\#0: child: 1 15634 e:0 t:1 d:0 r:1 j:0
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs ==15655== Invalid read of size 4
==15655== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15655== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15655== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15655== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15655== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15655== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15655== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15655== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15655== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15655== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15655== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15655== by 0x8062D5B: main (nginx.c:385)
==15655== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15655==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 35: coroutine.wrap creates different function refs ==15655==
==15655== Process terminating with default action of signal 11 (SIGSEGV)
==15655== Access not within mapped region at address 0x0
==15655== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15655== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15655== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15655== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15655== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15655== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15655== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15655== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15655== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15655== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15655== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15655== by 0x8062D5B: main (nginx.c:385)
==15655== If you believe this happened as a result of a stack
==15655== overflow in your program's main thread (unlikely but
==15655== possible), you can try to increase the size of the
==15655== main thread stack using the --main-stacksize= flag.
==15655== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 35: coroutine.wrap creates different function refs - status code ok got: ''
expected: '200'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'co == co2: false
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:49:51 [alert] 14559\#0: worker process 15655 exited on signal 11" (req 1) 2020/10/27 04:49:51 [debug] 14559\#0: shmtx forced unlock
2020/10/27 04:49:51 [debug] 14559\#0: wake up, sigio 0
2020/10/27 04:49:51 [debug] 14559\#0: reap children
2020/10/27 04:49:51 [debug] 14559\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:49:51 [debug] 14559\#0: child: 1 15655 e:0 t:1 d:0 r:1 j:0
'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming ==15667== Invalid read of size 4
==15667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15667== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15667== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15667== by 0x8062D5B: main (nginx.c:385)
==15667== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15667==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming ==15667==
==15667== Process terminating with default action of signal 11 (SIGSEGV)
==15667== Access not within mapped region at address 0x0
==15667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15667== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15667== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15667== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15667== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15667== by 0x8062D5B: main (nginx.c:385)
==15667== If you believe this happened as a result of a stack
==15667== overflow in your program's main thread (unlikely but
==15667== possible), you can try to increase the size of the
==15667== main thread stack using the --main-stacksize= flag.
==15667== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - status code ok got: ''
expected: '200'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming ==15688== Invalid read of size 4
==15688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15688== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15688== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15688== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15688== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15688== by 0x8062D5B: main (nginx.c:385)
==15688== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15688==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming ==15688==
==15688== Process terminating with default action of signal 11 (SIGSEGV)
==15688== Access not within mapped region at address 0x0
==15688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15688== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15688== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15688== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15688== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15688== by 0x8062D5B: main (nginx.c:385)
==15688== If you believe this happened as a result of a stack
==15688== overflow in your program's main thread (unlikely but
==15688== possible), you can try to increase the size of the
==15688== main thread stack using the --main-stacksize= flag.
==15688== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - status code ok got: ''
expected: '200'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 37: coroutine.wrap return values ==15700== Invalid read of size 4
==15700== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15700== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15700== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15700== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15700== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15700== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15700== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15700== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15700== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15700== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15700== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15700== by 0x8062D5B: main (nginx.c:385)
==15700== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15700==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 37: coroutine.wrap return values ==15700==
==15700== Process terminating with default action of signal 11 (SIGSEGV)
==15700== Access not within mapped region at address 0x0
==15700== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15700== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15700== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15700== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15700== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15700== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15700== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15700== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15700== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15700== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15700== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15700== by 0x8062D5B: main (nginx.c:385)
==15700== If you believe this happened as a result of a stack
==15700== overflow in your program's main thread (unlikely but
==15700== possible), you can try to increase the size of the
==15700== main thread stack using the --main-stacksize= flag.
==15700== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 37: coroutine.wrap return values - status code ok got: ''
expected: '200'
091-coroutine.t TEST 37: coroutine.wrap return values - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0, 1
-co resume
-co yield: 1, 2
-co resume
-co yield: 2, 3
'
091-coroutine.t TEST 37: coroutine.wrap return values ==15721== Invalid read of size 4
==15721== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15721== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15721== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15721== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15721== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15721== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15721== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15721== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15721== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15721== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15721== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15721== by 0x8062D5B: main (nginx.c:385)
==15721== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15721==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 37: coroutine.wrap return values ==15721==
==15721== Process terminating with default action of signal 11 (SIGSEGV)
==15721== Access not within mapped region at address 0x0
==15721== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15721== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15721== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15721== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15721== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15721== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15721== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15721== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15721== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15721== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15721== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15721== by 0x8062D5B: main (nginx.c:385)
==15721== If you believe this happened as a result of a stack
==15721== overflow in your program's main thread (unlikely but
==15721== possible), you can try to increase the size of the
==15721== main thread stack using the --main-stacksize= flag.
==15721== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 37: coroutine.wrap return values - status code ok got: ''
expected: '200'
091-coroutine.t TEST 37: coroutine.wrap return values - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0, 1
-co resume
-co yield: 1, 2
-co resume
-co yield: 2, 3
'
091-coroutine.t TEST 38: coroutine.wrap arguments ==15733== Invalid read of size 4
==15733== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15733== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15733== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15733== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15733== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15733== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15733== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15733== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15733== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15733== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15733== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15733== by 0x8062D5B: main (nginx.c:385)
==15733== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15733==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 38: coroutine.wrap arguments ==15733==
==15733== Process terminating with default action of signal 11 (SIGSEGV)
==15733== Access not within mapped region at address 0x0
==15733== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15733== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15733== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15733== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15733== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15733== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15733== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15733== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15733== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15733== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15733== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15733== by 0x8062D5B: main (nginx.c:385)
==15733== If you believe this happened as a result of a stack
==15733== overflow in your program's main thread (unlikely but
==15733== possible), you can try to increase the size of the
==15733== main thread stack using the --main-stacksize= flag.
==15733== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 38: coroutine.wrap arguments - status code ok got: ''
expected: '200'
091-coroutine.t TEST 38: coroutine.wrap arguments - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 38: coroutine.wrap arguments ==15754== Invalid read of size 4
==15754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15754== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15754== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15754== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15754== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15754== by 0x8062D5B: main (nginx.c:385)
==15754== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15754==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 38: coroutine.wrap arguments ==15754==
==15754== Process terminating with default action of signal 11 (SIGSEGV)
==15754== Access not within mapped region at address 0x0
==15754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15754== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15754== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15754== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15754== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15754== by 0x8062D5B: main (nginx.c:385)
==15754== If you believe this happened as a result of a stack
==15754== overflow in your program's main thread (unlikely but
==15754== possible), you can try to increase the size of the
==15754== main thread stack using the --main-stacksize= flag.
==15754== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 38: coroutine.wrap arguments - status code ok got: ''
expected: '200'
091-coroutine.t TEST 38: coroutine.wrap arguments - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - Can't connect to 127.0.0.1:1984: Connection refused ==15763== Invalid read of size 4
==15763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15763== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15763== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==15763== by 0x8062D5B: main (nginx.c:385)
==15763== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15763==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - Can't connect to 127.0.0.1:1984: Connection refused ==15763==
==15763== Process terminating with default action of signal 11 (SIGSEGV)
==15763== Access not within mapped region at address 0x0
==15763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15763== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15763== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15763== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15763== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==15763== by 0x8062D5B: main (nginx.c:385)
==15763== If you believe this happened as a result of a stack
==15763== overflow in your program's main thread (unlikely but
==15763== possible), you can try to increase the size of the
==15763== main thread stack using the --main-stacksize= flag.
==15763== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - response_body_like - response is expected () ''
doesn't match '(?^s:false
content_by_lua\(nginx.conf:\d+\):\d+: something went wrong
)'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - Can't connect to 127.0.0.1:1984: Connection refused ==15764== Invalid read of size 4
==15764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15764== by 0x8062D5B: main (nginx.c:385)
==15764== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15764==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - Can't connect to 127.0.0.1:1984: Connection refused ==15764==
==15764== Process terminating with default action of signal 11 (SIGSEGV)
==15764== Access not within mapped region at address 0x0
==15764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15764== by 0x8062D5B: main (nginx.c:385)
==15764== If you believe this happened as a result of a stack
==15764== overflow in your program's main thread (unlikely but
==15764== possible), you can try to increase the size of the
==15764== main thread stack using the --main-stacksize= flag.
==15764== The main thread stack size used in this run was 8388608.

091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - response_body_like - response is expected () ''
doesn't match '(?^s:false
content_by_lua\(nginx.conf:\d+\):\d+: something went wrong
)'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - Can't connect to 127.0.0.1:1984: Connection refused ==15774== Invalid read of size 4
==15774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15774== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15774== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==15774== by 0x8062D5B: main (nginx.c:385)
==15774== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15774==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - Can't connect to 127.0.0.1:1984: Connection refused ==15774==
==15774== Process terminating with default action of signal 11 (SIGSEGV)
==15774== Access not within mapped region at address 0x0
==15774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15774== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15774== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==15774== by 0x8062D5B: main (nginx.c:385)
==15774== If you believe this happened as a result of a stack
==15774== overflow in your program's main thread (unlikely but
==15774== possible), you can try to increase the size of the
==15774== main thread stack using the --main-stacksize= flag.
==15774== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
after
received: hello udp
|before
received: hello udp
after)$)'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - Can't connect to 127.0.0.1:1984: Connection refused ==15776== Invalid read of size 4
==15776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15776== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15776== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15776== by 0x8062D5B: main (nginx.c:385)
==15776== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15776==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - Can't connect to 127.0.0.1:1984: Connection refused ==15776==
==15776== Process terminating with default action of signal 11 (SIGSEGV)
==15776== Access not within mapped region at address 0x0
==15776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15776== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15776== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15776== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15776== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15776== by 0x8062D5B: main (nginx.c:385)
==15776== If you believe this happened as a result of a stack
==15776== overflow in your program's main thread (unlikely but
==15776== possible), you can try to increase the size of the
==15776== main thread stack using the --main-stacksize= flag.
==15776== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
after
received: hello udp
|before
received: hello udp
after)$)'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() ==15790== Invalid read of size 4
==15790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15790== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15790== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15790== by 0x8062D5B: main (nginx.c:385)
==15790== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15790==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() ==15790==
==15790== Process terminating with default action of signal 11 (SIGSEGV)
==15790== Access not within mapped region at address 0x0
==15790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15790== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15790== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15790== by 0x8062D5B: main (nginx.c:385)
==15790== If you believe this happened as a result of a stack
==15790== overflow in your program's main thread (unlikely but
==15790== possible), you can try to increase the size of the
==15790== main thread stack using the --main-stacksize= flag.
==15790== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
body: hello world
after|before
after
body: hello world)$)'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() ==15811== Invalid read of size 4
==15811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15811== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15811== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15811== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15811== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15811== by 0x8062D5B: main (nginx.c:385)
==15811== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() ==15811==
==15811== Process terminating with default action of signal 11 (SIGSEGV)
==15811== Access not within mapped region at address 0x0
==15811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15811== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15811== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15811== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15811== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15811== by 0x8062D5B: main (nginx.c:385)
==15811== If you believe this happened as a result of a stack
==15811== overflow in your program's main thread (unlikely but
==15811== possible), you can try to increase the size of the
==15811== main thread stack using the --main-stacksize= flag.
==15811== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
body: hello world
after|before
after
body: hello world)$)'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) ==15823== Invalid read of size 4
==15823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15823== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15823== by 0x8062D5B: main (nginx.c:385)
==15823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 7: nested user threads (with I/O) ==15823==
==15823== Process terminating with default action of signal 11 (SIGSEGV)
==15823== Access not within mapped region at address 0x0
==15823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15823== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15823== by 0x8062D5B: main (nginx.c:385)
==15823== If you believe this happened as a result of a stack
==15823== overflow in your program's main thread (unlikely but
==15823== possible), you can try to increase the size of the
==15823== main thread stack using the --main-stacksize= flag.
==15823== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 7: nested user threads (with I/O) - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-after f
-after g
-hello in g()
'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) ==15844== Invalid read of size 4
==15844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15844== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15844== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15844== by 0x8062D5B: main (nginx.c:385)
==15844== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15844==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 7: nested user threads (with I/O) ==15844==
==15844== Process terminating with default action of signal 11 (SIGSEGV)
==15844== Access not within mapped region at address 0x0
==15844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15844== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15844== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15844== by 0x8062D5B: main (nginx.c:385)
==15844== If you believe this happened as a result of a stack
==15844== overflow in your program's main thread (unlikely but
==15844== possible), you can try to increase the size of the
==15844== main thread stack using the --main-stacksize= flag.
==15844== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 7: nested user threads (with I/O) - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-after f
-after g
-hello in g()
'
093-uthread-spawn.t TEST 6: nested user threads ==15856== Invalid read of size 4
==15856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15856== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15856== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15856== by 0x8062D5B: main (nginx.c:385)
==15856== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15856==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 6: nested user threads ==15856==
==15856== Process terminating with default action of signal 11 (SIGSEGV)
==15856== Access not within mapped region at address 0x0
==15856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15856== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15856== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15856== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15856== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15856== by 0x8062D5B: main (nginx.c:385)
==15856== If you believe this happened as a result of a stack
==15856== overflow in your program's main thread (unlikely but
==15856== possible), you can try to increase the size of the
==15856== main thread stack using the --main-stacksize= flag.
==15856== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 6: nested user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 6: nested user threads - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after f
-after g
'
093-uthread-spawn.t TEST 6: nested user threads ==15877== Invalid read of size 4
==15877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15877== by 0x8062D5B: main (nginx.c:385)
==15877== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15877==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 6: nested user threads ==15877==
==15877== Process terminating with default action of signal 11 (SIGSEGV)
==15877== Access not within mapped region at address 0x0
==15877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15877== by 0x8062D5B: main (nginx.c:385)
==15877== If you believe this happened as a result of a stack
==15877== overflow in your program's main thread (unlikely but
==15877== possible), you can try to increase the size of the
==15877== main thread stack using the --main-stacksize= flag.
==15877== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 6: nested user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 6: nested user threads - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after f
-after g
'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine ==15889== Invalid read of size 4
==15889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15889== by 0x8062D5B: main (nginx.c:385)
==15889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine ==15889==
==15889== Process terminating with default action of signal 11 (SIGSEGV)
==15889== Access not within mapped region at address 0x0
==15889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15889== by 0x8062D5B: main (nginx.c:385)
==15889== If you believe this happened as a result of a stack
==15889== overflow in your program's main thread (unlikely but
==15889== possible), you can try to increase the size of the
==15889== main thread stack using the --main-stacksize= flag.
==15889== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after g
-after f
'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine ==15910== Invalid read of size 4
==15910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15910== by 0x8062D5B: main (nginx.c:385)
==15910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine ==15910==
==15910== Process terminating with default action of signal 11 (SIGSEGV)
==15910== Access not within mapped region at address 0x0
==15910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15910== by 0x8062D5B: main (nginx.c:385)
==15910== If you believe this happened as a result of a stack
==15910== overflow in your program's main thread (unlikely but
==15910== possible), you can try to increase the size of the
==15910== main thread stack using the --main-stacksize= flag.
==15910== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after g
-after f
'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp ==15922== Invalid read of size 4
==15922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15922== by 0x8062D5B: main (nginx.c:385)
==15922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15922==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp ==15922==
==15922== Process terminating with default action of signal 11 (SIGSEGV)
==15922== Access not within mapped region at address 0x0
==15922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15922== by 0x8062D5B: main (nginx.c:385)
==15922== If you believe this happened as a result of a stack
==15922== overflow in your program's main thread (unlikely but
==15922== possible), you can try to increase the size of the
==15922== main thread stack using the --main-stacksize= flag.
==15922== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp ==15943== Invalid read of size 4
==15943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15943== by 0x8062D5B: main (nginx.c:385)
==15943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp ==15943==
==15943== Process terminating with default action of signal 11 (SIGSEGV)
==15943== Access not within mapped region at address 0x0
==15943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15943== by 0x8062D5B: main (nginx.c:385)
==15943== If you believe this happened as a result of a stack
==15943== overflow in your program's main thread (unlikely but
==15943== possible), you can try to increase the size of the
==15943== main thread stack using the --main-stacksize= flag.
==15943== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread ==15955== Invalid read of size 4
==15955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15955== by 0x8062D5B: main (nginx.c:385)
==15955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 8: coroutine status of a running user thread ==15955==
==15955== Process terminating with default action of signal 11 (SIGSEGV)
==15955== Access not within mapped region at address 0x0
==15955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15955== by 0x8062D5B: main (nginx.c:385)
==15955== If you believe this happened as a result of a stack
==15955== overflow in your program's main thread (unlikely but
==15955== possible), you can try to increase the size of the
==15955== main thread stack using the --main-stacksize= flag.
==15955== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 8: coroutine status of a running user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'status: running
'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread ==15976== Invalid read of size 4
==15976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15976== by 0x8062D5B: main (nginx.c:385)
==15976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 8: coroutine status of a running user thread ==15976==
==15976== Process terminating with default action of signal 11 (SIGSEGV)
==15976== Access not within mapped region at address 0x0
==15976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==15976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==15976== by 0x8062D5B: main (nginx.c:385)
==15976== If you believe this happened as a result of a stack
==15976== overflow in your program's main thread (unlikely but
==15976== possible), you can try to increase the size of the
==15976== main thread stack using the --main-stacksize= flag.
==15976== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 8: coroutine status of a running user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'status: running
'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time ==15988== Invalid read of size 4
==15988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15988== by 0x8062D5B: main (nginx.c:385)
==15988== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15988==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time ==15988==
==15988== Process terminating with default action of signal 11 (SIGSEGV)
==15988== Access not within mapped region at address 0x0
==15988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==15988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==15988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==15988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==15988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==15988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==15988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==15988== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==15988== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==15988== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==15988== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==15988== by 0x8062D5B: main (nginx.c:385)
==15988== If you believe this happened as a result of a stack
==15988== overflow in your program's main thread (unlikely but
==15988== possible), you can try to increase the size of the
==15988== main thread stack using the --main-stacksize= flag.
==15988== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time ==16009== Invalid read of size 4
==16009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16009== by 0x8062D5B: main (nginx.c:385)
==16009== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16009==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time ==16009==
==16009== Process terminating with default action of signal 11 (SIGSEGV)
==16009== Access not within mapped region at address 0x0
==16009== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16009== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16009== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16009== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16009== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16009== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16009== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16009== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16009== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16009== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16009== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16009== by 0x8062D5B: main (nginx.c:385)
==16009== If you believe this happened as a result of a stack
==16009== overflow in your program's main thread (unlikely but
==16009== possible), you can try to increase the size of the
==16009== main thread stack using the --main-stacksize= flag.
==16009== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 19: simple user thread with args ==16021== Invalid read of size 4
==16021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16021== by 0x8062D5B: main (nginx.c:385)
==16021== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16021==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 19: simple user thread with args ==16021==
==16021== Process terminating with default action of signal 11 (SIGSEGV)
==16021== Access not within mapped region at address 0x0
==16021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16021== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16021== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16021== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16021== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16021== by 0x8062D5B: main (nginx.c:385)
==16021== If you believe this happened as a result of a stack
==16021== overflow in your program's main thread (unlikely but
==16021== possible), you can try to increase the size of the
==16021== main thread stack using the --main-stacksize= flag.
==16021== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 19: simple user thread with args - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 19: simple user thread with args - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello foo and 3.14
-after
'
093-uthread-spawn.t TEST 19: simple user thread with args ==16042== Invalid read of size 4
==16042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16042== by 0x8062D5B: main (nginx.c:385)
==16042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 19: simple user thread with args ==16042==
==16042== Process terminating with default action of signal 11 (SIGSEGV)
==16042== Access not within mapped region at address 0x0
==16042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16042== by 0x8062D5B: main (nginx.c:385)
==16042== If you believe this happened as a result of a stack
==16042== overflow in your program's main thread (unlikely but
==16042== possible), you can try to increase the size of the
==16042== main thread stack using the --main-stacksize= flag.
==16042== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 19: simple user thread with args - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 19: simple user thread with args - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello foo and 3.14
-after
'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread ==16054== Invalid read of size 4
==16054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16054== by 0x8062D5B: main (nginx.c:385)
==16054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread ==16054==
==16054== Process terminating with default action of signal 11 (SIGSEGV)
==16054== Access not within mapped region at address 0x0
==16054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16054== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16054== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16054== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16054== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16054== by 0x8062D5B: main (nginx.c:385)
==16054== If you believe this happened as a result of a stack
==16054== overflow in your program's main thread (unlikely but
==16054== possible), you can try to increase the size of the
==16054== main thread stack using the --main-stacksize= flag.
==16054== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-0
-1
-f 1
-2
-f 2
-3
-f 3
-4
'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread ==16075== Invalid read of size 4
==16075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16075== by 0x8062D5B: main (nginx.c:385)
==16075== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16075==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread ==16075==
==16075== Process terminating with default action of signal 11 (SIGSEGV)
==16075== Access not within mapped region at address 0x0
==16075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16075== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16075== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16075== by 0x8062D5B: main (nginx.c:385)
==16075== If you believe this happened as a result of a stack
==16075== overflow in your program's main thread (unlikely but
==16075== possible), you can try to increase the size of the
==16075== main thread stack using the --main-stacksize= flag.
==16075== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-0
-1
-f 1
-2
-f 2
-3
-f 3
-4
'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread ==16087== Invalid read of size 4
==16087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16087== by 0x8062D5B: main (nginx.c:385)
==16087== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16087==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread ==16087==
==16087== Process terminating with default action of signal 11 (SIGSEGV)
==16087== Access not within mapped region at address 0x0
==16087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16087== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16087== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16087== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16087== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16087== by 0x8062D5B: main (nginx.c:385)
==16087== If you believe this happened as a result of a stack
==16087== overflow in your program's main thread (unlikely but
==16087== possible), you can try to increase the size of the
==16087== main thread stack using the --main-stacksize= flag.
==16087== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'status: normal
'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread ==16108== Invalid read of size 4
==16108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16108== by 0x8062D5B: main (nginx.c:385)
==16108== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16108==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread ==16108==
==16108== Process terminating with default action of signal 11 (SIGSEGV)
==16108== Access not within mapped region at address 0x0
==16108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16108== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16108== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16108== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16108== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16108== by 0x8062D5B: main (nginx.c:385)
==16108== If you believe this happened as a result of a stack
==16108== overflow in your program's main thread (unlikely but
==16108== possible), you can try to increase the size of the
==16108== main thread stack using the --main-stacksize= flag.
==16108== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'status: normal
'
093-uthread-spawn.t TEST 2: two simple user threads without I/O ==16120== Invalid read of size 4
==16120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16120== by 0x8062D5B: main (nginx.c:385)
==16120== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 2: two simple user threads without I/O ==16120==
==16120== Process terminating with default action of signal 11 (SIGSEGV)
==16120== Access not within mapped region at address 0x0
==16120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16120== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16120== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16120== by 0x8062D5B: main (nginx.c:385)
==16120== If you believe this happened as a result of a stack
==16120== overflow in your program's main thread (unlikely but
==16120== possible), you can try to increase the size of the
==16120== main thread stack using the --main-stacksize= flag.
==16120== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 2: two simple user threads without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-before 1
-in thread 1
-after 1
-before 2
-in thread 2
-after 2
'
093-uthread-spawn.t TEST 2: two simple user threads without I/O ==16141== Invalid read of size 4
==16141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16141== by 0x8062D5B: main (nginx.c:385)
==16141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 2: two simple user threads without I/O ==16141==
==16141== Process terminating with default action of signal 11 (SIGSEGV)
==16141== Access not within mapped region at address 0x0
==16141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16141== by 0x8062D5B: main (nginx.c:385)
==16141== If you believe this happened as a result of a stack
==16141== overflow in your program's main thread (unlikely but
==16141== possible), you can try to increase the size of the
==16141== main thread stack using the --main-stacksize= flag.
==16141== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 2: two simple user threads without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-before 1
-in thread 1
-after 1
-before 2
-in thread 2
-after 2
'
093-uthread-spawn.t TEST 20: simple user thread without I/O ==16153== Invalid read of size 4
==16153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16153== by 0x8062D5B: main (nginx.c:385)
==16153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 20: simple user thread without I/O ==16153==
==16153== Process terminating with default action of signal 11 (SIGSEGV)
==16153== Access not within mapped region at address 0x0
==16153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16153== by 0x8062D5B: main (nginx.c:385)
==16153== If you believe this happened as a result of a stack
==16153== overflow in your program's main thread (unlikely but
==16153== possible), you can try to increase the size of the
==16153== main thread stack using the --main-stacksize= flag.
==16153== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 20: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 20: simple user thread without I/O - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'f
'
093-uthread-spawn.t TEST 20: simple user thread without I/O ==16174== Invalid read of size 4
==16174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16174== by 0x8062D5B: main (nginx.c:385)
==16174== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16174==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 20: simple user thread without I/O ==16174==
==16174== Process terminating with default action of signal 11 (SIGSEGV)
==16174== Access not within mapped region at address 0x0
==16174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16174== by 0x8062D5B: main (nginx.c:385)
==16174== If you believe this happened as a result of a stack
==16174== overflow in your program's main thread (unlikely but
==16174== possible), you can try to increase the size of the
==16174== main thread stack using the --main-stacksize= flag.
==16174== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 20: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 20: simple user thread without I/O - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'f
'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread ==16186== Invalid read of size 4
==16186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16186== by 0x8062D5B: main (nginx.c:385)
==16186== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16186==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread ==16186==
==16186== Process terminating with default action of signal 11 (SIGSEGV)
==16186== Access not within mapped region at address 0x0
==16186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16186== by 0x8062D5B: main (nginx.c:385)
==16186== If you believe this happened as a result of a stack
==16186== overflow in your program's main thread (unlikely but
==16186== possible), you can try to increase the size of the
==16186== main thread stack using the --main-stacksize= flag.
==16186== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'status: zombie
'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread ==16207== Invalid read of size 4
==16207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16207== by 0x8062D5B: main (nginx.c:385)
==16207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread ==16207==
==16207== Process terminating with default action of signal 11 (SIGSEGV)
==16207== Access not within mapped region at address 0x0
==16207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16207== by 0x8062D5B: main (nginx.c:385)
==16207== If you believe this happened as a result of a stack
==16207== overflow in your program's main thread (unlikely but
==16207== possible), you can try to increase the size of the
==16207== main thread stack using the --main-stacksize= flag.
==16207== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'status: zombie
'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time ==16219== Invalid read of size 4
==16219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16219== by 0x8062D5B: main (nginx.c:385)
==16219== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16219==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 15: two user threads flushing at the same time ==16219==
==16219== Process terminating with default action of signal 11 (SIGSEGV)
==16219== Access not within mapped region at address 0x0
==16219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16219== by 0x8062D5B: main (nginx.c:385)
==16219== If you believe this happened as a result of a stack
==16219== overflow in your program's main thread (unlikely but
==16219== possible), you can try to increase the size of the
==16219== main thread stack using the --main-stacksize= flag.
==16219== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 15: two user threads flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello from f
-hello from g
'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time ==16240== Invalid read of size 4
==16240== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16240== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16240== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16240== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16240== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16240== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16240== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16240== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16240== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16240== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16240== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16240== by 0x8062D5B: main (nginx.c:385)
==16240== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16240==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 15: two user threads flushing at the same time ==16240==
==16240== Process terminating with default action of signal 11 (SIGSEGV)
==16240== Access not within mapped region at address 0x0
==16240== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16240== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16240== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16240== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16240== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16240== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16240== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16240== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16240== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16240== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16240== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16240== by 0x8062D5B: main (nginx.c:385)
==16240== If you believe this happened as a result of a stack
==16240== overflow in your program's main thread (unlikely but
==16240== possible), you can try to increase the size of the
==16240== main thread stack using the --main-stacksize= flag.
==16240== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 15: two user threads flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello from f
-hello from g
'
093-uthread-spawn.t TEST 5: error in user thread ==16252== Invalid read of size 4
==16252== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16252== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16252== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16252== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16252== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16252== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16252== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16252== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16252== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16252== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16252== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16252== by 0x8062D5B: main (nginx.c:385)
==16252== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16252==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 5: error in user thread ==16252==
==16252== Process terminating with default action of signal 11 (SIGSEGV)
==16252== Access not within mapped region at address 0x0
==16252== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16252== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16252== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16252== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16252== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16252== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16252== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16252== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16252== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16252== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16252== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16252== by 0x8062D5B: main (nginx.c:385)
==16252== If you believe this happened as a result of a stack
==16252== overflow in your program's main thread (unlikely but
==16252== possible), you can try to increase the size of the
==16252== main thread stack using the --main-stacksize= flag.
==16252== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 5: error in user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 5: error in user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'after
'
093-uthread-spawn.t TEST 5: error in user thread ==16273== Invalid read of size 4
==16273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16273== by 0x8062D5B: main (nginx.c:385)
==16273== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16273==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 5: error in user thread ==16273==
==16273== Process terminating with default action of signal 11 (SIGSEGV)
==16273== Access not within mapped region at address 0x0
==16273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16273== by 0x8062D5B: main (nginx.c:385)
==16273== If you believe this happened as a result of a stack
==16273== overflow in your program's main thread (unlikely but
==16273== possible), you can try to increase the size of the
==16273== main thread stack using the --main-stacksize= flag.
==16273== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 5: error in user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 5: error in user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'after
'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads ==16285== Invalid read of size 4
==16285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16285== by 0x8062D5B: main (nginx.c:385)
==16285== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16285==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 13: manual time slicing between two user threads ==16285==
==16285== Process terminating with default action of signal 11 (SIGSEGV)
==16285== Access not within mapped region at address 0x0
==16285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16285== by 0x8062D5B: main (nginx.c:385)
==16285== If you believe this happened as a result of a stack
==16285== overflow in your program's main thread (unlikely but
==16285== possible), you can try to increase the size of the
==16285== main thread stack using the --main-stacksize= flag.
==16285== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 13: manual time slicing between two user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f 1
-g 1
-f 2
-done
-g 2
-f 3
-g 3
'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads ==16306== Invalid read of size 4
==16306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16306== by 0x8062D5B: main (nginx.c:385)
==16306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 13: manual time slicing between two user threads ==16306==
==16306== Process terminating with default action of signal 11 (SIGSEGV)
==16306== Access not within mapped region at address 0x0
==16306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16306== by 0x8062D5B: main (nginx.c:385)
==16306== If you believe this happened as a result of a stack
==16306== overflow in your program's main thread (unlikely but
==16306== possible), you can try to increase the size of the
==16306== main thread stack using the --main-stacksize= flag.
==16306== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 13: manual time slicing between two user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f 1
-g 1
-f 2
-done
-g 2
-f 3
-g 3
'
093-uthread-spawn.t TEST 4: two simple user threads with sleep ==16318== Invalid read of size 4
==16318== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16318== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16318== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16318== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16318== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16318== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16318== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16318== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16318== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16318== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16318== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16318== by 0x8062D5B: main (nginx.c:385)
==16318== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16318==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 4: two simple user threads with sleep ==16318==
==16318== Process terminating with default action of signal 11 (SIGSEGV)
==16318== Access not within mapped region at address 0x0
==16318== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16318== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16318== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16318== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16318== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16318== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16318== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16318== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16318== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16318== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16318== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16318== by 0x8062D5B: main (nginx.c:385)
==16318== If you believe this happened as a result of a stack
==16318== overflow in your program's main thread (unlikely but
==16318== possible), you can try to increase the size of the
==16318== main thread stack using the --main-stacksize= flag.
==16318== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 4: two simple user threads with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 4: two simple user threads with sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-1: before thread create
-1: before sleep
-1: after thread create
-2: before thread create
-2: before sleep
-2: after thread create
-2: after sleep
-1: after sleep
'
093-uthread-spawn.t TEST 4: two simple user threads with sleep ==16339== Invalid read of size 4
==16339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16339== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16339== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16339== by 0x8062D5B: main (nginx.c:385)
==16339== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16339==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 4: two simple user threads with sleep ==16339==
==16339== Process terminating with default action of signal 11 (SIGSEGV)
==16339== Access not within mapped region at address 0x0
==16339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16339== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16339== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16339== by 0x8062D5B: main (nginx.c:385)
==16339== If you believe this happened as a result of a stack
==16339== overflow in your program's main thread (unlikely but
==16339== possible), you can try to increase the size of the
==16339== main thread stack using the --main-stacksize= flag.
==16339== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 4: two simple user threads with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 4: two simple user threads with sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-1: before thread create
-1: before sleep
-1: after thread create
-2: before thread create
-2: before sleep
-2: after thread create
-2: after sleep
-1: after sleep
'
093-uthread-spawn.t TEST 1: simple user thread without I/O ==16351== Invalid read of size 4
==16351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16351== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16351== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16351== by 0x8062D5B: main (nginx.c:385)
==16351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 1: simple user thread without I/O ==16351==
==16351== Process terminating with default action of signal 11 (SIGSEGV)
==16351== Access not within mapped region at address 0x0
==16351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16351== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16351== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16351== by 0x8062D5B: main (nginx.c:385)
==16351== If you believe this happened as a result of a stack
==16351== overflow in your program's main thread (unlikely but
==16351== possible), you can try to increase the size of the
==16351== main thread stack using the --main-stacksize= flag.
==16351== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 1: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 1: simple user thread without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 1: simple user thread without I/O ==16372== Invalid read of size 4
==16372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16372== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16372== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16372== by 0x8062D5B: main (nginx.c:385)
==16372== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16372==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 1: simple user thread without I/O ==16372==
==16372== Process terminating with default action of signal 11 (SIGSEGV)
==16372== Access not within mapped region at address 0x0
==16372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16372== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16372== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16372== by 0x8062D5B: main (nginx.c:385)
==16372== If you believe this happened as a result of a stack
==16372== overflow in your program's main thread (unlikely but
==16372== possible), you can try to increase the size of the
==16372== main thread stack using the --main-stacksize= flag.
==16372== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 1: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 1: simple user thread without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 3: simple user thread with sleep ==16384== Invalid read of size 4
==16384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16384== by 0x8062D5B: main (nginx.c:385)
==16384== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16384==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 3: simple user thread with sleep ==16384==
==16384== Process terminating with default action of signal 11 (SIGSEGV)
==16384== Access not within mapped region at address 0x0
==16384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16384== by 0x8062D5B: main (nginx.c:385)
==16384== If you believe this happened as a result of a stack
==16384== overflow in your program's main thread (unlikely but
==16384== possible), you can try to increase the size of the
==16384== main thread stack using the --main-stacksize= flag.
==16384== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 3: simple user thread with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 3: simple user thread with sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-before thread create
-before sleep
-after thread create
-after sleep
'
093-uthread-spawn.t TEST 3: simple user thread with sleep ==16405== Invalid read of size 4
==16405== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16405== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16405== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16405== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16405== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16405== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16405== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16405== by 0x8062D5B: main (nginx.c:385)
==16405== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16405==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
093-uthread-spawn.t TEST 3: simple user thread with sleep ==16405==
==16405== Process terminating with default action of signal 11 (SIGSEGV)
==16405== Access not within mapped region at address 0x0
==16405== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16405== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16405== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16405== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16405== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16405== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16405== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16405== by 0x8062D5B: main (nginx.c:385)
==16405== If you believe this happened as a result of a stack
==16405== overflow in your program's main thread (unlikely but
==16405== possible), you can try to increase the size of the
==16405== main thread stack using the --main-stacksize= flag.
==16405== The main thread stack size used in this run was 8388608.

093-uthread-spawn.t TEST 3: simple user thread with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 3: simple user thread with sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-before thread create
-before sleep
-after thread create
-after sleep
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==16414== Invalid read of size 4
==16414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16414== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16414== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==16414== by 0x8062D5B: main (nginx.c:385)
==16414== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16414==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==16414==
==16414== Process terminating with default action of signal 11 (SIGSEGV)
==16414== Access not within mapped region at address 0x0
==16414== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16414== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16414== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16414== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16414== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16414== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16414== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16414== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16414== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16414== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16414== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==16414== by 0x8062D5B: main (nginx.c:385)
==16414== If you believe this happened as a result of a stack
==16414== overflow in your program's main thread (unlikely but
==16414== possible), you can try to increase the size of the
==16414== main thread stack using the --main-stacksize= flag.
==16414== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==16415== Invalid read of size 4
==16415== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16415== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16415== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16415== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16415== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16415== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16415== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16415== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16415== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16415== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16415== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16415== by 0x8062D5B: main (nginx.c:385)
==16415== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16415==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==16415==
==16415== Process terminating with default action of signal 11 (SIGSEGV)
==16415== Access not within mapped region at address 0x0
==16415== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16415== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16415== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16415== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16415== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16415== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16415== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16415== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16415== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16415== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16415== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16415== by 0x8062D5B: main (nginx.c:385)
==16415== If you believe this happened as a result of a stack
==16415== overflow in your program's main thread (unlikely but
==16415== possible), you can try to increase the size of the
==16415== main thread stack using the --main-stacksize= flag.
==16415== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) ==16427== Invalid read of size 4
==16427== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16427== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16427== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16427== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16427== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16427== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16427== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16427== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16427== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16427== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16427== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16427== by 0x8062D5B: main (nginx.c:385)
==16427== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16427==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) ==16427==
==16427== Process terminating with default action of signal 11 (SIGSEGV)
==16427== Access not within mapped region at address 0x0
==16427== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16427== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16427== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16427== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16427== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16427== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16427== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16427== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16427== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16427== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16427== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16427== by 0x8062D5B: main (nginx.c:385)
==16427== If you believe this happened as a result of a stack
==16427== overflow in your program's main thread (unlikely but
==16427== possible), you can try to increase the size of the
==16427== main thread stack using the --main-stacksize= flag.
==16427== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) ==16466== Invalid read of size 4
==16466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16466== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16466== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16466== by 0x8062D5B: main (nginx.c:385)
==16466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) ==16466==
==16466== Process terminating with default action of signal 11 (SIGSEGV)
==16466== Access not within mapped region at address 0x0
==16466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16466== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16466== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16466== by 0x8062D5B: main (nginx.c:385)
==16466== If you believe this happened as a result of a stack
==16466== overflow in your program's main thread (unlikely but
==16466== possible), you can try to increase the size of the
==16466== main thread stack using the --main-stacksize= flag.
==16466== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) ==16479== Invalid read of size 4
==16479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16479== by 0x8062D5B: main (nginx.c:385)
==16479== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16479==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) ==16479==
==16479== Process terminating with default action of signal 11 (SIGSEGV)
==16479== Access not within mapped region at address 0x0
==16479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16479== by 0x8062D5B: main (nginx.c:385)
==16479== If you believe this happened as a result of a stack
==16479== overflow in your program's main thread (unlikely but
==16479== possible), you can try to increase the size of the
==16479== main thread stack using the --main-stacksize= flag.
==16479== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) ==16500== Invalid read of size 4
==16500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16500== by 0x8062D5B: main (nginx.c:385)
==16500== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16500==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) ==16500==
==16500== Process terminating with default action of signal 11 (SIGSEGV)
==16500== Access not within mapped region at address 0x0
==16500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16500== by 0x8062D5B: main (nginx.c:385)
==16500== If you believe this happened as a result of a stack
==16500== overflow in your program's main thread (unlikely but
==16500== possible), you can try to increase the size of the
==16500== main thread stack using the --main-stacksize= flag.
==16500== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) ==16512== Invalid read of size 4
==16512== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16512== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16512== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16512== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16512== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16512== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16512== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16512== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16512== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16512== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16512== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16512== by 0x8062D5B: main (nginx.c:385)
==16512== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16512==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) ==16512==
==16512== Process terminating with default action of signal 11 (SIGSEGV)
==16512== Access not within mapped region at address 0x0
==16512== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16512== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16512== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16512== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16512== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16512== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16512== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16512== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16512== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16512== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16512== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16512== by 0x8062D5B: main (nginx.c:385)
==16512== If you believe this happened as a result of a stack
==16512== overflow in your program's main thread (unlikely but
==16512== possible), you can try to increase the size of the
==16512== main thread stack using the --main-stacksize= flag.
==16512== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) ==16533== Invalid read of size 4
==16533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16533== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16533== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16533== by 0x8062D5B: main (nginx.c:385)
==16533== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16533==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) ==16533==
==16533== Process terminating with default action of signal 11 (SIGSEGV)
==16533== Access not within mapped region at address 0x0
==16533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16533== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16533== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16533== by 0x8062D5B: main (nginx.c:385)
==16533== If you believe this happened as a result of a stack
==16533== overflow in your program's main thread (unlikely but
==16533== possible), you can try to increase the size of the
==16533== main thread stack using the --main-stacksize= flag.
==16533== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) ==16545== Invalid read of size 4
==16545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16545== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16545== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16545== by 0x8062D5B: main (nginx.c:385)
==16545== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16545==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) ==16545==
==16545== Process terminating with default action of signal 11 (SIGSEGV)
==16545== Access not within mapped region at address 0x0
==16545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16545== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16545== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16545== by 0x8062D5B: main (nginx.c:385)
==16545== If you believe this happened as a result of a stack
==16545== overflow in your program's main thread (unlikely but
==16545== possible), you can try to increase the size of the
==16545== main thread stack using the --main-stacksize= flag.
==16545== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-before
-hello in thread
'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) ==16566== Invalid read of size 4
==16566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16566== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16566== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16566== by 0x8062D5B: main (nginx.c:385)
==16566== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16566==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) ==16566==
==16566== Process terminating with default action of signal 11 (SIGSEGV)
==16566== Access not within mapped region at address 0x0
==16566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16566== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16566== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16566== by 0x8062D5B: main (nginx.c:385)
==16566== If you believe this happened as a result of a stack
==16566== overflow in your program's main thread (unlikely but
==16566== possible), you can try to increase the size of the
==16566== main thread stack using the --main-stacksize= flag.
==16566== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-before
-hello in thread
'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) ==16578== Invalid read of size 4
==16578== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16578== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16578== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16578== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16578== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16578== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16578== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16578== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16578== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16578== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16578== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16578== by 0x8062D5B: main (nginx.c:385)
==16578== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16578==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) ==16578==
==16578== Process terminating with default action of signal 11 (SIGSEGV)
==16578== Access not within mapped region at address 0x0
==16578== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16578== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16578== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16578== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16578== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16578== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16578== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16578== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16578== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16578== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16578== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16578== by 0x8062D5B: main (nginx.c:385)
==16578== If you believe this happened as a result of a stack
==16578== overflow in your program's main thread (unlikely but
==16578== possible), you can try to increase the size of the
==16578== main thread stack using the --main-stacksize= flag.
==16578== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-end
-f
'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) ==16599== Invalid read of size 4
==16599== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16599== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16599== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16599== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16599== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16599== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16599== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16599== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16599== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16599== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16599== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16599== by 0x8062D5B: main (nginx.c:385)
==16599== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16599==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) ==16599==
==16599== Process terminating with default action of signal 11 (SIGSEGV)
==16599== Access not within mapped region at address 0x0
==16599== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16599== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16599== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16599== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16599== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16599== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16599== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16599== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16599== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16599== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16599== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16599== by 0x8062D5B: main (nginx.c:385)
==16599== If you believe this happened as a result of a stack
==16599== overflow in your program's main thread (unlikely but
==16599== possible), you can try to increase the size of the
==16599== main thread stack using the --main-stacksize= flag.
==16599== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-end
-f
'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) ==16611== Invalid read of size 4
==16611== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16611== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16611== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16611== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16611== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16611== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16611== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16611== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16611== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16611== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16611== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16611== by 0x8062D5B: main (nginx.c:385)
==16611== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16611==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) ==16611==
==16611== Process terminating with default action of signal 11 (SIGSEGV)
==16611== Access not within mapped region at address 0x0
==16611== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16611== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16611== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16611== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16611== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16611== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16611== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16611== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16611== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16611== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16611== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16611== by 0x8062D5B: main (nginx.c:385)
==16611== If you believe this happened as a result of a stack
==16611== overflow in your program's main thread (unlikely but
==16611== possible), you can try to increase the size of the
==16611== main thread stack using the --main-stacksize= flag.
==16611== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) ==16632== Invalid read of size 4
==16632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16632== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16632== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16632== by 0x8062D5B: main (nginx.c:385)
==16632== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16632==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) ==16632==
==16632== Process terminating with default action of signal 11 (SIGSEGV)
==16632== Access not within mapped region at address 0x0
==16632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16632== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16632== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16632== by 0x8062D5B: main (nginx.c:385)
==16632== If you believe this happened as a result of a stack
==16632== overflow in your program's main thread (unlikely but
==16632== possible), you can try to increase the size of the
==16632== main thread stack using the --main-stacksize= flag.
==16632== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) ==16644== Invalid read of size 4
==16644== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16644== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16644== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16644== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16644== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16644== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16644== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16644== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16644== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16644== by 0x8062D5B: main (nginx.c:385)
==16644== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16644==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) ==16644==
==16644== Process terminating with default action of signal 11 (SIGSEGV)
==16644== Access not within mapped region at address 0x0
==16644== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16644== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16644== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16644== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16644== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16644== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16644== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16644== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16644== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16644== by 0x8062D5B: main (nginx.c:385)
==16644== If you believe this happened as a result of a stack
==16644== overflow in your program's main thread (unlikely but
==16644== possible), you can try to increase the size of the
==16644== main thread stack using the --main-stacksize= flag.
==16644== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) ==16665== Invalid read of size 4
==16665== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16665== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16665== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16665== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16665== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16665== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16665== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16665== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16665== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16665== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16665== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16665== by 0x8062D5B: main (nginx.c:385)
==16665== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16665==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) ==16665==
==16665== Process terminating with default action of signal 11 (SIGSEGV)
==16665== Access not within mapped region at address 0x0
==16665== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16665== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16665== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16665== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16665== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16665== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16665== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16665== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16665== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16665== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16665== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16665== by 0x8062D5B: main (nginx.c:385)
==16665== If you believe this happened as a result of a stack
==16665== overflow in your program's main thread (unlikely but
==16665== possible), you can try to increase the size of the
==16665== main thread stack using the --main-stacksize= flag.
==16665== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) ==16677== Invalid read of size 4
==16677== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16677== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16677== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16677== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16677== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16677== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16677== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16677== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16677== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16677== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16677== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16677== by 0x8062D5B: main (nginx.c:385)
==16677== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16677==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) ==16677==
==16677== Process terminating with default action of signal 11 (SIGSEGV)
==16677== Access not within mapped region at address 0x0
==16677== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16677== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16677== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16677== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16677== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16677== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16677== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16677== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16677== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16677== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16677== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16677== by 0x8062D5B: main (nginx.c:385)
==16677== If you believe this happened as a result of a stack
==16677== overflow in your program's main thread (unlikely but
==16677== possible), you can try to increase the size of the
==16677== main thread stack using the --main-stacksize= flag.
==16677== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) ==16698== Invalid read of size 4
==16698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16698== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16698== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16698== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16698== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16698== by 0x8062D5B: main (nginx.c:385)
==16698== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16698==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) ==16698==
==16698== Process terminating with default action of signal 11 (SIGSEGV)
==16698== Access not within mapped region at address 0x0
==16698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16698== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16698== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16698== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16698== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16698== by 0x8062D5B: main (nginx.c:385)
==16698== If you believe this happened as a result of a stack
==16698== overflow in your program's main thread (unlikely but
==16698== possible), you can try to increase the size of the
==16698== main thread stack using the --main-stacksize= flag.
==16698== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) ==16710== Invalid read of size 4
==16710== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16710== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16710== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16710== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16710== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16710== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16710== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16710== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16710== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16710== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16710== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16710== by 0x8062D5B: main (nginx.c:385)
==16710== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16710==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) ==16710==
==16710== Process terminating with default action of signal 11 (SIGSEGV)
==16710== Access not within mapped region at address 0x0
==16710== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16710== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16710== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16710== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16710== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16710== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16710== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16710== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16710== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16710== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16710== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16710== by 0x8062D5B: main (nginx.c:385)
==16710== If you believe this happened as a result of a stack
==16710== overflow in your program's main thread (unlikely but
==16710== possible), you can try to increase the size of the
==16710== main thread stack using the --main-stacksize= flag.
==16710== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) ==16731== Invalid read of size 4
==16731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16731== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16731== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16731== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16731== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16731== by 0x8062D5B: main (nginx.c:385)
==16731== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16731==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) ==16731==
==16731== Process terminating with default action of signal 11 (SIGSEGV)
==16731== Access not within mapped region at address 0x0
==16731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16731== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16731== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16731== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16731== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16731== by 0x8062D5B: main (nginx.c:385)
==16731== If you believe this happened as a result of a stack
==16731== overflow in your program's main thread (unlikely but
==16731== possible), you can try to increase the size of the
==16731== main thread stack using the --main-stacksize= flag.
==16731== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) ==16743== Invalid read of size 4
==16743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16743== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16743== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16743== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16743== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16743== by 0x8062D5B: main (nginx.c:385)
==16743== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16743==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) ==16743==
==16743== Process terminating with default action of signal 11 (SIGSEGV)
==16743== Access not within mapped region at address 0x0
==16743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16743== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16743== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16743== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16743== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16743== by 0x8062D5B: main (nginx.c:385)
==16743== If you believe this happened as a result of a stack
==16743== overflow in your program's main thread (unlikely but
==16743== possible), you can try to increase the size of the
==16743== main thread stack using the --main-stacksize= flag.
==16743== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-exiting the user thread
'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) ==16764== Invalid read of size 4
==16764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16764== by 0x8062D5B: main (nginx.c:385)
==16764== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16764==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) ==16764==
==16764== Process terminating with default action of signal 11 (SIGSEGV)
==16764== Access not within mapped region at address 0x0
==16764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16764== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16764== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16764== by 0x8062D5B: main (nginx.c:385)
==16764== If you believe this happened as a result of a stack
==16764== overflow in your program's main thread (unlikely but
==16764== possible), you can try to increase the size of the
==16764== main thread stack using the --main-stacksize= flag.
==16764== The main thread stack size used in this run was 8388608.

094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-exiting the user thread
'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==16773== Invalid read of size 4
==16773== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16773== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16773== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16773== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16773== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16773== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16773== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16773== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16773== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16773== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16773== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==16773== by 0x8062D5B: main (nginx.c:385)
==16773== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16773==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==16773==
==16773== Process terminating with default action of signal 11 (SIGSEGV)
==16773== Access not within mapped region at address 0x0
==16773== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16773== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16773== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16773== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16773== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16773== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16773== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16773== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16773== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16773== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16773== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==16773== by 0x8062D5B: main (nginx.c:385)
==16773== If you believe this happened as a result of a stack
==16773== overflow in your program's main thread (unlikely but
==16773== possible), you can try to increase the size of the
==16773== main thread stack using the --main-stacksize= flag.
==16773== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: bad bad!)" should match a line in error.log (req 0)
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==16774== Invalid read of size 4
==16774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16774== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16774== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16774== by 0x8062D5B: main (nginx.c:385)
==16774== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16774==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==16774==
==16774== Process terminating with default action of signal 11 (SIGSEGV)
==16774== Access not within mapped region at address 0x0
==16774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16774== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16774== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16774== by 0x8062D5B: main (nginx.c:385)
==16774== If you believe this happened as a result of a stack
==16774== overflow in your program's main thread (unlikely but
==16774== possible), you can try to increase the size of the
==16774== main thread stack using the --main-stacksize= flag.
==16774== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: bad bad!)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors ==16786== Invalid read of size 4
==16786== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16786== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16786== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16786== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16786== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16786== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16786== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16786== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16786== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16786== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16786== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16786== by 0x8062D5B: main (nginx.c:385)
==16786== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16786==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors ==16786==
==16786== Process terminating with default action of signal 11 (SIGSEGV)
==16786== Access not within mapped region at address 0x0
==16786== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16786== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16786== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16786== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16786== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16786== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16786== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16786== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16786== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16786== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16786== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16786== by 0x8062D5B: main (nginx.c:385)
==16786== If you believe this happened as a result of a stack
==16786== overflow in your program's main thread (unlikely but
==16786== possible), you can try to increase the size of the
==16786== main thread stack using the --main-stacksize= flag.
==16786== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-failed to wait thread: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):8: f done)" should match a line in error.log (req 0)
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors ==16807== Invalid read of size 4
==16807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16807== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16807== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16807== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16807== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16807== by 0x8062D5B: main (nginx.c:385)
==16807== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16807==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors ==16807==
==16807== Process terminating with default action of signal 11 (SIGSEGV)
==16807== Access not within mapped region at address 0x0
==16807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16807== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16807== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16807== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16807== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16807== by 0x8062D5B: main (nginx.c:385)
==16807== If you believe this happened as a result of a stack
==16807== overflow in your program's main thread (unlikely but
==16807== possible), you can try to increase the size of the
==16807== main thread stack using the --main-stacksize= flag.
==16807== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-failed to wait thread: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):8: f done)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination ==16819== Invalid read of size 4
==16819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16819== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16819== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16819== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16819== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16819== by 0x8062D5B: main (nginx.c:385)
==16819== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16819==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination ==16819==
==16819== Process terminating with default action of signal 11 (SIGSEGV)
==16819== Access not within mapped region at address 0x0
==16819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16819== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16819== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16819== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16819== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16819== by 0x8062D5B: main (nginx.c:385)
==16819== If you believe this happened as a result of a stack
==16819== overflow in your program's main thread (unlikely but
==16819== possible), you can try to increase the size of the
==16819== main thread stack using the --main-stacksize= flag.
==16819== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-f: done
-g thread status: running
-g: hello
-g: done
'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination ==16840== Invalid read of size 4
==16840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16840== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16840== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16840== by 0x8062D5B: main (nginx.c:385)
==16840== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16840==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination ==16840==
==16840== Process terminating with default action of signal 11 (SIGSEGV)
==16840== Access not within mapped region at address 0x0
==16840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16840== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16840== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16840== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16840== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16840== by 0x8062D5B: main (nginx.c:385)
==16840== If you believe this happened as a result of a stack
==16840== overflow in your program's main thread (unlikely but
==16840== possible), you can try to increase the size of the
==16840== main thread stack using the --main-stacksize= flag.
==16840== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-f: done
-g thread status: running
-g: hello
-g: done
'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O ==16852== Invalid read of size 4
==16852== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16852== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16852== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16852== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16852== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16852== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16852== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16852== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16852== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16852== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16852== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16852== by 0x8062D5B: main (nginx.c:385)
==16852== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16852==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O ==16852==
==16852== Process terminating with default action of signal 11 (SIGSEGV)
==16852== Access not within mapped region at address 0x0
==16852== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16852== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16852== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16852== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16852== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16852== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16852== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16852== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16852== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16852== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16852== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16852== by 0x8062D5B: main (nginx.c:385)
==16852== If you believe this happened as a result of a stack
==16852== overflow in your program's main thread (unlikely but
==16852== possible), you can try to increase the size of the
==16852== main thread stack using the --main-stacksize= flag.
==16852== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-res: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O ==16873== Invalid read of size 4
==16873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16873== by 0x8062D5B: main (nginx.c:385)
==16873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O ==16873==
==16873== Process terminating with default action of signal 11 (SIGSEGV)
==16873== Access not within mapped region at address 0x0
==16873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16873== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16873== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16873== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16873== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16873== by 0x8062D5B: main (nginx.c:385)
==16873== If you believe this happened as a result of a stack
==16873== overflow in your program's main thread (unlikely but
==16873== possible), you can try to increase the size of the
==16873== main thread stack using the --main-stacksize= flag.
==16873== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-res: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 21: waiting on a dead coroutine ==16885== Invalid read of size 4
==16885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16885== by 0x8062D5B: main (nginx.c:385)
==16885== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16885==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 21: waiting on a dead coroutine ==16885==
==16885== Process terminating with default action of signal 11 (SIGSEGV)
==16885== Access not within mapped region at address 0x0
==16885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16885== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16885== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16885== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16885== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16885== by 0x8062D5B: main (nginx.c:385)
==16885== If you believe this happened as a result of a stack
==16885== overflow in your program's main thread (unlikely but
==16885== possible), you can try to increase the size of the
==16885== main thread stack using the --main-stacksize= flag.
==16885== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 21: waiting on a dead coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 21: waiting on a dead coroutine - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to run thread: already waited or killed
'
098-uthread-wait.t TEST 21: waiting on a dead coroutine ==16906== Invalid read of size 4
==16906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16906== by 0x8062D5B: main (nginx.c:385)
==16906== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16906==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 21: waiting on a dead coroutine ==16906==
==16906== Process terminating with default action of signal 11 (SIGSEGV)
==16906== Access not within mapped region at address 0x0
==16906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16906== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16906== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16906== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16906== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16906== by 0x8062D5B: main (nginx.c:385)
==16906== If you believe this happened as a result of a stack
==16906== overflow in your program's main thread (unlikely but
==16906== possible), you can try to increase the size of the
==16906== main thread stack using the --main-stacksize= flag.
==16906== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 21: waiting on a dead coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 21: waiting on a dead coroutine - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to run thread: already waited or killed
'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines ==16917== Invalid read of size 4
==16917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16917== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16917== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16917== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16917== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16917== by 0x8062D5B: main (nginx.c:385)
==16917== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16917==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines ==16917==
==16917== Process terminating with default action of signal 11 (SIGSEGV)
==16917== Access not within mapped region at address 0x0
==16917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16917== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16917== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16917== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16917== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16917== by 0x8062D5B: main (nginx.c:385)
==16917== If you believe this happened as a result of a stack
==16917== overflow in your program's main thread (unlikely but
==16917== possible), you can try to increase the size of the
==16917== main thread stack using the --main-stacksize= flag.
==16917== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: f done)" should match a line in error.log (req 0)
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines ==16939== Invalid read of size 4
==16939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16939== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16939== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16939== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16939== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16939== by 0x8062D5B: main (nginx.c:385)
==16939== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16939==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines ==16939==
==16939== Process terminating with default action of signal 11 (SIGSEGV)
==16939== Access not within mapped region at address 0x0
==16939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16939== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16939== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16939== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16939== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16939== by 0x8062D5B: main (nginx.c:385)
==16939== If you believe this happened as a result of a stack
==16939== overflow in your program's main thread (unlikely but
==16939== possible), you can try to increase the size of the
==16939== main thread stack using the --main-stacksize= flag.
==16939== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: f done)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors ==16951== Invalid read of size 4
==16951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16951== by 0x8062D5B: main (nginx.c:385)
==16951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16951==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors ==16951==
==16951== Process terminating with default action of signal 11 (SIGSEGV)
==16951== Access not within mapped region at address 0x0
==16951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16951== by 0x8062D5B: main (nginx.c:385)
==16951== If you believe this happened as a result of a stack
==16951== overflow in your program's main thread (unlikely but
==16951== possible), you can try to increase the size of the
==16951== main thread stack using the --main-stacksize= flag.
==16951== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors ==16972== Invalid read of size 4
==16972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16972== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16972== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16972== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16972== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16972== by 0x8062D5B: main (nginx.c:385)
==16972== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16972==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors ==16972==
==16972== Process terminating with default action of signal 11 (SIGSEGV)
==16972== Access not within mapped region at address 0x0
==16972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16972== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16972== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16972== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==16972== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==16972== by 0x8062D5B: main (nginx.c:385)
==16972== If you believe this happened as a result of a stack
==16972== overflow in your program's main thread (unlikely but
==16972== possible), you can try to increase the size of the
==16972== main thread stack using the --main-stacksize= flag.
==16972== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early ==16984== Invalid read of size 4
==16984== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16984== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16984== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16984== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16984== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16984== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16984== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16984== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16984== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16984== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16984== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16984== by 0x8062D5B: main (nginx.c:385)
==16984== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16984==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early ==16984==
==16984== Process terminating with default action of signal 11 (SIGSEGV)
==16984== Access not within mapped region at address 0x0
==16984== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==16984== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==16984== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==16984== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==16984== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==16984== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==16984== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==16984== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==16984== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==16984== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==16984== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==16984== by 0x8062D5B: main (nginx.c:385)
==16984== If you believe this happened as a result of a stack
==16984== overflow in your program's main thread (unlikely but
==16984== possible), you can try to increase the size of the
==16984== main thread stack using the --main-stacksize= flag.
==16984== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-res: done
'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early ==17005== Invalid read of size 4
==17005== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17005== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17005== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17005== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17005== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17005== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17005== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17005== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17005== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17005== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17005== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17005== by 0x8062D5B: main (nginx.c:385)
==17005== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17005==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early ==17005==
==17005== Process terminating with default action of signal 11 (SIGSEGV)
==17005== Access not within mapped region at address 0x0
==17005== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17005== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17005== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17005== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17005== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17005== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17005== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17005== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17005== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17005== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17005== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17005== by 0x8062D5B: main (nginx.c:385)
==17005== If you believe this happened as a result of a stack
==17005== overflow in your program's main thread (unlikely but
==17005== possible), you can try to increase the size of the
==17005== main thread stack using the --main-stacksize= flag.
==17005== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-res: done
'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination ==17017== Invalid read of size 4
==17017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17017== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17017== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17017== by 0x8062D5B: main (nginx.c:385)
==17017== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17017==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination ==17017==
==17017== Process terminating with default action of signal 11 (SIGSEGV)
==17017== Access not within mapped region at address 0x0
==17017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17017== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17017== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17017== by 0x8062D5B: main (nginx.c:385)
==17017== If you believe this happened as a result of a stack
==17017== overflow in your program's main thread (unlikely but
==17017== possible), you can try to increase the size of the
==17017== main thread stack using the --main-stacksize= flag.
==17017== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-g: hello
-g: done
-f thread status: zombie
-f: done
'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination ==17038== Invalid read of size 4
==17038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17038== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17038== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17038== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17038== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17038== by 0x8062D5B: main (nginx.c:385)
==17038== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17038==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination ==17038==
==17038== Process terminating with default action of signal 11 (SIGSEGV)
==17038== Access not within mapped region at address 0x0
==17038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17038== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17038== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17038== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17038== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17038== by 0x8062D5B: main (nginx.c:385)
==17038== If you believe this happened as a result of a stack
==17038== overflow in your program's main thread (unlikely but
==17038== possible), you can try to increase the size of the
==17038== main thread stack using the --main-stacksize= flag.
==17038== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-g: hello
-g: done
-f thread status: zombie
-f: done
'
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine ==17050== Invalid read of size 4
==17050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17050== by 0x8062D5B: main (nginx.c:385)
==17050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine ==17050==
==17050== Process terminating with default action of signal 11 (SIGSEGV)
==17050== Access not within mapped region at address 0x0
==17050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17050== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17050== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17050== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17050== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17050== by 0x8062D5B: main (nginx.c:385)
==17050== If you believe this happened as a result of a stack
==17050== overflow in your program's main thread (unlikely but
==17050== possible), you can try to increase the size of the
==17050== main thread stack using the --main-stacksize= flag.
==17050== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine ==17071== Invalid read of size 4
==17071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17071== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17071== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17071== by 0x8062D5B: main (nginx.c:385)
==17071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine ==17071==
==17071== Process terminating with default action of signal 11 (SIGSEGV)
==17071== Access not within mapped region at address 0x0
==17071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17071== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17071== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17071== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17071== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17071== by 0x8062D5B: main (nginx.c:385)
==17071== If you believe this happened as a result of a stack
==17071== overflow in your program's main thread (unlikely but
==17071== possible), you can try to increase the size of the
==17071== main thread stack using the --main-stacksize= flag.
==17071== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 2: simple user thread wait with I/O ==17083== Invalid read of size 4
==17083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17083== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17083== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17083== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17083== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17083== by 0x8062D5B: main (nginx.c:385)
==17083== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17083==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 2: simple user thread wait with I/O ==17083==
==17083== Process terminating with default action of signal 11 (SIGSEGV)
==17083== Access not within mapped region at address 0x0
==17083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17083== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17083== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17083== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17083== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17083== by 0x8062D5B: main (nginx.c:385)
==17083== If you believe this happened as a result of a stack
==17083== overflow in your program's main thread (unlikely but
==17083== possible), you can try to increase the size of the
==17083== main thread stack using the --main-stacksize= flag.
==17083== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 2: simple user thread wait with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 2: simple user thread wait with I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 2: simple user thread wait with I/O ==17104== Invalid read of size 4
==17104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17104== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17104== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17104== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17104== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17104== by 0x8062D5B: main (nginx.c:385)
==17104== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17104==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 2: simple user thread wait with I/O ==17104==
==17104== Process terminating with default action of signal 11 (SIGSEGV)
==17104== Access not within mapped region at address 0x0
==17104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17104== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17104== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17104== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17104== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17104== by 0x8062D5B: main (nginx.c:385)
==17104== If you believe this happened as a result of a stack
==17104== overflow in your program's main thread (unlikely but
==17104== possible), you can try to increase the size of the
==17104== main thread stack using the --main-stacksize= flag.
==17104== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 2: simple user thread wait with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 2: simple user thread wait with I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) ==17116== Invalid read of size 4
==17116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17116== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17116== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17116== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17116== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17116== by 0x8062D5B: main (nginx.c:385)
==17116== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17116==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) ==17116==
==17116== Process terminating with default action of signal 11 (SIGSEGV)
==17116== Access not within mapped region at address 0x0
==17116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17116== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17116== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17116== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17116== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17116== by 0x8062D5B: main (nginx.c:385)
==17116== If you believe this happened as a result of a stack
==17116== overflow in your program's main thread (unlikely but
==17116== possible), you can try to increase the size of the
==17116== main thread stack using the --main-stacksize= flag.
==17116== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) ==17137== Invalid read of size 4
==17137== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17137== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17137== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17137== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17137== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17137== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17137== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17137== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17137== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17137== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17137== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17137== by 0x8062D5B: main (nginx.c:385)
==17137== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17137==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) ==17137==
==17137== Process terminating with default action of signal 11 (SIGSEGV)
==17137== Access not within mapped region at address 0x0
==17137== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17137== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17137== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17137== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17137== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17137== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17137== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17137== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17137== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17137== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17137== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17137== by 0x8062D5B: main (nginx.c:385)
==17137== If you believe this happened as a result of a stack
==17137== overflow in your program's main thread (unlikely but
==17137== possible), you can try to increase the size of the
==17137== main thread stack using the --main-stacksize= flag.
==17137== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) ==17149== Invalid read of size 4
==17149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17149== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17149== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17149== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17149== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17149== by 0x8062D5B: main (nginx.c:385)
==17149== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17149==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) ==17149==
==17149== Process terminating with default action of signal 11 (SIGSEGV)
==17149== Access not within mapped region at address 0x0
==17149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17149== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17149== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17149== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17149== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17149== by 0x8062D5B: main (nginx.c:385)
==17149== If you believe this happened as a result of a stack
==17149== overflow in your program's main thread (unlikely but
==17149== possible), you can try to increase the size of the
==17149== main thread stack using the --main-stacksize= flag.
==17149== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-res: done 3.14
'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) ==17170== Invalid read of size 4
==17170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17170== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17170== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17170== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17170== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17170== by 0x8062D5B: main (nginx.c:385)
==17170== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) ==17170==
==17170== Process terminating with default action of signal 11 (SIGSEGV)
==17170== Access not within mapped region at address 0x0
==17170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17170== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17170== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17170== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17170== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17170== by 0x8062D5B: main (nginx.c:385)
==17170== If you believe this happened as a result of a stack
==17170== overflow in your program's main thread (unlikely but
==17170== possible), you can try to increase the size of the
==17170== main thread stack using the --main-stacksize= flag.
==17170== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-res: done 3.14
'
098-uthread-wait.t TEST 1: simple user thread wait without I/O ==17182== Invalid read of size 4
==17182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17182== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17182== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17182== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17182== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17182== by 0x8062D5B: main (nginx.c:385)
==17182== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17182==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 1: simple user thread wait without I/O ==17182==
==17182== Process terminating with default action of signal 11 (SIGSEGV)
==17182== Access not within mapped region at address 0x0
==17182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17182== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17182== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17182== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17182== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17182== by 0x8062D5B: main (nginx.c:385)
==17182== If you believe this happened as a result of a stack
==17182== overflow in your program's main thread (unlikely but
==17182== possible), you can try to increase the size of the
==17182== main thread stack using the --main-stacksize= flag.
==17182== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 1: simple user thread wait without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 1: simple user thread wait without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 1: simple user thread wait without I/O ==17203== Invalid read of size 4
==17203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17203== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17203== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17203== by 0x8062D5B: main (nginx.c:385)
==17203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 1: simple user thread wait without I/O ==17203==
==17203== Process terminating with default action of signal 11 (SIGSEGV)
==17203== Access not within mapped region at address 0x0
==17203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17203== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17203== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17203== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17203== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17203== by 0x8062D5B: main (nginx.c:385)
==17203== If you believe this happened as a result of a stack
==17203== overflow in your program's main thread (unlikely but
==17203== possible), you can try to increase the size of the
==17203== main thread stack using the --main-stacksize= flag.
==17203== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 1: simple user thread wait without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 1: simple user thread wait without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O ==17215== Invalid read of size 4
==17215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17215== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17215== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17215== by 0x8062D5B: main (nginx.c:385)
==17215== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17215==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O ==17215==
==17215== Process terminating with default action of signal 11 (SIGSEGV)
==17215== Access not within mapped region at address 0x0
==17215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17215== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17215== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17215== by 0x8062D5B: main (nginx.c:385)
==17215== If you believe this happened as a result of a stack
==17215== overflow in your program's main thread (unlikely but
==17215== possible), you can try to increase the size of the
==17215== main thread stack using the --main-stacksize= flag.
==17215== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-res: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O ==17236== Invalid read of size 4
==17236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17236== by 0x8062D5B: main (nginx.c:385)
==17236== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17236==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O ==17236==
==17236== Process terminating with default action of signal 11 (SIGSEGV)
==17236== Access not within mapped region at address 0x0
==17236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17236== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17236== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17236== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17236== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17236== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17236== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17236== by 0x8062D5B: main (nginx.c:385)
==17236== If you believe this happened as a result of a stack
==17236== overflow in your program's main thread (unlikely but
==17236== possible), you can try to increase the size of the
==17236== main thread stack using the --main-stacksize= flag.
==17236== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-res: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 23: hanging bug ==17248== Invalid read of size 4
==17248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17248== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17248== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17248== by 0x8062D5B: main (nginx.c:385)
==17248== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17248==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 23: hanging bug ==17248==
==17248== Process terminating with default action of signal 11 (SIGSEGV)
==17248== Access not within mapped region at address 0x0
==17248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17248== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17248== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17248== by 0x8062D5B: main (nginx.c:385)
==17248== If you believe this happened as a result of a stack
==17248== overflow in your program's main thread (unlikely but
==17248== possible), you can try to increase the size of the
==17248== main thread stack using the --main-stacksize= flag.
==17248== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 23: hanging bug - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 23: hanging bug - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 23: hanging bug - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:09 [alert] 16772\#0: worker process 17248 exited on signal 11" (req 0) 2020/10/27 04:53:09 [debug] 16772\#0: shmtx forced unlock
2020/10/27 04:53:09 [debug] 16772\#0: wake up, sigio 0
2020/10/27 04:53:09 [debug] 16772\#0: reap children
2020/10/27 04:53:09 [debug] 16772\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:53:09 [debug] 16772\#0: child: 1 17248 e:0 t:1 d:0 r:1 j:0
'
098-uthread-wait.t TEST 23: hanging bug ==17269== Invalid read of size 4
==17269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17269== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17269== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17269== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17269== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17269== by 0x8062D5B: main (nginx.c:385)
==17269== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17269==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 23: hanging bug ==17269==
==17269== Process terminating with default action of signal 11 (SIGSEGV)
==17269== Access not within mapped region at address 0x0
==17269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17269== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17269== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17269== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17269== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17269== by 0x8062D5B: main (nginx.c:385)
==17269== If you believe this happened as a result of a stack
==17269== overflow in your program's main thread (unlikely but
==17269== possible), you can try to increase the size of the
==17269== main thread stack using the --main-stacksize= flag.
==17269== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 23: hanging bug - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 23: hanging bug - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 23: hanging bug - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:09 [alert] 16772\#0: worker process 17269 exited on signal 11" (req 1) 2020/10/27 04:53:09 [debug] 16772\#0: shmtx forced unlock
2020/10/27 04:53:09 [debug] 16772\#0: wake up, sigio 0
2020/10/27 04:53:09 [debug] 16772\#0: reap children
2020/10/27 04:53:09 [debug] 16772\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:53:09 [debug] 16772\#0: child: 1 17269 e:0 t:1 d:0 r:1 j:0
'
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself ==17281== Invalid read of size 4
==17281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17281== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17281== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17281== by 0x8062D5B: main (nginx.c:385)
==17281== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself ==17281==
==17281== Process terminating with default action of signal 11 (SIGSEGV)
==17281== Access not within mapped region at address 0x0
==17281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17281== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17281== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17281== by 0x8062D5B: main (nginx.c:385)
==17281== If you believe this happened as a result of a stack
==17281== overflow in your program's main thread (unlikely but
==17281== possible), you can try to increase the size of the
==17281== main thread stack using the --main-stacksize= flag.
==17281== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself ==17302== Invalid read of size 4
==17302== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17302== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17302== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17302== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17302== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17302== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17302== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17302== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17302== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17302== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17302== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17302== by 0x8062D5B: main (nginx.c:385)
==17302== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17302==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself ==17302==
==17302== Process terminating with default action of signal 11 (SIGSEGV)
==17302== Access not within mapped region at address 0x0
==17302== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17302== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17302== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17302== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17302== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17302== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17302== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17302== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17302== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17302== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17302== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17302== by 0x8062D5B: main (nginx.c:385)
==17302== If you believe this happened as a result of a stack
==17302== overflow in your program's main thread (unlikely but
==17302== possible), you can try to increase the size of the
==17302== main thread stack using the --main-stacksize= flag.
==17302== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early ==17314== Invalid read of size 4
==17314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17314== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17314== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17314== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17314== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17314== by 0x8062D5B: main (nginx.c:385)
==17314== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17314==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early ==17314==
==17314== Process terminating with default action of signal 11 (SIGSEGV)
==17314== Access not within mapped region at address 0x0
==17314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17314== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17314== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17314== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17314== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17314== by 0x8062D5B: main (nginx.c:385)
==17314== If you believe this happened as a result of a stack
==17314== overflow in your program's main thread (unlikely but
==17314== possible), you can try to increase the size of the
==17314== main thread stack using the --main-stacksize= flag.
==17314== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-g: hello
-res: g done
'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early ==17335== Invalid read of size 4
==17335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17335== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17335== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17335== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17335== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17335== by 0x8062D5B: main (nginx.c:385)
==17335== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17335==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early ==17335==
==17335== Process terminating with default action of signal 11 (SIGSEGV)
==17335== Access not within mapped region at address 0x0
==17335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17335== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17335== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17335== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17335== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17335== by 0x8062D5B: main (nginx.c:385)
==17335== If you believe this happened as a result of a stack
==17335== overflow in your program's main thread (unlikely but
==17335== possible), you can try to increase the size of the
==17335== main thread stack using the --main-stacksize= flag.
==17335== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-g: hello
-res: g done
'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) ==17347== Invalid read of size 4
==17347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17347== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17347== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17347== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17347== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17347== by 0x8062D5B: main (nginx.c:385)
==17347== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17347==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) ==17347==
==17347== Process terminating with default action of signal 11 (SIGSEGV)
==17347== Access not within mapped region at address 0x0
==17347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17347== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17347== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17347== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17347== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17347== by 0x8062D5B: main (nginx.c:385)
==17347== If you believe this happened as a result of a stack
==17347== overflow in your program's main thread (unlikely but
==17347== possible), you can try to increase the size of the
==17347== main thread stack using the --main-stacksize= flag.
==17347== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) ==17368== Invalid read of size 4
==17368== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17368== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17368== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17368== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17368== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17368== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17368== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17368== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17368== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17368== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17368== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17368== by 0x8062D5B: main (nginx.c:385)
==17368== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17368==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) ==17368==
==17368== Process terminating with default action of signal 11 (SIGSEGV)
==17368== Access not within mapped region at address 0x0
==17368== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17368== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17368== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17368== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17368== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17368== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17368== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17368== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17368== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17368== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17368== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17368== by 0x8062D5B: main (nginx.c:385)
==17368== If you believe this happened as a result of a stack
==17368== overflow in your program's main thread (unlikely but
==17368== possible), you can try to increase the size of the
==17368== main thread stack using the --main-stacksize= flag.
==17368== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values ==17380== Invalid read of size 4
==17380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17380== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17380== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17380== by 0x8062D5B: main (nginx.c:385)
==17380== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17380==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values ==17380==
==17380== Process terminating with default action of signal 11 (SIGSEGV)
==17380== Access not within mapped region at address 0x0
==17380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17380== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17380== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17380== by 0x8062D5B: main (nginx.c:385)
==17380== If you believe this happened as a result of a stack
==17380== overflow in your program's main thread (unlikely but
==17380== possible), you can try to increase the size of the
==17380== main thread stack using the --main-stacksize= flag.
==17380== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-res: done 3.14
'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values ==17401== Invalid read of size 4
==17401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17401== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17401== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17401== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17401== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17401== by 0x8062D5B: main (nginx.c:385)
==17401== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17401==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values ==17401==
==17401== Process terminating with default action of signal 11 (SIGSEGV)
==17401== Access not within mapped region at address 0x0
==17401== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17401== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17401== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17401== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17401== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17401== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17401== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17401== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17401== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17401== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17401== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17401== by 0x8062D5B: main (nginx.c:385)
==17401== If you believe this happened as a result of a stack
==17401== overflow in your program's main thread (unlikely but
==17401== possible), you can try to increase the size of the
==17401== main thread stack using the --main-stacksize= flag.
==17401== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-res: done 3.14
'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) ==17413== Invalid read of size 4
==17413== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17413== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17413== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17413== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17413== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17413== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17413== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17413== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17413== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17413== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17413== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17413== by 0x8062D5B: main (nginx.c:385)
==17413== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17413==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) ==17413==
==17413== Process terminating with default action of signal 11 (SIGSEGV)
==17413== Access not within mapped region at address 0x0
==17413== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17413== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17413== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17413== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17413== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17413== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17413== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17413== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17413== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17413== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17413== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17413== by 0x8062D5B: main (nginx.c:385)
==17413== If you believe this happened as a result of a stack
==17413== overflow in your program's main thread (unlikely but
==17413== possible), you can try to increase the size of the
==17413== main thread stack using the --main-stacksize= flag.
==17413== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-g: hello
-res: g done
-f status: running
-g status: dead
-f: hello
'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) ==17434== Invalid read of size 4
==17434== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17434== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17434== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17434== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17434== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17434== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17434== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17434== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17434== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17434== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17434== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17434== by 0x8062D5B: main (nginx.c:385)
==17434== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17434==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) ==17434==
==17434== Process terminating with default action of signal 11 (SIGSEGV)
==17434== Access not within mapped region at address 0x0
==17434== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17434== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17434== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17434== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17434== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17434== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17434== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17434== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17434== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17434== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17434== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17434== by 0x8062D5B: main (nginx.c:385)
==17434== If you believe this happened as a result of a stack
==17434== overflow in your program's main thread (unlikely but
==17434== possible), you can try to increase the size of the
==17434== main thread stack using the --main-stacksize= flag.
==17434== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-g: hello
-res: g done
-f status: running
-g status: dead
-f: hello
'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors ==17446== Invalid read of size 4
==17446== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17446== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17446== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17446== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17446== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17446== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17446== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17446== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17446== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17446== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17446== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17446== by 0x8062D5B: main (nginx.c:385)
==17446== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17446==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors ==17446==
==17446== Process terminating with default action of signal 11 (SIGSEGV)
==17446== Access not within mapped region at address 0x0
==17446== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17446== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17446== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17446== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17446== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17446== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17446== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17446== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17446== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17446== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17446== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17446== by 0x8062D5B: main (nginx.c:385)
==17446== If you believe this happened as a result of a stack
==17446== overflow in your program's main thread (unlikely but
==17446== possible), you can try to increase the size of the
==17446== main thread stack using the --main-stacksize= flag.
==17446== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-failed to wait thread: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors ==17467== Invalid read of size 4
==17467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17467== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17467== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17467== by 0x8062D5B: main (nginx.c:385)
==17467== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17467==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors ==17467==
==17467== Process terminating with default action of signal 11 (SIGSEGV)
==17467== Access not within mapped region at address 0x0
==17467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17467== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17467== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17467== by 0x8062D5B: main (nginx.c:385)
==17467== If you believe this happened as a result of a stack
==17467== overflow in your program's main thread (unlikely but
==17467== possible), you can try to increase the size of the
==17467== main thread stack using the --main-stacksize= flag.
==17467== The main thread stack size used in this run was 8388608.

098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-failed to wait thread: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times ==17479== Invalid read of size 4
==17479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17479== by 0x8062D5B: main (nginx.c:385)
==17479== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17479==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times ==17479==
==17479== Process terminating with default action of signal 11 (SIGSEGV)
==17479== Access not within mapped region at address 0x0
==17479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17479== by 0x8062D5B: main (nginx.c:385)
==17479== If you believe this happened as a result of a stack
==17479== overflow in your program's main thread (unlikely but
==17479== possible), you can try to increase the size of the
==17479== main thread stack using the --main-stacksize= flag.
==17479== The main thread stack size used in this run was 8388608.
==17479== 512 bytes in 1 blocks are definitely lost in loss record 2,632 of 2,849
==17479== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==17479== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==17479== by 0x40CC146: mem_alloc (lib_aux.c:335)
==17479== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==17479== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==17479== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==17479== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==17479== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==17479== by 0x40BB16A: trace_state (lj_trace.c:680)
==17479== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==17479== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==17479== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==17479== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==17479== by 0x407FA29: lua_resume (lj_api.c:1296)
==17479== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==17479== by 0x8152B40: ngx_stream_lua_content_run_posted_threads (ngx_stream_lua_contentby.c:309)
==17479== by 0x8152D79: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:127)
==17479== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==17479== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==17479== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==17479== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==17479== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==17479== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==17479== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==17479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17479== by 0x8062D5B: main (nginx.c:385)
==17479==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_run_posted_threads
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - response_body - response is expected (repeated req 0, req 0) @@ -1,100 +0,0 @@
-1: done
-2: done
-3: done
-4: done
-5: done
-6: done
-7: done
-8: done
-9: done
-10: done
-11: done
-12: done
-13: done
-14: done
-15: done
-16: done
-17: done
-18: done
-19: done
-20: done
-21: done
-22: done
-23: done
-24: done
-25: done
-26: done
-27: done
-28: done
-29: done
-30: done
-31: done
-32: done
-33: done
-34: done
-35: done
-36: done
-37: done
-38: done
-39: done
-40: done
-41: done
-42: done
-43: done
-44: done
-45: done
-46: done
-47: done
-48: done
-49: done
-50: done
-51: done
-52: done
-53: done
-54: done
-55: done
-56: done
-57: done
-58: done
-59: done
-60: done
-61: done
-62: done
-63: done
-64: done
-65: done
-66: done
-67: done
-68: done
-69: done
-70: done
-71: done
-72: done
-73: done
-74: done
-75: done
-76: done
-77: done
-78: done
-79: done
-80: done
-81: done
-82: done
-83: done
-84: done
-85: done
-86: done
-87: done
-88: done
-89: done
-90: done
-91: done
-92: done
-93: done
-94: done
-95: done
-96: done
-97: done
-98: done
-99: done
-100: done
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:37 [alert] 16772\#0: worker process 17479 exited on signal 11" (req 0) 2020/10/27 04:53:37 [debug] 16772\#0: shmtx forced unlock
2020/10/27 04:53:37 [debug] 16772\#0: wake up, sigio 0
2020/10/27 04:53:37 [debug] 16772\#0: reap children
2020/10/27 04:53:37 [debug] 16772\#0: child: 0 17479 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:37 [debug] 16772\#0: channel 3:4
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times ==17500== Invalid read of size 4
==17500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17500== by 0x8062D5B: main (nginx.c:385)
==17500== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17500==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times ==17500==
==17500== Process terminating with default action of signal 11 (SIGSEGV)
==17500== Access not within mapped region at address 0x0
==17500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17500== by 0x8062D5B: main (nginx.c:385)
==17500== If you believe this happened as a result of a stack
==17500== overflow in your program's main thread (unlikely but
==17500== possible), you can try to increase the size of the
==17500== main thread stack using the --main-stacksize= flag.
==17500== The main thread stack size used in this run was 8388608.
==17500== 512 bytes in 1 blocks are definitely lost in loss record 2,632 of 2,849
==17500== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==17500== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==17500== by 0x40CC146: mem_alloc (lib_aux.c:335)
==17500== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==17500== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==17500== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==17500== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==17500== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==17500== by 0x40BB16A: trace_state (lj_trace.c:680)
==17500== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==17500== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==17500== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==17500== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==17500== by 0x407FA29: lua_resume (lj_api.c:1296)
==17500== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==17500== by 0x8152B40: ngx_stream_lua_content_run_posted_threads (ngx_stream_lua_contentby.c:309)
==17500== by 0x8152D79: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:127)
==17500== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==17500== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==17500== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==17500== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==17500== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==17500== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==17500== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==17500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17500== by 0x8062D5B: main (nginx.c:385)
==17500==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_run_posted_threads
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - response_body - response is expected (repeated req 1, req 0) @@ -1,100 +0,0 @@
-1: done
-2: done
-3: done
-4: done
-5: done
-6: done
-7: done
-8: done
-9: done
-10: done
-11: done
-12: done
-13: done
-14: done
-15: done
-16: done
-17: done
-18: done
-19: done
-20: done
-21: done
-22: done
-23: done
-24: done
-25: done
-26: done
-27: done
-28: done
-29: done
-30: done
-31: done
-32: done
-33: done
-34: done
-35: done
-36: done
-37: done
-38: done
-39: done
-40: done
-41: done
-42: done
-43: done
-44: done
-45: done
-46: done
-47: done
-48: done
-49: done
-50: done
-51: done
-52: done
-53: done
-54: done
-55: done
-56: done
-57: done
-58: done
-59: done
-60: done
-61: done
-62: done
-63: done
-64: done
-65: done
-66: done
-67: done
-68: done
-69: done
-70: done
-71: done
-72: done
-73: done
-74: done
-75: done
-76: done
-77: done
-78: done
-79: done
-80: done
-81: done
-82: done
-83: done
-84: done
-85: done
-86: done
-87: done
-88: done
-89: done
-90: done
-91: done
-92: done
-93: done
-94: done
-95: done
-96: done
-97: done
-98: done
-99: done
-100: done
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:39 [alert] 16772\#0: worker process 17500 exited on signal 11" (req 1) 2020/10/27 04:53:39 [debug] 16772\#0: shmtx forced unlock
2020/10/27 04:53:39 [debug] 16772\#0: wake up, sigio 0
2020/10/27 04:53:39 [debug] 16772\#0: reap children
2020/10/27 04:53:39 [debug] 16772\#0: child: 0 17500 e:0 t:1 d:0 r:1 j:0
'
100-client-abort.t TEST 11: cosocket + stop ==17589== Invalid read of size 4
==17589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17589== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17589== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17589== by 0x8062D5B: main (nginx.c:385)
==17589== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17589==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
100-client-abort.t TEST 11: cosocket + stop ==17589==
==17589== Process terminating with default action of signal 11 (SIGSEGV)
==17589== Access not within mapped region at address 0x0
==17589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17589== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17589== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17589== by 0x8062D5B: main (nginx.c:385)
==17589== If you believe this happened as a result of a stack
==17589== overflow in your program's main thread (unlikely but
==17589== possible), you can try to increase the size of the
==17589== main thread stack using the --main-stacksize= flag.
==17589== The main thread stack size used in this run was 8388608.

100-client-abort.t TEST 11: cosocket + stop - status code ok got: ''
expected: '200'
100-client-abort.t TEST 11: cosocket + stop - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 11: cosocket + stop - pattern "stream client prematurely closed connection" should match a line in error.log (req 0)
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:53:57 [error] 17589\#0: *65 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:53:57 [debug] 17589\#0: *65 stream lua tcp socket handle connect error
2020/10/27 04:53:57 [debug] 17589\#0: *65 stream lua finalize socket
2020/10/27 04:53:57 [debug] 17589\#0: *65 lua stream cleanup free: 053C1DD8
2020/10/27 04:53:57 [debug] 17589\#0: *65 lua close socket connection
2020/10/27 04:53:57 [debug] 17589\#0: *65 reusable connection: 0
2020/10/27 04:53:57 [debug] 17589\#0: *65 stream lua tcp socket waking up the current request
2020/10/27 04:53:57 [debug] 17589\#0: *65 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:53:57 [debug] 17589\#0: *65 stream lua tcp operation done, resuming lua thread
2020/10/27 04:53:57 [debug] 17589\#0: *65 stream lua tcp socket calling prepare retvals handler 081677D0, u:053C1A40
'
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:53:57 [error] 17589\#0: *65 stream [lua] content_by_lua(nginx.conf:50):10: failed to connect: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:53:57 [debug] 17589\#0: *65 lua resume returned 0
2020/10/27 04:53:57 [debug] 17589\#0: *65 lua light thread ended normally
2020/10/27 04:53:57 [debug] 17589\#0: *65 lua deleting light thread
2020/10/27 04:53:57 [debug] 17589\#0: *65 stream lua run thread returned 0
2020/10/27 04:53:57 [debug] 17589\#0: *65 finalize stream request: 0
2020/10/27 04:53:57 [debug] 17589\#0: *65 finalize stream session: 200
2020/10/27 04:53:57 [debug] 17589\#0: *65 stream log handler
2020/10/27 04:53:57 [debug] 17589\#0: *65 close stream connection: 10
2020/10/27 04:53:57 [debug] 17589\#0: *65 reusable connection: 0
'
100-client-abort.t TEST 11: cosocket + stop ==17610== Invalid read of size 4
==17610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17610== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17610== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17610== by 0x8062D5B: main (nginx.c:385)
==17610== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17610==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
100-client-abort.t TEST 11: cosocket + stop ==17610==
==17610== Process terminating with default action of signal 11 (SIGSEGV)
==17610== Access not within mapped region at address 0x0
==17610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17610== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==17610== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==17610== by 0x8062D5B: main (nginx.c:385)
==17610== If you believe this happened as a result of a stack
==17610== overflow in your program's main thread (unlikely but
==17610== possible), you can try to increase the size of the
==17610== main thread stack using the --main-stacksize= flag.
==17610== The main thread stack size used in this run was 8388608.

100-client-abort.t TEST 11: cosocket + stop - status code ok got: ''
expected: '200'
100-client-abort.t TEST 11: cosocket + stop - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 11: cosocket + stop - pattern "stream client prematurely closed connection" should match a line in error.log (req 1)
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:53:58 [error] 17610\#0: *69 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:53:58 [debug] 17610\#0: *69 stream lua tcp socket handle connect error
2020/10/27 04:53:58 [debug] 17610\#0: *69 stream lua finalize socket
2020/10/27 04:53:58 [debug] 17610\#0: *69 lua stream cleanup free: 0539B318
2020/10/27 04:53:58 [debug] 17610\#0: *69 lua close socket connection
2020/10/27 04:53:58 [debug] 17610\#0: *69 reusable connection: 0
2020/10/27 04:53:58 [debug] 17610\#0: *69 stream lua tcp socket waking up the current request
2020/10/27 04:53:58 [debug] 17610\#0: *69 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:53:58 [debug] 17610\#0: *69 stream lua tcp operation done, resuming lua thread
2020/10/27 04:53:58 [debug] 17610\#0: *69 stream lua tcp socket calling prepare retvals handler 081677D0, u:0539AF80
'
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:53:58 [error] 17610\#0: *69 stream [lua] content_by_lua(nginx.conf:50):10: failed to connect: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:53:58 [debug] 17610\#0: *69 lua resume returned 0
2020/10/27 04:53:58 [debug] 17610\#0: *69 lua light thread ended normally
2020/10/27 04:53:58 [debug] 17610\#0: *69 lua deleting light thread
2020/10/27 04:53:58 [debug] 17610\#0: *69 stream lua run thread returned 0
2020/10/27 04:53:58 [debug] 17610\#0: *69 finalize stream request: 0
2020/10/27 04:53:58 [debug] 17610\#0: *69 finalize stream session: 200
2020/10/27 04:53:58 [debug] 17610\#0: *69 stream log handler
2020/10/27 04:53:58 [debug] 17610\#0: *69 close stream connection: 14
2020/10/27 04:53:58 [debug] 17610\#0: *69 reusable connection: 0
'
100-client-abort.t TEST 18: ngx.flush ==17994== Invalid read of size 4
==17994== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17994== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17994== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17994== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17994== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17994== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17994== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17994== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17994== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17994== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17994== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17994== by 0x8062D5B: main (nginx.c:385)
==17994== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17994==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
100-client-abort.t TEST 18: ngx.flush ==17994==
==17994== Process terminating with default action of signal 11 (SIGSEGV)
==17994== Access not within mapped region at address 0x0
==17994== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==17994== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==17994== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==17994== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==17994== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==17994== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==17994== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==17994== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==17994== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==17994== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==17994== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==17994== by 0x8062D5B: main (nginx.c:385)
==17994== If you believe this happened as a result of a stack
==17994== overflow in your program's main thread (unlikely but
==17994== possible), you can try to increase the size of the
==17994== main thread stack using the --main-stacksize= flag.
==17994== The main thread stack size used in this run was 8388608.

100-client-abort.t TEST 18: ngx.flush - status code ok got: ''
expected: '200'
100-client-abort.t TEST 18: ngx.flush - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 18: ngx.flush - pattern "flush succeeded" should match a line in error.log (req 0)
100-client-abort.t TEST 18: ngx.flush - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:54:56 [alert] 17546\#0: worker process 17994 exited on signal 11" (req 0) 2020/10/27 04:54:56 [debug] 17546\#0: shmtx forced unlock
2020/10/27 04:54:56 [debug] 17546\#0: wake up, sigio 0
2020/10/27 04:54:56 [debug] 17546\#0: reap children
2020/10/27 04:54:56 [debug] 17546\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:54:56 [debug] 17546\#0: child: 1 17994 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:54:56 [debug] 17546\#0: channel 3:4
2020/10/27 04:54:56 [notice] 17546\#0: start worker process 18015
2020/10/27 04:54:56 [debug] 17546\#0: sigsuspend
2020/10/27 04:54:56 [debug] 18015\#0: malloc: 04971E08:12
'
100-client-abort.t TEST 18: ngx.flush ==18015== Invalid read of size 4
==18015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18015== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18015== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18015== by 0x8062D5B: main (nginx.c:385)
==18015== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18015==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
100-client-abort.t TEST 18: ngx.flush ==18015==
==18015== Process terminating with default action of signal 11 (SIGSEGV)
==18015== Access not within mapped region at address 0x0
==18015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18015== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18015== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18015== by 0x8062D5B: main (nginx.c:385)
==18015== If you believe this happened as a result of a stack
==18015== overflow in your program's main thread (unlikely but
==18015== possible), you can try to increase the size of the
==18015== main thread stack using the --main-stacksize= flag.
==18015== The main thread stack size used in this run was 8388608.

100-client-abort.t TEST 18: ngx.flush - status code ok got: ''
expected: '200'
100-client-abort.t TEST 18: ngx.flush - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 18: ngx.flush - pattern "flush succeeded" should match a line in error.log (req 1)
100-client-abort.t TEST 18: ngx.flush - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:54:57 [alert] 17546\#0: worker process 18015 exited on signal 11" (req 1) 2020/10/27 04:54:57 [debug] 17546\#0: shmtx forced unlock
2020/10/27 04:54:57 [debug] 17546\#0: wake up, sigio 0
2020/10/27 04:54:57 [debug] 17546\#0: reap children
2020/10/27 04:54:57 [debug] 17546\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:54:57 [debug] 17546\#0: child: 1 18015 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:54:57 [debug] 17546\#0: channel 3:4
2020/10/27 04:54:57 [notice] 17546\#0: start worker process 18016
2020/10/27 04:54:57 [debug] 17546\#0: sigsuspend
2020/10/27 04:54:57 [debug] 18016\#0: malloc: 04971E08:12
'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - Can't connect to 127.0.0.1:1984: Connection refused ==18024== Invalid read of size 4
==18024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18024== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==18024== by 0x8062D5B: main (nginx.c:385)
==18024== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18024==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - Can't connect to 127.0.0.1:1984: Connection refused ==18024==
==18024== Process terminating with default action of signal 11 (SIGSEGV)
==18024== Access not within mapped region at address 0x0
==18024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18024== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18024== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18024== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18024== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==18024== by 0x8062D5B: main (nginx.c:385)
==18024== If you believe this happened as a result of a stack
==18024== overflow in your program's main thread (unlikely but
==18024== possible), you can try to increase the size of the
==18024== main thread stack using the --main-stacksize= flag.
==18024== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - Can't connect to 127.0.0.1:1984: Connection refused ==18025== Invalid read of size 4
==18025== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18025== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18025== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18025== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18025== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18025== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18025== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18025== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18025== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18025== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18025== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18025== by 0x8062D5B: main (nginx.c:385)
==18025== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18025==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - Can't connect to 127.0.0.1:1984: Connection refused ==18025==
==18025== Process terminating with default action of signal 11 (SIGSEGV)
==18025== Access not within mapped region at address 0x0
==18025== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18025== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18025== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18025== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18025== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18025== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18025== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18025== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18025== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18025== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18025== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18025== by 0x8062D5B: main (nginx.c:385)
==18025== If you believe this happened as a result of a stack
==18025== overflow in your program's main thread (unlikely but
==18025== possible), you can try to increase the size of the
==18025== main thread stack using the --main-stacksize= flag.
==18025== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) ==18099== Invalid read of size 4
==18099== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18099== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18099== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18099== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18099== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18099== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18099== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18099== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18099== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18099== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18099== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18099== by 0x8062D5B: main (nginx.c:385)
==18099== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18099==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) ==18099==
==18099== Process terminating with default action of signal 11 (SIGSEGV)
==18099== Access not within mapped region at address 0x0
==18099== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18099== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18099== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18099== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18099== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18099== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18099== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18099== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18099== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18099== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18099== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18099== by 0x8062D5B: main (nginx.c:385)
==18099== If you believe this happened as a result of a stack
==18099== overflow in your program's main thread (unlikely but
==18099== possible), you can try to increase the size of the
==18099== main thread stack using the --main-stacksize= flag.
==18099== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) ==18120== Invalid read of size 4
==18120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18120== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18120== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18120== by 0x8062D5B: main (nginx.c:385)
==18120== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) ==18120==
==18120== Process terminating with default action of signal 11 (SIGSEGV)
==18120== Access not within mapped region at address 0x0
==18120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18120== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18120== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18120== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18120== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18120== by 0x8062D5B: main (nginx.c:385)
==18120== If you believe this happened as a result of a stack
==18120== overflow in your program's main thread (unlikely but
==18120== possible), you can try to increase the size of the
==18120== main thread stack using the --main-stacksize= flag.
==18120== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times ==18132== Invalid read of size 4
==18132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18132== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18132== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18132== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18132== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18132== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18132== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18132== by 0x8062D5B: main (nginx.c:385)
==18132== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18132==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 9: regsiter on_abort callback multiple times ==18132==
==18132== Process terminating with default action of signal 11 (SIGSEGV)
==18132== Access not within mapped region at address 0x0
==18132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18132== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18132== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18132== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18132== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18132== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18132== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18132== by 0x8062D5B: main (nginx.c:385)
==18132== If you believe this happened as a result of a stack
==18132== overflow in your program's main thread (unlikely but
==18132== possible), you can try to increase the size of the
==18132== main thread stack using the --main-stacksize= flag.
==18132== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 9: regsiter on_abort callback multiple times - status code ok got: ''
expected: '200'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2: cannot set on_abort: duplicate call
'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times ==18153== Invalid read of size 4
==18153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18153== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18153== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18153== by 0x8062D5B: main (nginx.c:385)
==18153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 9: regsiter on_abort callback multiple times ==18153==
==18153== Process terminating with default action of signal 11 (SIGSEGV)
==18153== Access not within mapped region at address 0x0
==18153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18153== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18153== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18153== by 0x8062D5B: main (nginx.c:385)
==18153== If you believe this happened as a result of a stack
==18153== overflow in your program's main thread (unlikely but
==18153== possible), you can try to increase the size of the
==18153== main thread stack using the --main-stacksize= flag.
==18153== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 9: regsiter on_abort callback multiple times - status code ok got: ''
expected: '200'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2: cannot set on_abort: duplicate call
'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion ==18196== Invalid read of size 4
==18196== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18196== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18196== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18196== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18196== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18196== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18196== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18196== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18196== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18196== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18196== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18196== by 0x8062D5B: main (nginx.c:385)
==18196== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18196==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion ==18196==
==18196== Process terminating with default action of signal 11 (SIGSEGV)
==18196== Access not within mapped region at address 0x0
==18196== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18196== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18196== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18196== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18196== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18196== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18196== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18196== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18196== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18196== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18196== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18196== by 0x8062D5B: main (nginx.c:385)
==18196== If you believe this happened as a result of a stack
==18196== overflow in your program's main thread (unlikely but
==18196== possible), you can try to increase the size of the
==18196== main thread stack using the --main-stacksize= flag.
==18196== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - status code ok got: ''
expected: '200'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion ==18217== Invalid read of size 4
==18217== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18217== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18217== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18217== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18217== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18217== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18217== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18217== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18217== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18217== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18217== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18217== by 0x8062D5B: main (nginx.c:385)
==18217== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18217==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion ==18217==
==18217== Process terminating with default action of signal 11 (SIGSEGV)
==18217== Access not within mapped region at address 0x0
==18217== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18217== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18217== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18217== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18217== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18217== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18217== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18217== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18217== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18217== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18217== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18217== by 0x8062D5B: main (nginx.c:385)
==18217== If you believe this happened as a result of a stack
==18217== overflow in your program's main thread (unlikely but
==18217== possible), you can try to increase the size of the
==18217== main thread stack using the --main-stacksize= flag.
==18217== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - status code ok got: ''
expected: '200'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) ==18229== Invalid read of size 4
==18229== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18229== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18229== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18229== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18229== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18229== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18229== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18229== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18229== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18229== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18229== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18229== by 0x8062D5B: main (nginx.c:385)
==18229== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18229==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) ==18229==
==18229== Process terminating with default action of signal 11 (SIGSEGV)
==18229== Access not within mapped region at address 0x0
==18229== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18229== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18229== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18229== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18229== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18229== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18229== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18229== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18229== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18229== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18229== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18229== by 0x8062D5B: main (nginx.c:385)
==18229== If you believe this happened as a result of a stack
==18229== overflow in your program's main thread (unlikely but
==18229== possible), you can try to increase the size of the
==18229== main thread stack using the --main-stacksize= flag.
==18229== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'cannot set on_abort: lua_check_client_abort is off
'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) ==18250== Invalid read of size 4
==18250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18250== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18250== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18250== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18250== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18250== by 0x8062D5B: main (nginx.c:385)
==18250== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18250==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) ==18250==
==18250== Process terminating with default action of signal 11 (SIGSEGV)
==18250== Access not within mapped region at address 0x0
==18250== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18250== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18250== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18250== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18250== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18250== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18250== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18250== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18250== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18250== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18250== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18250== by 0x8062D5B: main (nginx.c:385)
==18250== If you believe this happened as a result of a stack
==18250== overflow in your program's main thread (unlikely but
==18250== possible), you can try to increase the size of the
==18250== main thread stack using the --main-stacksize= flag.
==18250== The main thread stack size used in this run was 8388608.

101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'cannot set on_abort: lua_check_client_abort is off
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 0)
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:39 [error] 18293\#0: *282 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:55:39 [debug] 18293\#0: *282 stream lua tcp socket handle connect error
2020/10/27 04:55:39 [debug] 18293\#0: *282 stream lua finalize socket
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua stream cleanup free: 054F32B8
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua close socket connection
2020/10/27 04:55:39 [debug] 18293\#0: *282 reusable connection: 0
2020/10/27 04:55:39 [debug] 18293\#0: *282 stream lua tcp socket waking up the current request
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:55:39 [debug] 18293\#0: *282 stream lua tcp operation done, resuming lua thread
2020/10/27 04:55:39 [debug] 18293\#0: *282 stream lua tcp socket calling prepare retvals handler 081677D0, u:04EBE750
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:39 [error] 18293\#0: *282 stream [lua] content_by_lua(nginx.conf:52):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:55:39 [debug] 18293\#0: *282 lua exit with code 499
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua resume returned 1
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua thread yielded
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua thread aborting request with status 499
2020/10/27 04:55:39 [debug] 18293\#0: *282 lua request cleanup: forcible=0
2020/10/27 04:55:39 [debug] 18293\#0: lua clean up the timer for pending ngx.sleep
2020/10/27 04:55:39 [debug] 18293\#0: *282 event timer del: 0: 4972786
2020/10/27 04:55:39 [debug] 18293\#0: *282 stream lua run thread returned 499
2020/10/27 04:55:39 [debug] 18293\#0: *282 finalize stream request: 499
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 1)
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:40 [error] 18293\#0: *286 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:55:40 [debug] 18293\#0: *286 stream lua tcp socket handle connect error
2020/10/27 04:55:40 [debug] 18293\#0: *286 stream lua finalize socket
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua stream cleanup free: 054FC3D8
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua close socket connection
2020/10/27 04:55:40 [debug] 18293\#0: *286 reusable connection: 0
2020/10/27 04:55:40 [debug] 18293\#0: *286 stream lua tcp socket waking up the current request
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:55:40 [debug] 18293\#0: *286 stream lua tcp operation done, resuming lua thread
2020/10/27 04:55:40 [debug] 18293\#0: *286 stream lua tcp socket calling prepare retvals handler 081677D0, u:04E3CAC0
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:40 [error] 18293\#0: *286 stream [lua] content_by_lua(nginx.conf:52):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:55:40 [debug] 18293\#0: *286 lua exit with code 499
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua resume returned 1
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua thread yielded
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua thread aborting request with status 499
2020/10/27 04:55:40 [debug] 18293\#0: *286 lua request cleanup: forcible=0
2020/10/27 04:55:40 [debug] 18293\#0: lua clean up the timer for pending ngx.sleep
2020/10/27 04:55:40 [debug] 18293\#0: *286 event timer del: 0: 4973806
2020/10/27 04:55:40 [debug] 18293\#0: *286 stream lua run thread returned 499
2020/10/27 04:55:40 [debug] 18293\#0: *286 finalize stream request: 499
'
106-timer.t TEST 8: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==18321== Invalid read of size 4
==18321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18321== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==18321== by 0x8062D5B: main (nginx.c:385)
==18321== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18321==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 8: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==18321==
==18321== Process terminating with default action of signal 11 (SIGSEGV)
==18321== Access not within mapped region at address 0x0
==18321== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18321== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18321== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18321== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18321== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18321== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18321== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18321== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18321== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18321== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18321== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==18321== by 0x8062D5B: main (nginx.c:385)
==18321== If you believe this happened as a result of a stack
==18321== overflow in your program's main thread (unlikely but
==18321== possible), you can try to increase the size of the
==18321== main thread stack using the --main-stacksize= flag.
==18321== The main thread stack size used in this run was 8388608.

106-timer.t TEST 8: udp cosocket in timer handler - status code ok got: ''
expected: '200'
106-timer.t TEST 8: udp cosocket in timer handler - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 0)'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:45 [alert] 18320\#0: worker process 18321 exited on signal 11" (req 0) 2020/10/27 04:55:45 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:55:45 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:55:45 [debug] 18320\#0: reap children
2020/10/27 04:55:45 [debug] 18320\#0: child: 0 18321 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:45 [debug] 18320\#0: channel 3:9
2020/10/27 04:55:45 [notice] 18320\#0: start worker process 18322
2020/10/27 04:55:45 [debug] 18320\#0: sigsuspend
2020/10/27 04:55:45 [debug] 18322\#0: malloc: 04D05198:12
2020/10/27 04:55:45 [debug] 18322\#0: malloc: 04D051D8:8
'
106-timer.t TEST 8: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==18322== Invalid read of size 4
==18322== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18322== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18322== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18322== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18322== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18322== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18322== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18322== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18322== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18322== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18322== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18322== by 0x8062D5B: main (nginx.c:385)
==18322== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18322==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 8: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==18322==
==18322== Process terminating with default action of signal 11 (SIGSEGV)
==18322== Access not within mapped region at address 0x0
==18322== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18322== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18322== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18322== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18322== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18322== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18322== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18322== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18322== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18322== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18322== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18322== by 0x8062D5B: main (nginx.c:385)
==18322== If you believe this happened as a result of a stack
==18322== overflow in your program's main thread (unlikely but
==18322== possible), you can try to increase the size of the
==18322== main thread stack using the --main-stacksize= flag.
==18322== The main thread stack size used in this run was 8388608.

106-timer.t TEST 8: udp cosocket in timer handler - status code ok got: ''
expected: '200'
106-timer.t TEST 8: udp cosocket in timer handler - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 1)'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:45 [alert] 18320\#0: worker process 18322 exited on signal 11" (req 1) 2020/10/27 04:55:45 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:55:45 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:55:45 [debug] 18320\#0: reap children
2020/10/27 04:55:45 [debug] 18320\#0: child: 0 18322 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:45 [debug] 18320\#0: channel 3:9
2020/10/27 04:55:45 [notice] 18320\#0: start worker process 18323
2020/10/27 04:55:45 [debug] 18320\#0: sigsuspend
2020/10/27 04:55:45 [debug] 18323\#0: malloc: 04D05198:12
2020/10/27 04:55:45 [debug] 18323\#0: malloc: 04D051D8:8
'
106-timer.t TEST 27: user args ==18334== Invalid read of size 4
==18334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18334== by 0x8062D5B: main (nginx.c:385)
==18334== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18334==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 27: user args ==18334==
==18334== Process terminating with default action of signal 11 (SIGSEGV)
==18334== Access not within mapped region at address 0x0
==18334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18334== by 0x8062D5B: main (nginx.c:385)
==18334== If you believe this happened as a result of a stack
==18334== overflow in your program's main thread (unlikely but
==18334== possible), you can try to increase the size of the
==18334== main thread stack using the --main-stacksize= flag.
==18334== The main thread stack size used in this run was 8388608.

106-timer.t TEST 27: user args - status code ok got: ''
expected: '200'
106-timer.t TEST 27: user args - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 27: user args - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:48 [alert] 18320\#0: worker process 18334 exited on signal 11" (req 0) 2020/10/27 04:55:48 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:55:48 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:55:48 [debug] 18320\#0: reap children
2020/10/27 04:55:48 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:55:48 [debug] 18320\#0: child: 1 18334 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:48 [debug] 18320\#0: channel 3:4
2020/10/27 04:55:48 [notice] 18320\#0: start worker process 18355
2020/10/27 04:55:48 [debug] 18320\#0: sigsuspend
2020/10/27 04:55:48 [debug] 18355\#0: malloc: 0504A8E0:12
'
106-timer.t TEST 27: user args ==18355== Invalid read of size 4
==18355== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18355== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18355== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18355== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18355== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18355== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18355== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18355== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18355== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18355== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18355== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18355== by 0x8062D5B: main (nginx.c:385)
==18355== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18355==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 27: user args ==18355==
==18355== Process terminating with default action of signal 11 (SIGSEGV)
==18355== Access not within mapped region at address 0x0
==18355== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18355== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18355== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18355== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18355== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18355== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18355== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18355== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18355== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18355== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18355== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18355== by 0x8062D5B: main (nginx.c:385)
==18355== If you believe this happened as a result of a stack
==18355== overflow in your program's main thread (unlikely but
==18355== possible), you can try to increase the size of the
==18355== main thread stack using the --main-stacksize= flag.
==18355== The main thread stack size used in this run was 8388608.

106-timer.t TEST 27: user args - status code ok got: ''
expected: '200'
106-timer.t TEST 27: user args - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 27: user args - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:49 [alert] 18320\#0: worker process 18355 exited on signal 11" (req 1) 2020/10/27 04:55:49 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:55:49 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:55:49 [debug] 18320\#0: reap children
2020/10/27 04:55:49 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:55:49 [debug] 18320\#0: child: 1 18355 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:49 [debug] 18320\#0: channel 3:4
2020/10/27 04:55:49 [notice] 18320\#0: start worker process 18356
2020/10/27 04:55:49 [debug] 18320\#0: sigsuspend
2020/10/27 04:55:49 [debug] 18356\#0: malloc: 0504A8E0:12
'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) ==18367== Invalid read of size 4
==18367== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18367== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18367== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18367== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18367== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18367== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18367== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18367== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18367== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18367== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18367== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18367== by 0x8062D5B: main (nginx.c:385)
==18367== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18367==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) ==18367==
==18367== Process terminating with default action of signal 11 (SIGSEGV)
==18367== Access not within mapped region at address 0x0
==18367== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18367== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18367== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18367== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18367== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18367== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18367== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18367== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18367== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18367== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18367== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18367== by 0x8062D5B: main (nginx.c:385)
==18367== If you believe this happened as a result of a stack
==18367== overflow in your program's main thread (unlikely but
==18367== possible), you can try to increase the size of the
==18367== main thread stack using the --main-stacksize= flag.
==18367== The main thread stack size used in this run was 8388608.

106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - status code ok got: ''
expected: '200'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) ==18388== Invalid read of size 4
==18388== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18388== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18388== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18388== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18388== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18388== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18388== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18388== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18388== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18388== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18388== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18388== by 0x8062D5B: main (nginx.c:385)
==18388== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18388==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) ==18388==
==18388== Process terminating with default action of signal 11 (SIGSEGV)
==18388== Access not within mapped region at address 0x0
==18388== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18388== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18388== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18388== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18388== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18388== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18388== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18388== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18388== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18388== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18388== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18388== by 0x8062D5B: main (nginx.c:385)
==18388== If you believe this happened as a result of a stack
==18388== overflow in your program's main thread (unlikely but
==18388== possible), you can try to increase the size of the
==18388== main thread stack using the --main-stacksize= flag.
==18388== The main thread stack size used in this run was 8388608.

106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - status code ok got: ''
expected: '200'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 3: lua variable sharing via upvalue ==18400== Invalid read of size 4
==18400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18400== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18400== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18400== by 0x8062D5B: main (nginx.c:385)
==18400== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18400==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 3: lua variable sharing via upvalue ==18400==
==18400== Process terminating with default action of signal 11 (SIGSEGV)
==18400== Access not within mapped region at address 0x0
==18400== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18400== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18400== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18400== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18400== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18400== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18400== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18400== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18400== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18400== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18400== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18400== by 0x8062D5B: main (nginx.c:385)
==18400== If you believe this happened as a result of a stack
==18400== overflow in your program's main thread (unlikely but
==18400== possible), you can try to increase the size of the
==18400== main thread stack using the --main-stacksize= flag.
==18400== The main thread stack size used in this run was 8388608.

106-timer.t TEST 3: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
106-timer.t TEST 3: lua variable sharing via upvalue - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:56 [alert] 18320\#0: worker process 18400 exited on signal 11" (req 0) 2020/10/27 04:55:56 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:55:56 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:55:56 [debug] 18320\#0: reap children
2020/10/27 04:55:56 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:55:56 [debug] 18320\#0: child: 1 18400 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:56 [debug] 18320\#0: channel 3:4
2020/10/27 04:55:56 [notice] 18320\#0: start worker process 18421
2020/10/27 04:55:56 [debug] 18320\#0: sigsuspend
2020/10/27 04:55:56 [debug] 18421\#0: malloc: 05565328:12
'
106-timer.t TEST 3: lua variable sharing via upvalue ==18421== Invalid read of size 4
==18421== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18421== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18421== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18421== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18421== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18421== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18421== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18421== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18421== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18421== by 0x8062D5B: main (nginx.c:385)
==18421== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18421==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 3: lua variable sharing via upvalue ==18421==
==18421== Process terminating with default action of signal 11 (SIGSEGV)
==18421== Access not within mapped region at address 0x0
==18421== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18421== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18421== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18421== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18421== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18421== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18421== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18421== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18421== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18421== by 0x8062D5B: main (nginx.c:385)
==18421== If you believe this happened as a result of a stack
==18421== overflow in your program's main thread (unlikely but
==18421== possible), you can try to increase the size of the
==18421== main thread stack using the --main-stacksize= flag.
==18421== The main thread stack size used in this run was 8388608.

106-timer.t TEST 3: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
106-timer.t TEST 3: lua variable sharing via upvalue - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:57 [alert] 18320\#0: worker process 18421 exited on signal 11" (req 1) 2020/10/27 04:55:57 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:55:57 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:55:57 [debug] 18320\#0: reap children
2020/10/27 04:55:57 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:55:57 [debug] 18320\#0: child: 1 18421 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:57 [debug] 18320\#0: channel 3:4
2020/10/27 04:55:57 [notice] 18320\#0: start worker process 18422
2020/10/27 04:55:57 [debug] 18320\#0: sigsuspend
2020/10/27 04:55:57 [debug] 18422\#0: malloc: 05565328:12
'
106-timer.t TEST 4: simple at (sleep in the timer callback) ==18433== Invalid read of size 4
==18433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18433== by 0x8062D5B: main (nginx.c:385)
==18433== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18433==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 4: simple at (sleep in the timer callback) ==18433==
==18433== Process terminating with default action of signal 11 (SIGSEGV)
==18433== Access not within mapped region at address 0x0
==18433== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18433== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18433== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18433== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18433== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18433== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18433== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18433== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18433== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18433== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18433== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18433== by 0x8062D5B: main (nginx.c:385)
==18433== If you believe this happened as a result of a stack
==18433== overflow in your program's main thread (unlikely but
==18433== possible), you can try to increase the size of the
==18433== main thread stack using the --main-stacksize= flag.
==18433== The main thread stack size used in this run was 8388608.

106-timer.t TEST 4: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
106-timer.t TEST 4: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:00 [alert] 18320\#0: worker process 18433 exited on signal 11" (req 0) 2020/10/27 04:56:00 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:00 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:00 [debug] 18320\#0: reap children
2020/10/27 04:56:00 [debug] 18320\#0: child: 0 18433 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:00 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:00 [notice] 18320\#0: start worker process 18454
2020/10/27 04:56:00 [debug] 18320\#0: sigsuspend
2020/10/27 04:56:00 [debug] 18454\#0: malloc: 0596A768:12
2020/10/27 04:56:00 [debug] 18454\#0: malloc: 0596A7A8:8
'
106-timer.t TEST 4: simple at (sleep in the timer callback) ==18454== Invalid read of size 4
==18454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18454== by 0x8062D5B: main (nginx.c:385)
==18454== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18454==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 4: simple at (sleep in the timer callback) ==18454==
==18454== Process terminating with default action of signal 11 (SIGSEGV)
==18454== Access not within mapped region at address 0x0
==18454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18454== by 0x8062D5B: main (nginx.c:385)
==18454== If you believe this happened as a result of a stack
==18454== overflow in your program's main thread (unlikely but
==18454== possible), you can try to increase the size of the
==18454== main thread stack using the --main-stacksize= flag.
==18454== The main thread stack size used in this run was 8388608.

106-timer.t TEST 4: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
106-timer.t TEST 4: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:00 [alert] 18320\#0: worker process 18454 exited on signal 11" (req 1) 2020/10/27 04:56:00 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:00 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:00 [debug] 18320\#0: reap children
2020/10/27 04:56:00 [debug] 18320\#0: child: 0 18454 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:00 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:00 [notice] 18320\#0: start worker process 18455
2020/10/27 04:56:00 [debug] 18320\#0: sigsuspend
2020/10/27 04:56:00 [debug] 18455\#0: malloc: 0596A768:12
2020/10/27 04:56:00 [debug] 18455\#0: malloc: 0596A7A8:8
'
106-timer.t TEST 24: lua_max_running_timers (just not enough) ==18466== Invalid read of size 4
==18466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18466== by 0x8062D5B: main (nginx.c:385)
==18466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 24: lua_max_running_timers (just not enough) ==18466==
==18466== Process terminating with default action of signal 11 (SIGSEGV)
==18466== Access not within mapped region at address 0x0
==18466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18466== by 0x8062D5B: main (nginx.c:385)
==18466== If you believe this happened as a result of a stack
==18466== overflow in your program's main thread (unlikely but
==18466== possible), you can try to increase the size of the
==18466== main thread stack using the --main-stacksize= flag.
==18466== The main thread stack size used in this run was 8388608.

106-timer.t TEST 24: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 24: lua_max_running_timers (just not enough) ==18487== Invalid read of size 4
==18487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18487== by 0x8062D5B: main (nginx.c:385)
==18487== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18487==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 24: lua_max_running_timers (just not enough) ==18487==
==18487== Process terminating with default action of signal 11 (SIGSEGV)
==18487== Access not within mapped region at address 0x0
==18487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18487== by 0x8062D5B: main (nginx.c:385)
==18487== If you believe this happened as a result of a stack
==18487== overflow in your program's main thread (unlikely but
==18487== possible), you can try to increase the size of the
==18487== main thread stack using the --main-stacksize= flag.
==18487== The main thread stack size used in this run was 8388608.

106-timer.t TEST 24: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 2: separated global env ==18533== Invalid read of size 4
==18533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18533== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18533== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18533== by 0x8062D5B: main (nginx.c:385)
==18533== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18533==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 2: separated global env ==18533==
==18533== Process terminating with default action of signal 11 (SIGSEGV)
==18533== Access not within mapped region at address 0x0
==18533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18533== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18533== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18533== by 0x8062D5B: main (nginx.c:385)
==18533== If you believe this happened as a result of a stack
==18533== overflow in your program's main thread (unlikely but
==18533== possible), you can try to increase the size of the
==18533== main thread stack using the --main-stacksize= flag.
==18533== The main thread stack size used in this run was 8388608.

106-timer.t TEST 2: separated global env - status code ok got: ''
expected: '200'
106-timer.t TEST 2: separated global env - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 2: separated global env - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:10 [alert] 18320\#0: worker process 18533 exited on signal 11" (req 0) 2020/10/27 04:56:10 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:10 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:10 [debug] 18320\#0: reap children
2020/10/27 04:56:10 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:10 [debug] 18320\#0: child: 1 18533 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:10 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:10 [notice] 18320\#0: start worker process 18554
2020/10/27 04:56:10 [debug] 18320\#0: sigsuspend
2020/10/27 04:56:10 [debug] 18554\#0: malloc: 04B5BC40:12
'
106-timer.t TEST 2: separated global env ==18554== Invalid read of size 4
==18554== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18554== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18554== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18554== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18554== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18554== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18554== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18554== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18554== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18554== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18554== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18554== by 0x8062D5B: main (nginx.c:385)
==18554== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18554==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 2: separated global env ==18554==
==18554== Process terminating with default action of signal 11 (SIGSEGV)
==18554== Access not within mapped region at address 0x0
==18554== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18554== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18554== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18554== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18554== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18554== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18554== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18554== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18554== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18554== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18554== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18554== by 0x8062D5B: main (nginx.c:385)
==18554== If you believe this happened as a result of a stack
==18554== overflow in your program's main thread (unlikely but
==18554== possible), you can try to increase the size of the
==18554== main thread stack using the --main-stacksize= flag.
==18554== The main thread stack size used in this run was 8388608.

106-timer.t TEST 2: separated global env - status code ok got: ''
expected: '200'
106-timer.t TEST 2: separated global env - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 2: separated global env - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:11 [alert] 18320\#0: worker process 18554 exited on signal 11" (req 1) 2020/10/27 04:56:11 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:11 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:11 [debug] 18320\#0: reap children
2020/10/27 04:56:11 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:11 [debug] 18320\#0: child: 1 18554 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:11 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:11 [notice] 18320\#0: start worker process 18555
2020/10/27 04:56:11 [debug] 18320\#0: sigsuspend
2020/10/27 04:56:11 [debug] 18555\#0: malloc: 04B5BC40:12
'
106-timer.t TEST 14: ngx.exit(0) ==18566== Invalid read of size 4
==18566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18566== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18566== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18566== by 0x8062D5B: main (nginx.c:385)
==18566== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18566==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 14: ngx.exit(0) ==18566==
==18566== Process terminating with default action of signal 11 (SIGSEGV)
==18566== Access not within mapped region at address 0x0
==18566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18566== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18566== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18566== by 0x8062D5B: main (nginx.c:385)
==18566== If you believe this happened as a result of a stack
==18566== overflow in your program's main thread (unlikely but
==18566== possible), you can try to increase the size of the
==18566== main thread stack using the --main-stacksize= flag.
==18566== The main thread stack size used in this run was 8388608.

106-timer.t TEST 14: ngx.exit(0) - status code ok got: ''
expected: '200'
106-timer.t TEST 14: ngx.exit(0) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 14: ngx.exit(0) ==18587== Invalid read of size 4
==18587== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18587== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18587== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18587== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18587== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18587== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18587== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18587== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18587== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18587== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18587== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18587== by 0x8062D5B: main (nginx.c:385)
==18587== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18587==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 14: ngx.exit(0) ==18587==
==18587== Process terminating with default action of signal 11 (SIGSEGV)
==18587== Access not within mapped region at address 0x0
==18587== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18587== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18587== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18587== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18587== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18587== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18587== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18587== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18587== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18587== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18587== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18587== by 0x8062D5B: main (nginx.c:385)
==18587== If you believe this happened as a result of a stack
==18587== overflow in your program's main thread (unlikely but
==18587== possible), you can try to increase the size of the
==18587== main thread stack using the --main-stacksize= flag.
==18587== The main thread stack size used in this run was 8388608.

106-timer.t TEST 14: ngx.exit(0) - status code ok got: ''
expected: '200'
106-timer.t TEST 14: ngx.exit(0) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 1: simple at ==18599== Invalid read of size 4
==18599== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18599== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18599== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18599== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18599== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18599== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18599== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18599== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18599== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18599== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18599== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18599== by 0x8062D5B: main (nginx.c:385)
==18599== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18599==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 1: simple at ==18599==
==18599== Process terminating with default action of signal 11 (SIGSEGV)
==18599== Access not within mapped region at address 0x0
==18599== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18599== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18599== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18599== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18599== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18599== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18599== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18599== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18599== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18599== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18599== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18599== by 0x8062D5B: main (nginx.c:385)
==18599== If you believe this happened as a result of a stack
==18599== overflow in your program's main thread (unlikely but
==18599== possible), you can try to increase the size of the
==18599== main thread stack using the --main-stacksize= flag.
==18599== The main thread stack size used in this run was 8388608.

106-timer.t TEST 1: simple at - status code ok got: ''
expected: '200'
106-timer.t TEST 1: simple at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:18 [alert] 18320\#0: worker process 18599 exited on signal 11" (req 0) 2020/10/27 04:56:18 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:18 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:18 [debug] 18320\#0: reap children
2020/10/27 04:56:18 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:18 [debug] 18320\#0: child: 1 18599 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:18 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:18 [notice] 18320\#0: start worker process 18620
2020/10/27 04:56:18 [debug] 18320\#0: sigsuspend
'
106-timer.t TEST 1: simple at ==18620== Invalid read of size 4
==18620== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18620== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18620== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18620== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18620== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18620== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18620== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18620== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18620== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18620== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18620== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18620== by 0x8062D5B: main (nginx.c:385)
==18620== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18620==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 1: simple at ==18620==
==18620== Process terminating with default action of signal 11 (SIGSEGV)
==18620== Access not within mapped region at address 0x0
==18620== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18620== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18620== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18620== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18620== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18620== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18620== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18620== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18620== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18620== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18620== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18620== by 0x8062D5B: main (nginx.c:385)
==18620== If you believe this happened as a result of a stack
==18620== overflow in your program's main thread (unlikely but
==18620== possible), you can try to increase the size of the
==18620== main thread stack using the --main-stacksize= flag.
==18620== The main thread stack size used in this run was 8388608.

106-timer.t TEST 1: simple at - status code ok got: ''
expected: '200'
106-timer.t TEST 1: simple at - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:18 [alert] 18320\#0: worker process 18620 exited on signal 11" (req 1) 2020/10/27 04:56:18 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:18 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:18 [debug] 18320\#0: reap children
2020/10/27 04:56:18 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:18 [debug] 18320\#0: child: 1 18620 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:18 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:18 [notice] 18320\#0: start worker process 18621
'
106-timer.t TEST 20: lua_max_pending_timers ==18632== Invalid read of size 4
==18632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18632== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18632== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18632== by 0x8062D5B: main (nginx.c:385)
==18632== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18632==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 20: lua_max_pending_timers ==18632==
==18632== Process terminating with default action of signal 11 (SIGSEGV)
==18632== Access not within mapped region at address 0x0
==18632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18632== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18632== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18632== by 0x8062D5B: main (nginx.c:385)
==18632== If you believe this happened as a result of a stack
==18632== overflow in your program's main thread (unlikely but
==18632== possible), you can try to increase the size of the
==18632== main thread stack using the --main-stacksize= flag.
==18632== The main thread stack size used in this run was 8388608.

106-timer.t TEST 20: lua_max_pending_timers - status code ok got: ''
expected: '200'
106-timer.t TEST 20: lua_max_pending_timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set timer g: too many pending timers
'
106-timer.t TEST 20: lua_max_pending_timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:22 [alert] 18320\#0: worker process 18632 exited on signal 11" (req 0) 2020/10/27 04:56:22 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:22 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:22 [debug] 18320\#0: reap children
2020/10/27 04:56:22 [debug] 18320\#0: child: 0 18632 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:22 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:22 [notice] 18320\#0: start worker process 18653
2020/10/27 04:56:22 [debug] 18320\#0: sigsuspend
'
106-timer.t TEST 20: lua_max_pending_timers ==18653== Invalid read of size 4
==18653== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18653== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18653== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18653== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18653== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18653== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18653== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18653== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18653== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18653== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18653== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18653== by 0x8062D5B: main (nginx.c:385)
==18653== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18653==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 20: lua_max_pending_timers ==18653==
==18653== Process terminating with default action of signal 11 (SIGSEGV)
==18653== Access not within mapped region at address 0x0
==18653== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18653== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18653== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18653== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18653== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18653== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18653== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18653== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18653== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18653== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18653== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18653== by 0x8062D5B: main (nginx.c:385)
==18653== If you believe this happened as a result of a stack
==18653== overflow in your program's main thread (unlikely but
==18653== possible), you can try to increase the size of the
==18653== main thread stack using the --main-stacksize= flag.
==18653== The main thread stack size used in this run was 8388608.

106-timer.t TEST 20: lua_max_pending_timers - status code ok got: ''
expected: '200'
106-timer.t TEST 20: lua_max_pending_timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set timer g: too many pending timers
'
106-timer.t TEST 20: lua_max_pending_timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:22 [alert] 18320\#0: worker process 18653 exited on signal 11" (req 1) 2020/10/27 04:56:22 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:22 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:22 [debug] 18320\#0: reap children
2020/10/27 04:56:22 [debug] 18320\#0: child: 0 18653 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:22 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:22 [notice] 18320\#0: start worker process 18654
'
106-timer.t TEST 19: multiple parallel timers ==18665== Invalid read of size 4
==18665== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18665== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18665== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18665== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18665== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18665== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18665== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18665== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18665== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18665== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18665== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18665== by 0x8062D5B: main (nginx.c:385)
==18665== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18665==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 19: multiple parallel timers ==18665==
==18665== Process terminating with default action of signal 11 (SIGSEGV)
==18665== Access not within mapped region at address 0x0
==18665== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18665== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18665== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18665== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18665== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18665== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18665== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18665== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18665== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18665== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18665== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18665== by 0x8062D5B: main (nginx.c:385)
==18665== If you believe this happened as a result of a stack
==18665== overflow in your program's main thread (unlikely but
==18665== possible), you can try to increase the size of the
==18665== main thread stack using the --main-stacksize= flag.
==18665== The main thread stack size used in this run was 8388608.

106-timer.t TEST 19: multiple parallel timers - status code ok got: ''
expected: '200'
106-timer.t TEST 19: multiple parallel timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 19: multiple parallel timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:26 [alert] 18320\#0: worker process 18665 exited on signal 11" (req 0) 2020/10/27 04:56:26 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:26 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:26 [debug] 18320\#0: reap children
2020/10/27 04:56:26 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:26 [debug] 18320\#0: child: 1 18665 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:26 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:26 [notice] 18320\#0: start worker process 18686
'
106-timer.t TEST 19: multiple parallel timers ==18686== Invalid read of size 4
==18686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18686== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18686== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18686== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18686== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18686== by 0x8062D5B: main (nginx.c:385)
==18686== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18686==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 19: multiple parallel timers ==18686==
==18686== Process terminating with default action of signal 11 (SIGSEGV)
==18686== Access not within mapped region at address 0x0
==18686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18686== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18686== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18686== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18686== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18686== by 0x8062D5B: main (nginx.c:385)
==18686== If you believe this happened as a result of a stack
==18686== overflow in your program's main thread (unlikely but
==18686== possible), you can try to increase the size of the
==18686== main thread stack using the --main-stacksize= flag.
==18686== The main thread stack size used in this run was 8388608.

106-timer.t TEST 19: multiple parallel timers - status code ok got: ''
expected: '200'
106-timer.t TEST 19: multiple parallel timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 19: multiple parallel timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:26 [alert] 18320\#0: worker process 18686 exited on signal 11" (req 1) 2020/10/27 04:56:26 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:26 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:26 [debug] 18320\#0: reap children
2020/10/27 04:56:26 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:26 [debug] 18320\#0: child: 1 18686 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:26 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:26 [notice] 18320\#0: start worker process 18687
2020/10/27 04:56:26 [debug] 18320\#0: sigsuspend
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==18698== Invalid read of size 4
==18698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18698== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18698== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18698== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18698== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18698== by 0x8062D5B: main (nginx.c:385)
==18698== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18698==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==18698==
==18698== Process terminating with default action of signal 11 (SIGSEGV)
==18698== Access not within mapped region at address 0x0
==18698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18698== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18698== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18698== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18698== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18698== by 0x8062D5B: main (nginx.c:385)
==18698== If you believe this happened as a result of a stack
==18698== overflow in your program's main thread (unlikely but
==18698== possible), you can try to increase the size of the
==18698== main thread stack using the --main-stacksize= flag.
==18698== The main thread stack size used in this run was 8388608.

106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:29 [alert] 18320\#0: worker process 18698 exited on signal 11" (req 0) 2020/10/27 04:56:29 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:29 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:29 [debug] 18320\#0: reap children
2020/10/27 04:56:29 [debug] 18320\#0: child: 0 18698 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:29 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:29 [notice] 18320\#0: start worker process 18719
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==18719== Invalid read of size 4
==18719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18719== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18719== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18719== by 0x8062D5B: main (nginx.c:385)
==18719== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18719==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding ==18719==
==18719== Process terminating with default action of signal 11 (SIGSEGV)
==18719== Access not within mapped region at address 0x0
==18719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18719== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18719== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18719== by 0x8062D5B: main (nginx.c:385)
==18719== If you believe this happened as a result of a stack
==18719== overflow in your program's main thread (unlikely but
==18719== possible), you can try to increase the size of the
==18719== main thread stack using the --main-stacksize= flag.
==18719== The main thread stack size used in this run was 8388608.

106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:30 [alert] 18320\#0: worker process 18719 exited on signal 11" (req 1) 2020/10/27 04:56:30 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:30 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:30 [debug] 18320\#0: reap children
2020/10/27 04:56:30 [debug] 18320\#0: child: 0 18719 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:30 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:30 [notice] 18320\#0: start worker process 18720
'
106-timer.t TEST 18: chained timers (non-zero delay) ==18731== Invalid read of size 4
==18731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18731== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18731== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18731== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18731== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18731== by 0x8062D5B: main (nginx.c:385)
==18731== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18731==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 18: chained timers (non-zero delay) ==18731==
==18731== Process terminating with default action of signal 11 (SIGSEGV)
==18731== Access not within mapped region at address 0x0
==18731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18731== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18731== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18731== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18731== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18731== by 0x8062D5B: main (nginx.c:385)
==18731== If you believe this happened as a result of a stack
==18731== overflow in your program's main thread (unlikely but
==18731== possible), you can try to increase the size of the
==18731== main thread stack using the --main-stacksize= flag.
==18731== The main thread stack size used in this run was 8388608.

106-timer.t TEST 18: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 18: chained timers (non-zero delay) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:33 [alert] 18320\#0: worker process 18731 exited on signal 11" (req 0) 2020/10/27 04:56:33 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:33 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:33 [debug] 18320\#0: reap children
2020/10/27 04:56:33 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:33 [debug] 18320\#0: child: 1 18731 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:33 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:33 [notice] 18320\#0: start worker process 18752
'
106-timer.t TEST 18: chained timers (non-zero delay) ==18752== Invalid read of size 4
==18752== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18752== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18752== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18752== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18752== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18752== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18752== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18752== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18752== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18752== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18752== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18752== by 0x8062D5B: main (nginx.c:385)
==18752== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18752==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 18: chained timers (non-zero delay) ==18752==
==18752== Process terminating with default action of signal 11 (SIGSEGV)
==18752== Access not within mapped region at address 0x0
==18752== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18752== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18752== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18752== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18752== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18752== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18752== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18752== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18752== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18752== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18752== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18752== by 0x8062D5B: main (nginx.c:385)
==18752== If you believe this happened as a result of a stack
==18752== overflow in your program's main thread (unlikely but
==18752== possible), you can try to increase the size of the
==18752== main thread stack using the --main-stacksize= flag.
==18752== The main thread stack size used in this run was 8388608.

106-timer.t TEST 18: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 18: chained timers (non-zero delay) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:34 [alert] 18320\#0: worker process 18752 exited on signal 11" (req 1) 2020/10/27 04:56:34 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:34 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:34 [debug] 18320\#0: reap children
2020/10/27 04:56:34 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:34 [debug] 18320\#0: child: 1 18752 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:34 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:34 [notice] 18320\#0: start worker process 18753
'
106-timer.t TEST 25: lua_max_running_timers (just enough) ==18764== Invalid read of size 4
==18764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18764== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18764== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18764== by 0x8062D5B: main (nginx.c:385)
==18764== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18764==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 25: lua_max_running_timers (just enough) ==18764==
==18764== Process terminating with default action of signal 11 (SIGSEGV)
==18764== Access not within mapped region at address 0x0
==18764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18764== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18764== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18764== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18764== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18764== by 0x8062D5B: main (nginx.c:385)
==18764== If you believe this happened as a result of a stack
==18764== overflow in your program's main thread (unlikely but
==18764== possible), you can try to increase the size of the
==18764== main thread stack using the --main-stacksize= flag.
==18764== The main thread stack size used in this run was 8388608.

106-timer.t TEST 25: lua_max_running_timers (just enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 25: lua_max_running_timers (just enough) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:37 [alert] 18320\#0: worker process 18764 exited on signal 11" (req 0) 2020/10/27 04:56:37 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:37 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:37 [debug] 18320\#0: reap children
2020/10/27 04:56:37 [debug] 18320\#0: child: 0 18764 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:37 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:37 [notice] 18320\#0: start worker process 18785
'
106-timer.t TEST 25: lua_max_running_timers (just enough) ==18785== Invalid read of size 4
==18785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18785== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18785== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18785== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18785== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18785== by 0x8062D5B: main (nginx.c:385)
==18785== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18785==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 25: lua_max_running_timers (just enough) ==18785==
==18785== Process terminating with default action of signal 11 (SIGSEGV)
==18785== Access not within mapped region at address 0x0
==18785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18785== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18785== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18785== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18785== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18785== by 0x8062D5B: main (nginx.c:385)
==18785== If you believe this happened as a result of a stack
==18785== overflow in your program's main thread (unlikely but
==18785== possible), you can try to increase the size of the
==18785== main thread stack using the --main-stacksize= flag.
==18785== The main thread stack size used in this run was 8388608.

106-timer.t TEST 25: lua_max_running_timers (just enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 25: lua_max_running_timers (just enough) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:38 [alert] 18320\#0: worker process 18785 exited on signal 11" (req 1) 2020/10/27 04:56:38 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:38 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:38 [debug] 18320\#0: reap children
2020/10/27 04:56:38 [debug] 18320\#0: child: 0 18785 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:38 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:38 [notice] 18320\#0: start worker process 18786
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) ==18797== Invalid read of size 4
==18797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18797== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18797== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18797== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18797== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18797== by 0x8062D5B: main (nginx.c:385)
==18797== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18797==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) ==18797==
==18797== Process terminating with default action of signal 11 (SIGSEGV)
==18797== Access not within mapped region at address 0x0
==18797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18797== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18797== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18797== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18797== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18797== by 0x8062D5B: main (nginx.c:385)
==18797== If you believe this happened as a result of a stack
==18797== overflow in your program's main thread (unlikely but
==18797== possible), you can try to increase the size of the
==18797== main thread stack using the --main-stacksize= flag.
==18797== The main thread stack size used in this run was 8388608.

106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - status code ok got: ''
expected: '200'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:41 [alert] 18320\#0: worker process 18797 exited on signal 11" (req 0) 2020/10/27 04:56:41 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:41 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:41 [debug] 18320\#0: reap children
2020/10/27 04:56:41 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:41 [debug] 18320\#0: child: 1 18797 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:41 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:41 [notice] 18320\#0: start worker process 18818
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) ==18818== Invalid read of size 4
==18818== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18818== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18818== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18818== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18818== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18818== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18818== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18818== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18818== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18818== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18818== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18818== by 0x8062D5B: main (nginx.c:385)
==18818== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18818==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) ==18818==
==18818== Process terminating with default action of signal 11 (SIGSEGV)
==18818== Access not within mapped region at address 0x0
==18818== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18818== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18818== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18818== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18818== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18818== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18818== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18818== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18818== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18818== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18818== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18818== by 0x8062D5B: main (nginx.c:385)
==18818== If you believe this happened as a result of a stack
==18818== overflow in your program's main thread (unlikely but
==18818== possible), you can try to increase the size of the
==18818== main thread stack using the --main-stacksize= flag.
==18818== The main thread stack size used in this run was 8388608.

106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - status code ok got: ''
expected: '200'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:42 [alert] 18320\#0: worker process 18818 exited on signal 11" (req 1) 2020/10/27 04:56:42 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:42 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:42 [debug] 18320\#0: reap children
2020/10/27 04:56:42 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:42 [debug] 18320\#0: child: 1 18818 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:42 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:42 [notice] 18320\#0: start worker process 18819
'
106-timer.t TEST 11: coroutine API ==18830== Invalid read of size 4
==18830== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18830== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18830== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18830== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18830== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18830== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18830== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18830== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18830== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18830== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18830== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18830== by 0x8062D5B: main (nginx.c:385)
==18830== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18830==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 11: coroutine API ==18830==
==18830== Process terminating with default action of signal 11 (SIGSEGV)
==18830== Access not within mapped region at address 0x0
==18830== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18830== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18830== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18830== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18830== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18830== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18830== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18830== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18830== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18830== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18830== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18830== by 0x8062D5B: main (nginx.c:385)
==18830== If you believe this happened as a result of a stack
==18830== overflow in your program's main thread (unlikely but
==18830== possible), you can try to increase the size of the
==18830== main thread stack using the --main-stacksize= flag.
==18830== The main thread stack size used in this run was 8388608.

106-timer.t TEST 11: coroutine API - status code ok got: ''
expected: '200'
106-timer.t TEST 11: coroutine API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 11: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:45 [alert] 18320\#0: worker process 18830 exited on signal 11" (req 0) 2020/10/27 04:56:45 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:45 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:45 [debug] 18320\#0: reap children
2020/10/27 04:56:45 [debug] 18320\#0: child: 0 18830 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:45 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:45 [notice] 18320\#0: start worker process 18851
'
106-timer.t TEST 11: coroutine API ==18851== Invalid read of size 4
==18851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18851== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18851== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18851== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18851== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18851== by 0x8062D5B: main (nginx.c:385)
==18851== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18851==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 11: coroutine API ==18851==
==18851== Process terminating with default action of signal 11 (SIGSEGV)
==18851== Access not within mapped region at address 0x0
==18851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18851== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18851== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18851== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18851== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18851== by 0x8062D5B: main (nginx.c:385)
==18851== If you believe this happened as a result of a stack
==18851== overflow in your program's main thread (unlikely but
==18851== possible), you can try to increase the size of the
==18851== main thread stack using the --main-stacksize= flag.
==18851== The main thread stack size used in this run was 8388608.

106-timer.t TEST 11: coroutine API - status code ok got: ''
expected: '200'
106-timer.t TEST 11: coroutine API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 11: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:46 [alert] 18320\#0: worker process 18851 exited on signal 11" (req 1) 2020/10/27 04:56:46 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:46 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:46 [debug] 18320\#0: reap children
2020/10/27 04:56:46 [debug] 18320\#0: child: 0 18851 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:46 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:46 [notice] 18320\#0: start worker process 18852
'
106-timer.t TEST 7: 0 timer ==18863== Invalid read of size 4
==18863== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18863== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18863== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18863== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18863== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18863== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18863== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18863== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18863== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18863== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18863== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18863== by 0x8062D5B: main (nginx.c:385)
==18863== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18863==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 7: 0 timer ==18863==
==18863== Process terminating with default action of signal 11 (SIGSEGV)
==18863== Access not within mapped region at address 0x0
==18863== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18863== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18863== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18863== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18863== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18863== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18863== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18863== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18863== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18863== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18863== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18863== by 0x8062D5B: main (nginx.c:385)
==18863== If you believe this happened as a result of a stack
==18863== overflow in your program's main thread (unlikely but
==18863== possible), you can try to increase the size of the
==18863== main thread stack using the --main-stacksize= flag.
==18863== The main thread stack size used in this run was 8388608.

106-timer.t TEST 7: 0 timer - status code ok got: ''
expected: '200'
106-timer.t TEST 7: 0 timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 7: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:49 [alert] 18320\#0: worker process 18863 exited on signal 11" (req 0) 2020/10/27 04:56:49 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:49 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:49 [debug] 18320\#0: reap children
2020/10/27 04:56:49 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:49 [debug] 18320\#0: child: 1 18863 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:49 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:49 [notice] 18320\#0: start worker process 18884
2020/10/27 04:56:49 [debug] 18320\#0: sigsuspend
2020/10/27 04:56:49 [debug] 18884\#0: malloc: 05103398:12
'
106-timer.t TEST 7: 0 timer ==18884== Invalid read of size 4
==18884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18884== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18884== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18884== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18884== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18884== by 0x8062D5B: main (nginx.c:385)
==18884== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18884==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 7: 0 timer ==18884==
==18884== Process terminating with default action of signal 11 (SIGSEGV)
==18884== Access not within mapped region at address 0x0
==18884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18884== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18884== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18884== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18884== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18884== by 0x8062D5B: main (nginx.c:385)
==18884== If you believe this happened as a result of a stack
==18884== overflow in your program's main thread (unlikely but
==18884== possible), you can try to increase the size of the
==18884== main thread stack using the --main-stacksize= flag.
==18884== The main thread stack size used in this run was 8388608.

106-timer.t TEST 7: 0 timer - status code ok got: ''
expected: '200'
106-timer.t TEST 7: 0 timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 7: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:50 [alert] 18320\#0: worker process 18884 exited on signal 11" (req 1) 2020/10/27 04:56:50 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:50 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:50 [debug] 18320\#0: reap children
2020/10/27 04:56:50 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:50 [debug] 18320\#0: child: 1 18884 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:50 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:50 [notice] 18320\#0: start worker process 18885
2020/10/27 04:56:50 [debug] 18320\#0: sigsuspend
2020/10/27 04:56:50 [debug] 18885\#0: malloc: 05103398:12
'
106-timer.t TEST 15: ngx.exit(403) ==18896== Invalid read of size 4
==18896== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18896== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18896== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18896== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18896== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18896== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18896== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18896== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18896== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18896== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18896== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18896== by 0x8062D5B: main (nginx.c:385)
==18896== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18896==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 15: ngx.exit(403) ==18896==
==18896== Process terminating with default action of signal 11 (SIGSEGV)
==18896== Access not within mapped region at address 0x0
==18896== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18896== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18896== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18896== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18896== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18896== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18896== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18896== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18896== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18896== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18896== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18896== by 0x8062D5B: main (nginx.c:385)
==18896== If you believe this happened as a result of a stack
==18896== overflow in your program's main thread (unlikely but
==18896== possible), you can try to increase the size of the
==18896== main thread stack using the --main-stacksize= flag.
==18896== The main thread stack size used in this run was 8388608.

106-timer.t TEST 15: ngx.exit(403) - status code ok got: ''
expected: '200'
106-timer.t TEST 15: ngx.exit(403) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 15: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:53 [alert] 18320\#0: worker process 18896 exited on signal 11" (req 0) 2020/10/27 04:56:53 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:53 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:53 [debug] 18320\#0: reap children
2020/10/27 04:56:53 [debug] 18320\#0: child: 0 18896 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:53 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:53 [notice] 18320\#0: start worker process 18917
'
106-timer.t TEST 15: ngx.exit(403) ==18917== Invalid read of size 4
==18917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18917== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18917== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18917== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18917== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18917== by 0x8062D5B: main (nginx.c:385)
==18917== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18917==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 15: ngx.exit(403) ==18917==
==18917== Process terminating with default action of signal 11 (SIGSEGV)
==18917== Access not within mapped region at address 0x0
==18917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18917== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18917== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18917== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18917== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18917== by 0x8062D5B: main (nginx.c:385)
==18917== If you believe this happened as a result of a stack
==18917== overflow in your program's main thread (unlikely but
==18917== possible), you can try to increase the size of the
==18917== main thread stack using the --main-stacksize= flag.
==18917== The main thread stack size used in this run was 8388608.

106-timer.t TEST 15: ngx.exit(403) - status code ok got: ''
expected: '200'
106-timer.t TEST 15: ngx.exit(403) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 15: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:54 [alert] 18320\#0: worker process 18917 exited on signal 11" (req 1) 2020/10/27 04:56:54 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:54 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:54 [debug] 18320\#0: reap children
2020/10/27 04:56:54 [debug] 18320\#0: child: 0 18917 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:54 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:54 [notice] 18320\#0: start worker process 18918
'
106-timer.t TEST 13: shared dict ==18929== Invalid read of size 4
==18929== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18929== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18929== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18929== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18929== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18929== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18929== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18929== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18929== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18929== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18929== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18929== by 0x8062D5B: main (nginx.c:385)
==18929== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18929==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 13: shared dict ==18929==
==18929== Process terminating with default action of signal 11 (SIGSEGV)
==18929== Access not within mapped region at address 0x0
==18929== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18929== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18929== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18929== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18929== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18929== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18929== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18929== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18929== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18929== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18929== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18929== by 0x8062D5B: main (nginx.c:385)
==18929== If you believe this happened as a result of a stack
==18929== overflow in your program's main thread (unlikely but
==18929== possible), you can try to increase the size of the
==18929== main thread stack using the --main-stacksize= flag.
==18929== The main thread stack size used in this run was 8388608.

106-timer.t TEST 13: shared dict - status code ok got: ''
expected: '200'
106-timer.t TEST 13: shared dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 13: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:58 [alert] 18320\#0: worker process 18929 exited on signal 11" (req 0) 2020/10/27 04:56:58 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:58 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:58 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:58 [debug] 18320\#0: reap children
2020/10/27 04:56:58 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:58 [debug] 18320\#0: child: 1 18929 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:58 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:58 [notice] 18320\#0: start worker process 18950
'
106-timer.t TEST 13: shared dict ==18950== Invalid read of size 4
==18950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18950== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18950== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18950== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18950== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18950== by 0x8062D5B: main (nginx.c:385)
==18950== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18950==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 13: shared dict ==18950==
==18950== Process terminating with default action of signal 11 (SIGSEGV)
==18950== Access not within mapped region at address 0x0
==18950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18950== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18950== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18950== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18950== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18950== by 0x8062D5B: main (nginx.c:385)
==18950== If you believe this happened as a result of a stack
==18950== overflow in your program's main thread (unlikely but
==18950== possible), you can try to increase the size of the
==18950== main thread stack using the --main-stacksize= flag.
==18950== The main thread stack size used in this run was 8388608.

106-timer.t TEST 13: shared dict - status code ok got: ''
expected: '200'
106-timer.t TEST 13: shared dict - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 13: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:56:58 [alert] 18320\#0: worker process 18950 exited on signal 11" (req 1) 2020/10/27 04:56:58 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:58 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:56:58 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:56:58 [debug] 18320\#0: reap children
2020/10/27 04:56:58 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:56:58 [debug] 18320\#0: child: 1 18950 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:56:58 [debug] 18320\#0: channel 3:4
2020/10/27 04:56:58 [notice] 18320\#0: start worker process 18951
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) ==18962== Invalid read of size 4
==18962== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18962== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18962== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18962== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18962== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18962== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18962== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18962== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18962== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18962== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18962== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18962== by 0x8062D5B: main (nginx.c:385)
==18962== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18962==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) ==18962==
==18962== Process terminating with default action of signal 11 (SIGSEGV)
==18962== Access not within mapped region at address 0x0
==18962== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18962== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18962== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18962== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18962== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18962== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18962== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18962== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18962== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18962== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18962== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18962== by 0x8062D5B: main (nginx.c:385)
==18962== If you believe this happened as a result of a stack
==18962== overflow in your program's main thread (unlikely but
==18962== possible), you can try to increase the size of the
==18962== main thread stack using the --main-stacksize= flag.
==18962== The main thread stack size used in this run was 8388608.

106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:02 [alert] 18320\#0: worker process 18962 exited on signal 11" (req 0) 2020/10/27 04:57:02 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:02 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:02 [debug] 18320\#0: reap children
2020/10/27 04:57:02 [debug] 18320\#0: child: 0 18962 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:02 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:02 [notice] 18320\#0: start worker process 18983
2020/10/27 04:57:02 [debug] 18320\#0: sigsuspend
2020/10/27 04:57:02 [debug] 18983\#0: malloc: 05B41EE0:12
2020/10/27 04:57:02 [debug] 18983\#0: malloc: 053CE0F8:8
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) ==18983== Invalid read of size 4
==18983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18983== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18983== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18983== by 0x8062D5B: main (nginx.c:385)
==18983== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18983==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) ==18983==
==18983== Process terminating with default action of signal 11 (SIGSEGV)
==18983== Access not within mapped region at address 0x0
==18983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18983== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==18983== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==18983== by 0x8062D5B: main (nginx.c:385)
==18983== If you believe this happened as a result of a stack
==18983== overflow in your program's main thread (unlikely but
==18983== possible), you can try to increase the size of the
==18983== main thread stack using the --main-stacksize= flag.
==18983== The main thread stack size used in this run was 8388608.

106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:03 [alert] 18320\#0: worker process 18983 exited on signal 11" (req 1) 2020/10/27 04:57:03 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:03 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:03 [debug] 18320\#0: reap children
2020/10/27 04:57:03 [debug] 18320\#0: child: 0 18983 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:03 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:03 [notice] 18320\#0: start worker process 18984
2020/10/27 04:57:03 [debug] 18320\#0: sigsuspend
2020/10/27 04:57:03 [debug] 18984\#0: malloc: 05B41EE0:12
2020/10/27 04:57:03 [debug] 18984\#0: malloc: 053CE0F8:8
'
106-timer.t TEST 17: chained timers (0 delay) ==18995== Invalid read of size 4
==18995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18995== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18995== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18995== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18995== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18995== by 0x8062D5B: main (nginx.c:385)
==18995== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18995==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 17: chained timers (0 delay) ==18995==
==18995== Process terminating with default action of signal 11 (SIGSEGV)
==18995== Access not within mapped region at address 0x0
==18995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==18995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==18995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==18995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==18995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==18995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==18995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==18995== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==18995== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==18995== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==18995== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==18995== by 0x8062D5B: main (nginx.c:385)
==18995== If you believe this happened as a result of a stack
==18995== overflow in your program's main thread (unlikely but
==18995== possible), you can try to increase the size of the
==18995== main thread stack using the --main-stacksize= flag.
==18995== The main thread stack size used in this run was 8388608.

106-timer.t TEST 17: chained timers (0 delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 17: chained timers (0 delay) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 17: chained timers (0 delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:06 [alert] 18320\#0: worker process 18995 exited on signal 11" (req 0) 2020/10/27 04:57:06 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:06 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:06 [debug] 18320\#0: reap children
2020/10/27 04:57:06 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:06 [debug] 18320\#0: child: 1 18995 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:06 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:06 [notice] 18320\#0: start worker process 19016
'
106-timer.t TEST 17: chained timers (0 delay) ==19016== Invalid read of size 4
==19016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19016== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19016== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19016== by 0x8062D5B: main (nginx.c:385)
==19016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 17: chained timers (0 delay) ==19016==
==19016== Process terminating with default action of signal 11 (SIGSEGV)
==19016== Access not within mapped region at address 0x0
==19016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19016== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19016== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19016== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19016== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19016== by 0x8062D5B: main (nginx.c:385)
==19016== If you believe this happened as a result of a stack
==19016== overflow in your program's main thread (unlikely but
==19016== possible), you can try to increase the size of the
==19016== main thread stack using the --main-stacksize= flag.
==19016== The main thread stack size used in this run was 8388608.

106-timer.t TEST 17: chained timers (0 delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 17: chained timers (0 delay) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 17: chained timers (0 delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:07 [alert] 18320\#0: worker process 19016 exited on signal 11" (req 1) 2020/10/27 04:57:07 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:07 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:07 [debug] 18320\#0: reap children
2020/10/27 04:57:07 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:07 [debug] 18320\#0: child: 1 19016 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:07 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:07 [notice] 18320\#0: start worker process 19017
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) ==19028== Invalid read of size 4
==19028== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19028== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19028== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19028== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19028== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19028== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19028== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19028== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19028== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19028== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19028== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19028== by 0x8062D5B: main (nginx.c:385)
==19028== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19028==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) ==19028==
==19028== Process terminating with default action of signal 11 (SIGSEGV)
==19028== Access not within mapped region at address 0x0
==19028== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19028== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19028== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19028== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19028== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19028== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19028== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19028== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19028== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19028== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19028== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19028== by 0x8062D5B: main (nginx.c:385)
==19028== If you believe this happened as a result of a stack
==19028== overflow in your program's main thread (unlikely but
==19028== possible), you can try to increase the size of the
==19028== main thread stack using the --main-stacksize= flag.
==19028== The main thread stack size used in this run was 8388608.

106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:10 [alert] 18320\#0: worker process 19028 exited on signal 11" (req 0) 2020/10/27 04:57:10 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:10 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:10 [debug] 18320\#0: reap children
2020/10/27 04:57:10 [debug] 18320\#0: child: 0 19028 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:10 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:10 [notice] 18320\#0: start worker process 19049
2020/10/27 04:57:10 [debug] 18320\#0: sigsuspend
2020/10/27 04:57:10 [debug] 19049\#0: malloc: 05AF4C48:12
2020/10/27 04:57:10 [debug] 19049\#0: malloc: 04970860:8
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) ==19049== Invalid read of size 4
==19049== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19049== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19049== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19049== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19049== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19049== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19049== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19049== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19049== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19049== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19049== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19049== by 0x8062D5B: main (nginx.c:385)
==19049== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19049==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) ==19049==
==19049== Process terminating with default action of signal 11 (SIGSEGV)
==19049== Access not within mapped region at address 0x0
==19049== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19049== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19049== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19049== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19049== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19049== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19049== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19049== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19049== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19049== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19049== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19049== by 0x8062D5B: main (nginx.c:385)
==19049== If you believe this happened as a result of a stack
==19049== overflow in your program's main thread (unlikely but
==19049== possible), you can try to increase the size of the
==19049== main thread stack using the --main-stacksize= flag.
==19049== The main thread stack size used in this run was 8388608.

106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:11 [alert] 18320\#0: worker process 19049 exited on signal 11" (req 1) 2020/10/27 04:57:11 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:11 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:11 [debug] 18320\#0: reap children
2020/10/27 04:57:11 [debug] 18320\#0: child: 0 19049 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:11 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:11 [notice] 18320\#0: start worker process 19050
2020/10/27 04:57:11 [debug] 18320\#0: sigsuspend
2020/10/27 04:57:11 [debug] 19050\#0: malloc: 05AF4C48:12
2020/10/27 04:57:11 [debug] 19050\#0: malloc: 04970860:8
'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) ==19061== Invalid read of size 4
==19061== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19061== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19061== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19061== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19061== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19061== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19061== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19061== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19061== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19061== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19061== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19061== by 0x8062D5B: main (nginx.c:385)
==19061== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19061==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 32: log function location when failed to run a timer (lua file) ==19061==
==19061== Process terminating with default action of signal 11 (SIGSEGV)
==19061== Access not within mapped region at address 0x0
==19061== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19061== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19061== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19061== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19061== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19061== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19061== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19061== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19061== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19061== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19061== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19061== by 0x8062D5B: main (nginx.c:385)
==19061== If you believe this happened as a result of a stack
==19061== overflow in your program's main thread (unlikely but
==19061== possible), you can try to increase the size of the
==19061== main thread stack using the --main-stacksize= flag.
==19061== The main thread stack size used in this run was 8388608.

106-timer.t TEST 32: log function location when failed to run a timer (lua file) - status code ok got: ''
expected: '200'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) ==19082== Invalid read of size 4
==19082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19082== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19082== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19082== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19082== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19082== by 0x8062D5B: main (nginx.c:385)
==19082== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19082==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 32: log function location when failed to run a timer (lua file) ==19082==
==19082== Process terminating with default action of signal 11 (SIGSEGV)
==19082== Access not within mapped region at address 0x0
==19082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19082== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19082== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19082== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19082== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19082== by 0x8062D5B: main (nginx.c:385)
==19082== If you believe this happened as a result of a stack
==19082== overflow in your program's main thread (unlikely but
==19082== possible), you can try to increase the size of the
==19082== main thread stack using the --main-stacksize= flag.
==19082== The main thread stack size used in this run was 8388608.

106-timer.t TEST 32: log function location when failed to run a timer (lua file) - status code ok got: ''
expected: '200'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 28: use of ngx.ctx ==19095== Invalid read of size 4
==19095== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19095== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19095== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19095== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19095== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19095== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19095== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19095== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19095== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19095== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19095== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19095== by 0x8062D5B: main (nginx.c:385)
==19095== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19095==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 28: use of ngx.ctx ==19095==
==19095== Process terminating with default action of signal 11 (SIGSEGV)
==19095== Access not within mapped region at address 0x0
==19095== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19095== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19095== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19095== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19095== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19095== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19095== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19095== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19095== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19095== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19095== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19095== by 0x8062D5B: main (nginx.c:385)
==19095== If you believe this happened as a result of a stack
==19095== overflow in your program's main thread (unlikely but
==19095== possible), you can try to increase the size of the
==19095== main thread stack using the --main-stacksize= flag.
==19095== The main thread stack size used in this run was 8388608.

106-timer.t TEST 28: use of ngx.ctx - status code ok got: ''
expected: '200'
106-timer.t TEST 28: use of ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 28: use of ngx.ctx - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:19 [alert] 18320\#0: worker process 19095 exited on signal 11" (req 0) 2020/10/27 04:57:19 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:19 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:19 [debug] 18320\#0: reap children
2020/10/27 04:57:19 [debug] 18320\#0: child: 0 19095 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:19 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:19 [notice] 18320\#0: start worker process 19116
'
106-timer.t TEST 28: use of ngx.ctx ==19116== Invalid read of size 4
==19116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19116== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19116== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19116== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19116== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19116== by 0x8062D5B: main (nginx.c:385)
==19116== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19116==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 28: use of ngx.ctx ==19116==
==19116== Process terminating with default action of signal 11 (SIGSEGV)
==19116== Access not within mapped region at address 0x0
==19116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19116== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19116== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19116== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19116== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19116== by 0x8062D5B: main (nginx.c:385)
==19116== If you believe this happened as a result of a stack
==19116== overflow in your program's main thread (unlikely but
==19116== possible), you can try to increase the size of the
==19116== main thread stack using the --main-stacksize= flag.
==19116== The main thread stack size used in this run was 8388608.

106-timer.t TEST 28: use of ngx.ctx - status code ok got: ''
expected: '200'
106-timer.t TEST 28: use of ngx.ctx - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 28: use of ngx.ctx - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:20 [alert] 18320\#0: worker process 19116 exited on signal 11" (req 1) 2020/10/27 04:57:20 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:20 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:20 [debug] 18320\#0: reap children
2020/10/27 04:57:20 [debug] 18320\#0: child: 0 19116 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:20 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:20 [notice] 18320\#0: start worker process 19117
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) ==19128== Invalid read of size 4
==19128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19128== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19128== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19128== by 0x8062D5B: main (nginx.c:385)
==19128== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19128==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) ==19128==
==19128== Process terminating with default action of signal 11 (SIGSEGV)
==19128== Access not within mapped region at address 0x0
==19128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19128== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19128== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19128== by 0x8062D5B: main (nginx.c:385)
==19128== If you believe this happened as a result of a stack
==19128== overflow in your program's main thread (unlikely but
==19128== possible), you can try to increase the size of the
==19128== main thread stack using the --main-stacksize= flag.
==19128== The main thread stack size used in this run was 8388608.

106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:23 [alert] 18320\#0: worker process 19128 exited on signal 11" (req 0) 2020/10/27 04:57:23 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:23 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:23 [debug] 18320\#0: reap children
2020/10/27 04:57:23 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:23 [debug] 18320\#0: child: 1 19128 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:23 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:23 [notice] 18320\#0: start worker process 19149
2020/10/27 04:57:23 [debug] 18320\#0: sigsuspend
2020/10/27 04:57:23 [debug] 19149\#0: malloc: 049B9540:12
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) ==19149== Invalid read of size 4
==19149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19149== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19149== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19149== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19149== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19149== by 0x8062D5B: main (nginx.c:385)
==19149== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19149==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) ==19149==
==19149== Process terminating with default action of signal 11 (SIGSEGV)
==19149== Access not within mapped region at address 0x0
==19149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19149== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19149== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19149== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19149== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19149== by 0x8062D5B: main (nginx.c:385)
==19149== If you believe this happened as a result of a stack
==19149== overflow in your program's main thread (unlikely but
==19149== possible), you can try to increase the size of the
==19149== main thread stack using the --main-stacksize= flag.
==19149== The main thread stack size used in this run was 8388608.

106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:24 [alert] 18320\#0: worker process 19149 exited on signal 11" (req 1) 2020/10/27 04:57:24 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:24 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:24 [debug] 18320\#0: reap children
2020/10/27 04:57:24 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:24 [debug] 18320\#0: child: 1 19149 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:24 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:24 [notice] 18320\#0: start worker process 19150
2020/10/27 04:57:24 [debug] 18320\#0: sigsuspend
2020/10/27 04:57:24 [debug] 19150\#0: malloc: 049B9540:12
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 ==19162== Invalid read of size 4
==19162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19162== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19162== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19162== by 0x8062D5B: main (nginx.c:385)
==19162== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19162==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 ==19162==
==19162== Process terminating with default action of signal 11 (SIGSEGV)
==19162== Access not within mapped region at address 0x0
==19162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19162== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19162== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19162== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19162== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19162== by 0x8062D5B: main (nginx.c:385)
==19162== If you believe this happened as a result of a stack
==19162== overflow in your program's main thread (unlikely but
==19162== possible), you can try to increase the size of the
==19162== main thread stack using the --main-stacksize= flag.
==19162== The main thread stack size used in this run was 8388608.

106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - status code ok got: ''
expected: '200'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:27 [alert] 18320\#0: worker process 19162 exited on signal 11" (req 0) 2020/10/27 04:57:27 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:27 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:27 [debug] 18320\#0: reap children
2020/10/27 04:57:27 [debug] 18320\#0: child: 0 19162 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:27 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:27 [notice] 18320\#0: start worker process 19183
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 ==19183== Invalid read of size 4
==19183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19183== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19183== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19183== by 0x8062D5B: main (nginx.c:385)
==19183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 ==19183==
==19183== Process terminating with default action of signal 11 (SIGSEGV)
==19183== Access not within mapped region at address 0x0
==19183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19183== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19183== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19183== by 0x8062D5B: main (nginx.c:385)
==19183== If you believe this happened as a result of a stack
==19183== overflow in your program's main thread (unlikely but
==19183== possible), you can try to increase the size of the
==19183== main thread stack using the --main-stacksize= flag.
==19183== The main thread stack size used in this run was 8388608.

106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - status code ok got: ''
expected: '200'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:28 [alert] 18320\#0: worker process 19183 exited on signal 11" (req 1) 2020/10/27 04:57:28 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:28 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:28 [debug] 18320\#0: reap children
2020/10/27 04:57:28 [debug] 18320\#0: child: 0 19183 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:28 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:28 [notice] 18320\#0: start worker process 19184
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding ==19195== Invalid read of size 4
==19195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19195== by 0x8062D5B: main (nginx.c:385)
==19195== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19195==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding ==19195==
==19195== Process terminating with default action of signal 11 (SIGSEGV)
==19195== Access not within mapped region at address 0x0
==19195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19195== by 0x8062D5B: main (nginx.c:385)
==19195== If you believe this happened as a result of a stack
==19195== overflow in your program's main thread (unlikely but
==19195== possible), you can try to increase the size of the
==19195== main thread stack using the --main-stacksize= flag.
==19195== The main thread stack size used in this run was 8388608.

106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:32 [alert] 18320\#0: worker process 19195 exited on signal 11" (req 0) 2020/10/27 04:57:32 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:32 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:32 [debug] 18320\#0: reap children
2020/10/27 04:57:32 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:32 [debug] 18320\#0: child: 1 19195 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:32 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:32 [notice] 18320\#0: start worker process 19216
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding ==19216== Invalid read of size 4
==19216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19216== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19216== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19216== by 0x8062D5B: main (nginx.c:385)
==19216== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19216==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding ==19216==
==19216== Process terminating with default action of signal 11 (SIGSEGV)
==19216== Access not within mapped region at address 0x0
==19216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19216== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19216== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19216== by 0x8062D5B: main (nginx.c:385)
==19216== If you believe this happened as a result of a stack
==19216== overflow in your program's main thread (unlikely but
==19216== possible), you can try to increase the size of the
==19216== main thread stack using the --main-stacksize= flag.
==19216== The main thread stack size used in this run was 8388608.

106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:32 [alert] 18320\#0: worker process 19216 exited on signal 11" (req 1) 2020/10/27 04:57:32 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:32 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:32 [debug] 18320\#0: reap children
2020/10/27 04:57:32 [debug] 18320\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:32 [debug] 18320\#0: child: 1 19216 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:32 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:32 [notice] 18320\#0: start worker process 19217
'
106-timer.t TEST 12: ngx.thread API ==19228== Invalid read of size 4
==19228== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19228== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19228== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19228== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19228== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19228== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19228== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19228== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19228== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19228== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19228== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19228== by 0x8062D5B: main (nginx.c:385)
==19228== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19228==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 12: ngx.thread API ==19228==
==19228== Process terminating with default action of signal 11 (SIGSEGV)
==19228== Access not within mapped region at address 0x0
==19228== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19228== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19228== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19228== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19228== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19228== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19228== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19228== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19228== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19228== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19228== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19228== by 0x8062D5B: main (nginx.c:385)
==19228== If you believe this happened as a result of a stack
==19228== overflow in your program's main thread (unlikely but
==19228== possible), you can try to increase the size of the
==19228== main thread stack using the --main-stacksize= flag.
==19228== The main thread stack size used in this run was 8388608.

106-timer.t TEST 12: ngx.thread API - status code ok got: ''
expected: '200'
106-timer.t TEST 12: ngx.thread API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 12: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:36 [alert] 18320\#0: worker process 19228 exited on signal 11" (req 0) 2020/10/27 04:57:36 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:36 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:36 [debug] 18320\#0: reap children
2020/10/27 04:57:36 [debug] 18320\#0: child: 0 19228 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:36 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:36 [notice] 18320\#0: start worker process 19249
'
106-timer.t TEST 12: ngx.thread API ==19249== Invalid read of size 4
==19249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19249== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19249== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19249== by 0x8062D5B: main (nginx.c:385)
==19249== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19249==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 12: ngx.thread API ==19249==
==19249== Process terminating with default action of signal 11 (SIGSEGV)
==19249== Access not within mapped region at address 0x0
==19249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19249== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19249== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19249== by 0x8062D5B: main (nginx.c:385)
==19249== If you believe this happened as a result of a stack
==19249== overflow in your program's main thread (unlikely but
==19249== possible), you can try to increase the size of the
==19249== main thread stack using the --main-stacksize= flag.
==19249== The main thread stack size used in this run was 8388608.

106-timer.t TEST 12: ngx.thread API - status code ok got: ''
expected: '200'
106-timer.t TEST 12: ngx.thread API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 12: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:37 [alert] 18320\#0: worker process 19249 exited on signal 11" (req 1) 2020/10/27 04:57:37 [debug] 18320\#0: shmtx forced unlock
2020/10/27 04:57:37 [debug] 18320\#0: wake up, sigio 0
2020/10/27 04:57:37 [debug] 18320\#0: reap children
2020/10/27 04:57:37 [debug] 18320\#0: child: 0 19249 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:37 [debug] 18320\#0: channel 3:4
2020/10/27 04:57:37 [notice] 18320\#0: start worker process 19250
'
106-timer.t TEST 30: log function location when failed to run a timer ==19261== Invalid read of size 4
==19261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19261== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19261== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19261== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19261== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19261== by 0x8062D5B: main (nginx.c:385)
==19261== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19261==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 30: log function location when failed to run a timer ==19261==
==19261== Process terminating with default action of signal 11 (SIGSEGV)
==19261== Access not within mapped region at address 0x0
==19261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19261== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19261== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19261== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19261== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19261== by 0x8062D5B: main (nginx.c:385)
==19261== If you believe this happened as a result of a stack
==19261== overflow in your program's main thread (unlikely but
==19261== possible), you can try to increase the size of the
==19261== main thread stack using the --main-stacksize= flag.
==19261== The main thread stack size used in this run was 8388608.

106-timer.t TEST 30: log function location when failed to run a timer - status code ok got: ''
expected: '200'
106-timer.t TEST 30: log function location when failed to run a timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 30: log function location when failed to run a timer ==19282== Invalid read of size 4
==19282== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19282== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19282== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19282== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19282== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19282== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19282== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19282== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19282== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19282== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19282== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19282== by 0x8062D5B: main (nginx.c:385)
==19282== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19282==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
106-timer.t TEST 30: log function location when failed to run a timer ==19282==
==19282== Process terminating with default action of signal 11 (SIGSEGV)
==19282== Access not within mapped region at address 0x0
==19282== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19282== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19282== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19282== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19282== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19282== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19282== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19282== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19282== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19282== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19282== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19282== by 0x8062D5B: main (nginx.c:385)
==19282== If you believe this happened as a result of a stack
==19282== overflow in your program's main thread (unlikely but
==19282== possible), you can try to increase the size of the
==19282== main thread stack using the --main-stacksize= flag.
==19282== The main thread stack size used in this run was 8388608.

106-timer.t TEST 30: log function location when failed to run a timer - status code ok got: ''
expected: '200'
106-timer.t TEST 30: log function location when failed to run a timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
107-timer-errors.t TEST 5: ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==19291== Invalid read of size 4
==19291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19291== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19291== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19291== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19291== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19291== by 0x8062D5B: main (nginx.c:385)
==19291== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19291==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 5: ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==19291==
==19291== Process terminating with default action of signal 11 (SIGSEGV)
==19291== Access not within mapped region at address 0x0
==19291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19291== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19291== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19291== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19291== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19291== by 0x8062D5B: main (nginx.c:385)
==19291== If you believe this happened as a result of a stack
==19291== overflow in your program's main thread (unlikely but
==19291== possible), you can try to increase the size of the
==19291== main thread stack using the --main-stacksize= flag.
==19291== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 5: ngx.eof - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 5: ngx.eof - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 5: ngx.eof - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.eof - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.eof - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.eof - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:46 [alert] 19290\#0: worker process 19291 exited on signal 11" (req 0) 2020/10/27 04:57:46 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:46 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:46 [debug] 19290\#0: reap children
2020/10/27 04:57:46 [debug] 19290\#0: child: 0 19291 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:46 [debug] 19290\#0: channel 3:9
2020/10/27 04:57:46 [notice] 19290\#0: start worker process 19292
2020/10/27 04:57:46 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:46 [debug] 19292\#0: malloc: 04D03E10:12
2020/10/27 04:57:46 [debug] 19292\#0: malloc: 04D03E50:8
'
107-timer-errors.t TEST 5: ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==19292== Invalid read of size 4
==19292== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19292== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19292== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19292== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19292== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19292== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19292== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19292== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19292== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19292== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19292== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19292== by 0x8062D5B: main (nginx.c:385)
==19292== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19292==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 5: ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==19292==
==19292== Process terminating with default action of signal 11 (SIGSEGV)
==19292== Access not within mapped region at address 0x0
==19292== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19292== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19292== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19292== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19292== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19292== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19292== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19292== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19292== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19292== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19292== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19292== by 0x8062D5B: main (nginx.c:385)
==19292== If you believe this happened as a result of a stack
==19292== overflow in your program's main thread (unlikely but
==19292== possible), you can try to increase the size of the
==19292== main thread stack using the --main-stacksize= flag.
==19292== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 5: ngx.eof - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 5: ngx.eof - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 5: ngx.eof - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.eof - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.eof - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.eof - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:46 [alert] 19290\#0: worker process 19292 exited on signal 11" (req 1) 2020/10/27 04:57:46 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:46 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:46 [debug] 19290\#0: reap children
2020/10/27 04:57:46 [debug] 19290\#0: child: 0 19292 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:46 [debug] 19290\#0: channel 3:9
2020/10/27 04:57:46 [notice] 19290\#0: start worker process 19293
2020/10/27 04:57:46 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:46 [debug] 19293\#0: malloc: 04D03E10:12
2020/10/27 04:57:46 [debug] 19293\#0: malloc: 04D03E50:8
'
107-timer-errors.t TEST 3: ngx.flush() ==19304== Invalid read of size 4
==19304== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19304== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19304== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19304== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19304== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19304== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19304== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19304== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19304== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19304== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19304== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19304== by 0x8062D5B: main (nginx.c:385)
==19304== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19304==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 3: ngx.flush() ==19304==
==19304== Process terminating with default action of signal 11 (SIGSEGV)
==19304== Access not within mapped region at address 0x0
==19304== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19304== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19304== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19304== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19304== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19304== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19304== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19304== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19304== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19304== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19304== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19304== by 0x8062D5B: main (nginx.c:385)
==19304== If you believe this happened as a result of a stack
==19304== overflow in your program's main thread (unlikely but
==19304== possible), you can try to increase the size of the
==19304== main thread stack using the --main-stacksize= flag.
==19304== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 3: ngx.flush() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 3: ngx.flush() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 3: ngx.flush() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: ngx.flush() - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: ngx.flush() - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: ngx.flush() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:49 [alert] 19290\#0: worker process 19304 exited on signal 11" (req 0) 2020/10/27 04:57:49 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:49 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:49 [debug] 19290\#0: reap children
2020/10/27 04:57:49 [debug] 19290\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:49 [debug] 19290\#0: child: 1 19304 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:49 [debug] 19290\#0: channel 3:4
2020/10/27 04:57:49 [notice] 19290\#0: start worker process 19325
2020/10/27 04:57:49 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:49 [debug] 19325\#0: malloc: 05048FF0:12
'
107-timer-errors.t TEST 3: ngx.flush() ==19325== Invalid read of size 4
==19325== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19325== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19325== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19325== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19325== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19325== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19325== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19325== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19325== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19325== by 0x8062D5B: main (nginx.c:385)
==19325== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19325==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 3: ngx.flush() ==19325==
==19325== Process terminating with default action of signal 11 (SIGSEGV)
==19325== Access not within mapped region at address 0x0
==19325== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19325== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19325== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19325== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19325== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19325== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19325== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19325== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19325== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19325== by 0x8062D5B: main (nginx.c:385)
==19325== If you believe this happened as a result of a stack
==19325== overflow in your program's main thread (unlikely but
==19325== possible), you can try to increase the size of the
==19325== main thread stack using the --main-stacksize= flag.
==19325== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 3: ngx.flush() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 3: ngx.flush() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 3: ngx.flush() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:50 [alert] 19290\#0: worker process 19325 exited on signal 11" (req 1) 2020/10/27 04:57:50 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:50 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:50 [debug] 19290\#0: reap children
2020/10/27 04:57:50 [debug] 19290\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:50 [debug] 19290\#0: child: 1 19325 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:50 [debug] 19290\#0: channel 3:4
2020/10/27 04:57:50 [notice] 19290\#0: start worker process 19326
2020/10/27 04:57:50 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:50 [debug] 19326\#0: malloc: 05048FF0:12
'
107-timer-errors.t TEST 2: ngx.print() ==19337== Invalid read of size 4
==19337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19337== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19337== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19337== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19337== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19337== by 0x8062D5B: main (nginx.c:385)
==19337== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19337==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 2: ngx.print() ==19337==
==19337== Process terminating with default action of signal 11 (SIGSEGV)
==19337== Access not within mapped region at address 0x0
==19337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19337== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19337== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19337== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19337== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19337== by 0x8062D5B: main (nginx.c:385)
==19337== If you believe this happened as a result of a stack
==19337== overflow in your program's main thread (unlikely but
==19337== possible), you can try to increase the size of the
==19337== main thread stack using the --main-stacksize= flag.
==19337== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 2: ngx.print() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 2: ngx.print() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 2: ngx.print() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: ngx.print() - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: ngx.print() - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: ngx.print() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:53 [alert] 19290\#0: worker process 19337 exited on signal 11" (req 0) 2020/10/27 04:57:53 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:53 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:53 [debug] 19290\#0: reap children
2020/10/27 04:57:53 [debug] 19290\#0: child: 0 19337 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:53 [debug] 19290\#0: channel 3:4
2020/10/27 04:57:53 [notice] 19290\#0: start worker process 19358
2020/10/27 04:57:53 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:53 [debug] 19358\#0: malloc: 0538DF68:12
2020/10/27 04:57:53 [debug] 19358\#0: malloc: 0538DFA8:8
'
107-timer-errors.t TEST 2: ngx.print() ==19358== Invalid read of size 4
==19358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19358== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19358== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19358== by 0x8062D5B: main (nginx.c:385)
==19358== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19358==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 2: ngx.print() ==19358==
==19358== Process terminating with default action of signal 11 (SIGSEGV)
==19358== Access not within mapped region at address 0x0
==19358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19358== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19358== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19358== by 0x8062D5B: main (nginx.c:385)
==19358== If you believe this happened as a result of a stack
==19358== overflow in your program's main thread (unlikely but
==19358== possible), you can try to increase the size of the
==19358== main thread stack using the --main-stacksize= flag.
==19358== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 2: ngx.print() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 2: ngx.print() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 2: ngx.print() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: ngx.print() - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: ngx.print() - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: ngx.print() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:54 [alert] 19290\#0: worker process 19358 exited on signal 11" (req 1) 2020/10/27 04:57:54 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:54 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:54 [debug] 19290\#0: reap children
2020/10/27 04:57:54 [debug] 19290\#0: child: 0 19358 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:54 [debug] 19290\#0: channel 3:4
2020/10/27 04:57:54 [notice] 19290\#0: start worker process 19359
2020/10/27 04:57:54 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:54 [debug] 19359\#0: malloc: 0538DF68:12
2020/10/27 04:57:54 [debug] 19359\#0: malloc: 0538DFA8:8
'
107-timer-errors.t TEST 1: ngx.say() ==19370== Invalid read of size 4
==19370== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19370== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19370== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19370== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19370== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19370== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19370== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19370== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19370== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19370== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19370== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19370== by 0x8062D5B: main (nginx.c:385)
==19370== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19370==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 1: ngx.say() ==19370==
==19370== Process terminating with default action of signal 11 (SIGSEGV)
==19370== Access not within mapped region at address 0x0
==19370== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19370== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19370== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19370== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19370== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19370== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19370== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19370== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19370== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19370== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19370== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19370== by 0x8062D5B: main (nginx.c:385)
==19370== If you believe this happened as a result of a stack
==19370== overflow in your program's main thread (unlikely but
==19370== possible), you can try to increase the size of the
==19370== main thread stack using the --main-stacksize= flag.
==19370== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 1: ngx.say() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 1: ngx.say() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 1: ngx.say() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: ngx.say() - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: ngx.say() - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: ngx.say() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:57 [alert] 19290\#0: worker process 19370 exited on signal 11" (req 0) 2020/10/27 04:57:57 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:57 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:57 [debug] 19290\#0: reap children
2020/10/27 04:57:57 [debug] 19290\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:57 [debug] 19290\#0: child: 1 19370 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:57 [debug] 19290\#0: channel 3:4
2020/10/27 04:57:57 [notice] 19290\#0: start worker process 19391
2020/10/27 04:57:57 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:57 [debug] 19391\#0: malloc: 05563980:12
'
107-timer-errors.t TEST 1: ngx.say() ==19391== Invalid read of size 4
==19391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19391== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19391== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19391== by 0x8062D5B: main (nginx.c:385)
==19391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 1: ngx.say() ==19391==
==19391== Process terminating with default action of signal 11 (SIGSEGV)
==19391== Access not within mapped region at address 0x0
==19391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19391== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19391== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19391== by 0x8062D5B: main (nginx.c:385)
==19391== If you believe this happened as a result of a stack
==19391== overflow in your program's main thread (unlikely but
==19391== possible), you can try to increase the size of the
==19391== main thread stack using the --main-stacksize= flag.
==19391== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 1: ngx.say() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 1: ngx.say() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 1: ngx.say() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: ngx.say() - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: ngx.say() - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: ngx.say() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:57 [alert] 19290\#0: worker process 19391 exited on signal 11" (req 1) 2020/10/27 04:57:57 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:57:57 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:57:57 [debug] 19290\#0: reap children
2020/10/27 04:57:57 [debug] 19290\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:57 [debug] 19290\#0: child: 1 19391 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:57 [debug] 19290\#0: channel 3:4
2020/10/27 04:57:57 [notice] 19290\#0: start worker process 19392
2020/10/27 04:57:57 [debug] 19290\#0: sigsuspend
2020/10/27 04:57:57 [debug] 19392\#0: malloc: 05563980:12
'
107-timer-errors.t TEST 6: ngx.req.socket ==19403== Invalid read of size 4
==19403== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19403== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19403== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19403== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19403== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19403== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19403== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19403== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19403== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19403== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19403== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19403== by 0x8062D5B: main (nginx.c:385)
==19403== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19403==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 6: ngx.req.socket ==19403==
==19403== Process terminating with default action of signal 11 (SIGSEGV)
==19403== Access not within mapped region at address 0x0
==19403== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19403== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19403== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19403== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19403== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19403== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19403== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19403== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19403== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19403== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19403== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19403== by 0x8062D5B: main (nginx.c:385)
==19403== If you believe this happened as a result of a stack
==19403== overflow in your program's main thread (unlikely but
==19403== possible), you can try to increase the size of the
==19403== main thread stack using the --main-stacksize= flag.
==19403== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 6: ngx.req.socket - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 6: ngx.req.socket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 6: ngx.req.socket - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:00 [alert] 19290\#0: worker process 19403 exited on signal 11" (req 0) 2020/10/27 04:58:00 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:58:00 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:58:00 [debug] 19290\#0: reap children
2020/10/27 04:58:00 [debug] 19290\#0: child: 0 19403 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:00 [debug] 19290\#0: channel 3:4
2020/10/27 04:58:00 [notice] 19290\#0: start worker process 19424
2020/10/27 04:58:00 [debug] 19290\#0: sigsuspend
2020/10/27 04:58:00 [debug] 19424\#0: malloc: 05968470:12
2020/10/27 04:58:00 [debug] 19424\#0: malloc: 059684B0:8
'
107-timer-errors.t TEST 6: ngx.req.socket ==19424== Invalid read of size 4
==19424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19424== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19424== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19424== by 0x8062D5B: main (nginx.c:385)
==19424== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19424==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 6: ngx.req.socket ==19424==
==19424== Process terminating with default action of signal 11 (SIGSEGV)
==19424== Access not within mapped region at address 0x0
==19424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19424== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19424== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19424== by 0x8062D5B: main (nginx.c:385)
==19424== If you believe this happened as a result of a stack
==19424== overflow in your program's main thread (unlikely but
==19424== possible), you can try to increase the size of the
==19424== main thread stack using the --main-stacksize= flag.
==19424== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 6: ngx.req.socket - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 6: ngx.req.socket - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 6: ngx.req.socket - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:01 [alert] 19290\#0: worker process 19424 exited on signal 11" (req 1) 2020/10/27 04:58:01 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:58:01 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:58:01 [debug] 19290\#0: reap children
2020/10/27 04:58:01 [debug] 19290\#0: child: 0 19424 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:01 [debug] 19290\#0: channel 3:4
2020/10/27 04:58:01 [notice] 19290\#0: start worker process 19425
2020/10/27 04:58:01 [debug] 19290\#0: sigsuspend
2020/10/27 04:58:01 [debug] 19425\#0: malloc: 05968470:12
2020/10/27 04:58:01 [debug] 19425\#0: malloc: 059684B0:8
'
107-timer-errors.t TEST 4: ngx.on_abort ==19436== Invalid read of size 4
==19436== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19436== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19436== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19436== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19436== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19436== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19436== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19436== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19436== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19436== by 0x8062D5B: main (nginx.c:385)
==19436== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19436==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 4: ngx.on_abort ==19436==
==19436== Process terminating with default action of signal 11 (SIGSEGV)
==19436== Access not within mapped region at address 0x0
==19436== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19436== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19436== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19436== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19436== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19436== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19436== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19436== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19436== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19436== by 0x8062D5B: main (nginx.c:385)
==19436== If you believe this happened as a result of a stack
==19436== overflow in your program's main thread (unlikely but
==19436== possible), you can try to increase the size of the
==19436== main thread stack using the --main-stacksize= flag.
==19436== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 4: ngx.on_abort - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 4: ngx.on_abort - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 4: ngx.on_abort - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:04 [alert] 19290\#0: worker process 19436 exited on signal 11" (req 0) 2020/10/27 04:58:04 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:58:04 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:58:04 [debug] 19290\#0: reap children
2020/10/27 04:58:04 [debug] 19290\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:04 [debug] 19290\#0: child: 1 19436 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:04 [debug] 19290\#0: channel 3:4
2020/10/27 04:58:04 [notice] 19290\#0: start worker process 19457
2020/10/27 04:58:04 [debug] 19290\#0: sigsuspend
2020/10/27 04:58:04 [debug] 19457\#0: malloc: 05D5D988:12
'
107-timer-errors.t TEST 4: ngx.on_abort ==19457== Invalid read of size 4
==19457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19457== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19457== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19457== by 0x8062D5B: main (nginx.c:385)
==19457== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19457==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
107-timer-errors.t TEST 4: ngx.on_abort ==19457==
==19457== Process terminating with default action of signal 11 (SIGSEGV)
==19457== Access not within mapped region at address 0x0
==19457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19457== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19457== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19457== by 0x8062D5B: main (nginx.c:385)
==19457== If you believe this happened as a result of a stack
==19457== overflow in your program's main thread (unlikely but
==19457== possible), you can try to increase the size of the
==19457== main thread stack using the --main-stacksize= flag.
==19457== The main thread stack size used in this run was 8388608.

107-timer-errors.t TEST 4: ngx.on_abort - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 4: ngx.on_abort - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 4: ngx.on_abort - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:05 [alert] 19290\#0: worker process 19457 exited on signal 11" (req 1) 2020/10/27 04:58:05 [debug] 19290\#0: shmtx forced unlock
2020/10/27 04:58:05 [debug] 19290\#0: wake up, sigio 0
2020/10/27 04:58:05 [debug] 19290\#0: reap children
2020/10/27 04:58:05 [debug] 19290\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:05 [debug] 19290\#0: child: 1 19457 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:05 [debug] 19290\#0: channel 3:4
2020/10/27 04:58:05 [notice] 19290\#0: start worker process 19458
2020/10/27 04:58:05 [debug] 19290\#0: sigsuspend
2020/10/27 04:58:05 [debug] 19458\#0: malloc: 05D5D988:12
'
108-timer-safe.t TEST 10: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==19466== Invalid read of size 4
==19466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19466== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19466== by 0x8062D5B: main (nginx.c:385)
==19466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 10: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==19466==
==19466== Process terminating with default action of signal 11 (SIGSEGV)
==19466== Access not within mapped region at address 0x0
==19466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19466== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19466== by 0x8062D5B: main (nginx.c:385)
==19466== If you believe this happened as a result of a stack
==19466== overflow in your program's main thread (unlikely but
==19466== possible), you can try to increase the size of the
==19466== main thread stack using the --main-stacksize= flag.
==19466== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 10: ngx.thread API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 10: ngx.thread API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 10: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:09 [alert] 19465\#0: worker process 19466 exited on signal 11" (req 0) 2020/10/27 04:58:09 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:09 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:09 [debug] 19465\#0: reap children
2020/10/27 04:58:09 [debug] 19465\#0: child: 0 19466 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:09 [debug] 19465\#0: channel 3:9
2020/10/27 04:58:09 [notice] 19465\#0: start worker process 19467
2020/10/27 04:58:09 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:09 [debug] 19467\#0: malloc: 04D044F8:12
2020/10/27 04:58:09 [debug] 19467\#0: malloc: 04D04538:8
'
108-timer-safe.t TEST 10: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==19467== Invalid read of size 4
==19467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19467== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19467== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19467== by 0x8062D5B: main (nginx.c:385)
==19467== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19467==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 10: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==19467==
==19467== Process terminating with default action of signal 11 (SIGSEGV)
==19467== Access not within mapped region at address 0x0
==19467== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19467== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19467== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19467== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19467== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19467== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19467== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19467== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19467== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19467== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19467== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19467== by 0x8062D5B: main (nginx.c:385)
==19467== If you believe this happened as a result of a stack
==19467== overflow in your program's main thread (unlikely but
==19467== possible), you can try to increase the size of the
==19467== main thread stack using the --main-stacksize= flag.
==19467== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 10: ngx.thread API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 10: ngx.thread API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 10: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:10 [alert] 19465\#0: worker process 19467 exited on signal 11" (req 1) 2020/10/27 04:58:10 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:10 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:10 [debug] 19465\#0: reap children
2020/10/27 04:58:10 [debug] 19465\#0: child: 0 19467 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:10 [debug] 19465\#0: channel 3:9
2020/10/27 04:58:10 [notice] 19465\#0: start worker process 19468
2020/10/27 04:58:10 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:10 [debug] 19468\#0: malloc: 04D044F8:12
2020/10/27 04:58:10 [debug] 19468\#0: malloc: 04D04538:8
'
108-timer-safe.t TEST 6: udp cosocket in timer handler ==19479== Invalid read of size 4
==19479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19479== by 0x8062D5B: main (nginx.c:385)
==19479== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19479==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 6: udp cosocket in timer handler ==19479==
==19479== Process terminating with default action of signal 11 (SIGSEGV)
==19479== Access not within mapped region at address 0x0
==19479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19479== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19479== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19479== by 0x8062D5B: main (nginx.c:385)
==19479== If you believe this happened as a result of a stack
==19479== overflow in your program's main thread (unlikely but
==19479== possible), you can try to increase the size of the
==19479== main thread stack using the --main-stacksize= flag.
==19479== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 6: udp cosocket in timer handler - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 6: udp cosocket in timer handler - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 0)'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:13 [alert] 19465\#0: worker process 19479 exited on signal 11" (req 0) 2020/10/27 04:58:13 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:13 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:13 [debug] 19465\#0: reap children
2020/10/27 04:58:13 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:13 [debug] 19465\#0: child: 1 19479 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:13 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:13 [notice] 19465\#0: start worker process 19500
2020/10/27 04:58:13 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:13 [debug] 19500\#0: malloc: 0504A1D8:12
'
108-timer-safe.t TEST 6: udp cosocket in timer handler ==19500== Invalid read of size 4
==19500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19500== by 0x8062D5B: main (nginx.c:385)
==19500== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19500==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 6: udp cosocket in timer handler ==19500==
==19500== Process terminating with default action of signal 11 (SIGSEGV)
==19500== Access not within mapped region at address 0x0
==19500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19500== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19500== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19500== by 0x8062D5B: main (nginx.c:385)
==19500== If you believe this happened as a result of a stack
==19500== overflow in your program's main thread (unlikely but
==19500== possible), you can try to increase the size of the
==19500== main thread stack using the --main-stacksize= flag.
==19500== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 6: udp cosocket in timer handler - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 6: udp cosocket in timer handler - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 1)'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:14 [alert] 19465\#0: worker process 19500 exited on signal 11" (req 1) 2020/10/27 04:58:14 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:14 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:14 [debug] 19465\#0: reap children
2020/10/27 04:58:14 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:14 [debug] 19465\#0: child: 1 19500 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:14 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:14 [notice] 19465\#0: start worker process 19501
2020/10/27 04:58:14 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:14 [debug] 19501\#0: malloc: 0504A1D8:12
'
108-timer-safe.t TEST 13: ngx.exit(403) ==19512== Invalid read of size 4
==19512== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19512== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19512== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19512== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19512== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19512== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19512== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19512== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19512== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19512== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19512== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19512== by 0x8062D5B: main (nginx.c:385)
==19512== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19512==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 13: ngx.exit(403) ==19512==
==19512== Process terminating with default action of signal 11 (SIGSEGV)
==19512== Access not within mapped region at address 0x0
==19512== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19512== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19512== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19512== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19512== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19512== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19512== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19512== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19512== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19512== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19512== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19512== by 0x8062D5B: main (nginx.c:385)
==19512== If you believe this happened as a result of a stack
==19512== overflow in your program's main thread (unlikely but
==19512== possible), you can try to increase the size of the
==19512== main thread stack using the --main-stacksize= flag.
==19512== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 13: ngx.exit(403) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 13: ngx.exit(403) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:17 [alert] 19465\#0: worker process 19512 exited on signal 11" (req 0) 2020/10/27 04:58:17 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:17 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:17 [debug] 19465\#0: reap children
2020/10/27 04:58:17 [debug] 19465\#0: child: 0 19512 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:17 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:17 [notice] 19465\#0: start worker process 19533
2020/10/27 04:58:17 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:17 [debug] 19533\#0: malloc: 0538F7F8:12
2020/10/27 04:58:17 [debug] 19533\#0: malloc: 0538F838:8
'
108-timer-safe.t TEST 13: ngx.exit(403) ==19533== Invalid read of size 4
==19533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19533== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19533== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19533== by 0x8062D5B: main (nginx.c:385)
==19533== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19533==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 13: ngx.exit(403) ==19533==
==19533== Process terminating with default action of signal 11 (SIGSEGV)
==19533== Access not within mapped region at address 0x0
==19533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19533== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19533== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19533== by 0x8062D5B: main (nginx.c:385)
==19533== If you believe this happened as a result of a stack
==19533== overflow in your program's main thread (unlikely but
==19533== possible), you can try to increase the size of the
==19533== main thread stack using the --main-stacksize= flag.
==19533== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 13: ngx.exit(403) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 13: ngx.exit(403) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:18 [alert] 19465\#0: worker process 19533 exited on signal 11" (req 1) 2020/10/27 04:58:18 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:18 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:18 [debug] 19465\#0: reap children
2020/10/27 04:58:18 [debug] 19465\#0: child: 0 19533 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:18 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:18 [notice] 19465\#0: start worker process 19534
2020/10/27 04:58:18 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:18 [debug] 19534\#0: malloc: 0538F7F8:12
2020/10/27 04:58:18 [debug] 19534\#0: malloc: 0538F838:8
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) ==19545== Invalid read of size 4
==19545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19545== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19545== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19545== by 0x8062D5B: main (nginx.c:385)
==19545== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19545==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) ==19545==
==19545== Process terminating with default action of signal 11 (SIGSEGV)
==19545== Access not within mapped region at address 0x0
==19545== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19545== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19545== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19545== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19545== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19545== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19545== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19545== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19545== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19545== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19545== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19545== by 0x8062D5B: main (nginx.c:385)
==19545== If you believe this happened as a result of a stack
==19545== overflow in your program's main thread (unlikely but
==19545== possible), you can try to increase the size of the
==19545== main thread stack using the --main-stacksize= flag.
==19545== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:21 [alert] 19465\#0: worker process 19545 exited on signal 11" (req 0) 2020/10/27 04:58:21 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:21 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:21 [debug] 19465\#0: reap children
2020/10/27 04:58:21 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:21 [debug] 19465\#0: child: 1 19545 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:21 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:21 [notice] 19465\#0: start worker process 19566
2020/10/27 04:58:21 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:21 [debug] 19566\#0: malloc: 056DC510:12
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) ==19566== Invalid read of size 4
==19566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19566== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19566== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19566== by 0x8062D5B: main (nginx.c:385)
==19566== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19566==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) ==19566==
==19566== Process terminating with default action of signal 11 (SIGSEGV)
==19566== Access not within mapped region at address 0x0
==19566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19566== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19566== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19566== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19566== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19566== by 0x8062D5B: main (nginx.c:385)
==19566== If you believe this happened as a result of a stack
==19566== overflow in your program's main thread (unlikely but
==19566== possible), you can try to increase the size of the
==19566== main thread stack using the --main-stacksize= flag.
==19566== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:22 [alert] 19465\#0: worker process 19566 exited on signal 11" (req 1) 2020/10/27 04:58:22 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:22 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:22 [debug] 19465\#0: reap children
2020/10/27 04:58:22 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:22 [debug] 19465\#0: child: 1 19566 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:22 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:22 [notice] 19465\#0: start worker process 19567
2020/10/27 04:58:22 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:22 [debug] 19567\#0: malloc: 056DC510:12
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) ==19579== Invalid read of size 4
==19579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19579== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19579== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19579== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19579== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19579== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19579== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19579== by 0x8062D5B: main (nginx.c:385)
==19579== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19579==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) ==19579==
==19579== Process terminating with default action of signal 11 (SIGSEGV)
==19579== Access not within mapped region at address 0x0
==19579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19579== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19579== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19579== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19579== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19579== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19579== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19579== by 0x8062D5B: main (nginx.c:385)
==19579== If you believe this happened as a result of a stack
==19579== overflow in your program's main thread (unlikely but
==19579== possible), you can try to increase the size of the
==19579== main thread stack using the --main-stacksize= flag.
==19579== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:25 [alert] 19465\#0: worker process 19579 exited on signal 11" (req 0) 2020/10/27 04:58:25 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:25 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:25 [debug] 19465\#0: reap children
2020/10/27 04:58:25 [debug] 19465\#0: child: 0 19579 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:25 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:25 [notice] 19465\#0: start worker process 19600
2020/10/27 04:58:25 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:25 [debug] 19600\#0: malloc: 05930780:12
2020/10/27 04:58:25 [debug] 19600\#0: malloc: 05A5CA50:8
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) ==19600== Invalid read of size 4
==19600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19600== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19600== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19600== by 0x8062D5B: main (nginx.c:385)
==19600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) ==19600==
==19600== Process terminating with default action of signal 11 (SIGSEGV)
==19600== Access not within mapped region at address 0x0
==19600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19600== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19600== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19600== by 0x8062D5B: main (nginx.c:385)
==19600== If you believe this happened as a result of a stack
==19600== overflow in your program's main thread (unlikely but
==19600== possible), you can try to increase the size of the
==19600== main thread stack using the --main-stacksize= flag.
==19600== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:26 [alert] 19465\#0: worker process 19600 exited on signal 11" (req 1) 2020/10/27 04:58:26 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:26 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:26 [debug] 19465\#0: reap children
2020/10/27 04:58:26 [debug] 19465\#0: child: 0 19600 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:26 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:26 [notice] 19465\#0: start worker process 19601
2020/10/27 04:58:26 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:26 [debug] 19601\#0: malloc: 05930780:12
2020/10/27 04:58:26 [debug] 19601\#0: malloc: 05A5CA50:8
'
108-timer-safe.t TEST 11: shared dict ==19612== Invalid read of size 4
==19612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19612== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19612== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19612== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19612== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19612== by 0x8062D5B: main (nginx.c:385)
==19612== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19612==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 11: shared dict ==19612==
==19612== Process terminating with default action of signal 11 (SIGSEGV)
==19612== Access not within mapped region at address 0x0
==19612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19612== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19612== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19612== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19612== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19612== by 0x8062D5B: main (nginx.c:385)
==19612== If you believe this happened as a result of a stack
==19612== overflow in your program's main thread (unlikely but
==19612== possible), you can try to increase the size of the
==19612== main thread stack using the --main-stacksize= flag.
==19612== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 11: shared dict - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 11: shared dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 11: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:29 [alert] 19465\#0: worker process 19612 exited on signal 11" (req 0) 2020/10/27 04:58:29 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:29 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:29 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:29 [debug] 19465\#0: reap children
2020/10/27 04:58:29 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:29 [debug] 19465\#0: child: 1 19612 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:29 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:29 [notice] 19465\#0: start worker process 19633
2020/10/27 04:58:29 [debug] 19465\#0: sigsuspend
'
108-timer-safe.t TEST 11: shared dict ==19633== Invalid read of size 4
==19633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19633== by 0x8062D5B: main (nginx.c:385)
==19633== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19633==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 11: shared dict ==19633==
==19633== Process terminating with default action of signal 11 (SIGSEGV)
==19633== Access not within mapped region at address 0x0
==19633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19633== by 0x8062D5B: main (nginx.c:385)
==19633== If you believe this happened as a result of a stack
==19633== overflow in your program's main thread (unlikely but
==19633== possible), you can try to increase the size of the
==19633== main thread stack using the --main-stacksize= flag.
==19633== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 11: shared dict - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 11: shared dict - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 11: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:30 [alert] 19465\#0: worker process 19633 exited on signal 11" (req 1) 2020/10/27 04:58:30 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:30 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:30 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:30 [debug] 19465\#0: reap children
2020/10/27 04:58:30 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:30 [debug] 19465\#0: child: 1 19633 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:30 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:30 [notice] 19465\#0: start worker process 19634
2020/10/27 04:58:30 [debug] 19465\#0: sigsuspend
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) ==19645== Invalid read of size 4
==19645== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19645== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19645== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19645== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19645== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19645== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19645== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19645== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19645== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19645== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19645== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19645== by 0x8062D5B: main (nginx.c:385)
==19645== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19645==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) ==19645==
==19645== Process terminating with default action of signal 11 (SIGSEGV)
==19645== Access not within mapped region at address 0x0
==19645== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19645== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19645== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19645== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19645== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19645== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19645== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19645== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19645== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19645== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19645== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19645== by 0x8062D5B: main (nginx.c:385)
==19645== If you believe this happened as a result of a stack
==19645== overflow in your program's main thread (unlikely but
==19645== possible), you can try to increase the size of the
==19645== main thread stack using the --main-stacksize= flag.
==19645== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:33 [alert] 19465\#0: worker process 19645 exited on signal 11" (req 0) 2020/10/27 04:58:33 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:33 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:33 [debug] 19465\#0: reap children
2020/10/27 04:58:33 [debug] 19465\#0: child: 0 19645 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:33 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:33 [notice] 19465\#0: start worker process 19666
2020/10/27 04:58:33 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:33 [debug] 19666\#0: malloc: 061ACE88:12
2020/10/27 04:58:33 [debug] 19666\#0: malloc: 061ACEC8:8
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) ==19666== Invalid read of size 4
==19666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19666== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19666== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19666== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19666== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19666== by 0x8062D5B: main (nginx.c:385)
==19666== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19666==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) ==19666==
==19666== Process terminating with default action of signal 11 (SIGSEGV)
==19666== Access not within mapped region at address 0x0
==19666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19666== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19666== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19666== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19666== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19666== by 0x8062D5B: main (nginx.c:385)
==19666== If you believe this happened as a result of a stack
==19666== overflow in your program's main thread (unlikely but
==19666== possible), you can try to increase the size of the
==19666== main thread stack using the --main-stacksize= flag.
==19666== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:34 [alert] 19465\#0: worker process 19666 exited on signal 11" (req 1) 2020/10/27 04:58:34 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:34 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:34 [debug] 19465\#0: reap children
2020/10/27 04:58:34 [debug] 19465\#0: child: 0 19666 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:34 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:34 [notice] 19465\#0: start worker process 19667
2020/10/27 04:58:34 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:34 [debug] 19667\#0: malloc: 061ACE88:12
2020/10/27 04:58:34 [debug] 19667\#0: malloc: 061ACEC8:8
'
108-timer-safe.t TEST 5: 0 timer ==19678== Invalid read of size 4
==19678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19678== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19678== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19678== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19678== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19678== by 0x8062D5B: main (nginx.c:385)
==19678== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19678==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 5: 0 timer ==19678==
==19678== Process terminating with default action of signal 11 (SIGSEGV)
==19678== Access not within mapped region at address 0x0
==19678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19678== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19678== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19678== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19678== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19678== by 0x8062D5B: main (nginx.c:385)
==19678== If you believe this happened as a result of a stack
==19678== overflow in your program's main thread (unlikely but
==19678== possible), you can try to increase the size of the
==19678== main thread stack using the --main-stacksize= flag.
==19678== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 5: 0 timer - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 5: 0 timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 5: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:37 [alert] 19465\#0: worker process 19678 exited on signal 11" (req 0) 2020/10/27 04:58:37 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:37 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:37 [debug] 19465\#0: reap children
2020/10/27 04:58:37 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:37 [debug] 19465\#0: child: 1 19678 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:37 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:37 [notice] 19465\#0: start worker process 19699
'
108-timer-safe.t TEST 5: 0 timer ==19699== Invalid read of size 4
==19699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19699== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19699== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19699== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19699== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19699== by 0x8062D5B: main (nginx.c:385)
==19699== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19699==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 5: 0 timer ==19699==
==19699== Process terminating with default action of signal 11 (SIGSEGV)
==19699== Access not within mapped region at address 0x0
==19699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19699== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19699== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19699== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19699== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19699== by 0x8062D5B: main (nginx.c:385)
==19699== If you believe this happened as a result of a stack
==19699== overflow in your program's main thread (unlikely but
==19699== possible), you can try to increase the size of the
==19699== main thread stack using the --main-stacksize= flag.
==19699== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 5: 0 timer - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 5: 0 timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 5: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:38 [alert] 19465\#0: worker process 19699 exited on signal 11" (req 1) 2020/10/27 04:58:38 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:38 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:38 [debug] 19465\#0: reap children
2020/10/27 04:58:38 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:38 [debug] 19465\#0: child: 1 19699 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:38 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:38 [notice] 19465\#0: start worker process 19700
'
108-timer-safe.t TEST 9: coroutine API ==19711== Invalid read of size 4
==19711== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19711== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19711== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19711== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19711== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19711== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19711== by 0x8062D5B: main (nginx.c:385)
==19711== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 9: coroutine API ==19711==
==19711== Process terminating with default action of signal 11 (SIGSEGV)
==19711== Access not within mapped region at address 0x0
==19711== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19711== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19711== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19711== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19711== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19711== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19711== by 0x8062D5B: main (nginx.c:385)
==19711== If you believe this happened as a result of a stack
==19711== overflow in your program's main thread (unlikely but
==19711== possible), you can try to increase the size of the
==19711== main thread stack using the --main-stacksize= flag.
==19711== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 9: coroutine API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 9: coroutine API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 9: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:41 [alert] 19465\#0: worker process 19711 exited on signal 11" (req 0) 2020/10/27 04:58:41 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:41 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:41 [debug] 19465\#0: reap children
2020/10/27 04:58:41 [debug] 19465\#0: child: 0 19711 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:41 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:41 [notice] 19465\#0: start worker process 19732
2020/10/27 04:58:41 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:41 [debug] 19732\#0: malloc: 04AB0AA8:12
2020/10/27 04:58:41 [debug] 19732\#0: malloc: 0505A700:8
'
108-timer-safe.t TEST 9: coroutine API ==19732== Invalid read of size 4
==19732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19732== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19732== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19732== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19732== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19732== by 0x8062D5B: main (nginx.c:385)
==19732== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19732==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 9: coroutine API ==19732==
==19732== Process terminating with default action of signal 11 (SIGSEGV)
==19732== Access not within mapped region at address 0x0
==19732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19732== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19732== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19732== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19732== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19732== by 0x8062D5B: main (nginx.c:385)
==19732== If you believe this happened as a result of a stack
==19732== overflow in your program's main thread (unlikely but
==19732== possible), you can try to increase the size of the
==19732== main thread stack using the --main-stacksize= flag.
==19732== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 9: coroutine API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 9: coroutine API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 9: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:42 [alert] 19465\#0: worker process 19732 exited on signal 11" (req 1) 2020/10/27 04:58:42 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:42 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:42 [debug] 19465\#0: reap children
2020/10/27 04:58:42 [debug] 19465\#0: child: 0 19732 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:42 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:42 [notice] 19465\#0: start worker process 19733
'
108-timer-safe.t TEST 12: ngx.exit(0) ==19744== Invalid read of size 4
==19744== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19744== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19744== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19744== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19744== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19744== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19744== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19744== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19744== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19744== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19744== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19744== by 0x8062D5B: main (nginx.c:385)
==19744== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19744==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 12: ngx.exit(0) ==19744==
==19744== Process terminating with default action of signal 11 (SIGSEGV)
==19744== Access not within mapped region at address 0x0
==19744== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19744== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19744== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19744== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19744== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19744== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19744== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19744== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19744== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19744== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19744== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19744== by 0x8062D5B: main (nginx.c:385)
==19744== If you believe this happened as a result of a stack
==19744== overflow in your program's main thread (unlikely but
==19744== possible), you can try to increase the size of the
==19744== main thread stack using the --main-stacksize= flag.
==19744== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 12: ngx.exit(0) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 12: ngx.exit(0) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 12: ngx.exit(0) ==19765== Invalid read of size 4
==19765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19765== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19765== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19765== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19765== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19765== by 0x8062D5B: main (nginx.c:385)
==19765== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19765==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 12: ngx.exit(0) ==19765==
==19765== Process terminating with default action of signal 11 (SIGSEGV)
==19765== Access not within mapped region at address 0x0
==19765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19765== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19765== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19765== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19765== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19765== by 0x8062D5B: main (nginx.c:385)
==19765== If you believe this happened as a result of a stack
==19765== overflow in your program's main thread (unlikely but
==19765== possible), you can try to increase the size of the
==19765== main thread stack using the --main-stacksize= flag.
==19765== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 12: ngx.exit(0) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 12: ngx.exit(0) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) ==19777== Invalid read of size 4
==19777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19777== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19777== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19777== by 0x8062D5B: main (nginx.c:385)
==19777== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19777==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) ==19777==
==19777== Process terminating with default action of signal 11 (SIGSEGV)
==19777== Access not within mapped region at address 0x0
==19777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19777== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19777== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19777== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19777== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19777== by 0x8062D5B: main (nginx.c:385)
==19777== If you believe this happened as a result of a stack
==19777== overflow in your program's main thread (unlikely but
==19777== possible), you can try to increase the size of the
==19777== main thread stack using the --main-stacksize= flag.
==19777== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:49 [alert] 19465\#0: worker process 19777 exited on signal 11" (req 0) 2020/10/27 04:58:49 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:49 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:49 [debug] 19465\#0: reap children
2020/10/27 04:58:49 [debug] 19465\#0: child: 0 19777 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:49 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:49 [notice] 19465\#0: start worker process 19800
2020/10/27 04:58:49 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:49 [debug] 19800\#0: malloc: 0513BC40:12
2020/10/27 04:58:49 [debug] 19800\#0: malloc: 056EC9F8:8
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) ==19800== Invalid read of size 4
==19800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19800== by 0x8062D5B: main (nginx.c:385)
==19800== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19800==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) ==19800==
==19800== Process terminating with default action of signal 11 (SIGSEGV)
==19800== Access not within mapped region at address 0x0
==19800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19800== by 0x8062D5B: main (nginx.c:385)
==19800== If you believe this happened as a result of a stack
==19800== overflow in your program's main thread (unlikely but
==19800== possible), you can try to increase the size of the
==19800== main thread stack using the --main-stacksize= flag.
==19800== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:50 [alert] 19465\#0: worker process 19800 exited on signal 11" (req 1) 2020/10/27 04:58:50 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:50 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:50 [debug] 19465\#0: reap children
2020/10/27 04:58:50 [debug] 19465\#0: child: 0 19800 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:50 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:50 [notice] 19465\#0: start worker process 19801
2020/10/27 04:58:50 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:50 [debug] 19801\#0: malloc: 0513BC40:12
2020/10/27 04:58:50 [debug] 19801\#0: malloc: 056EC9F8:8
'
108-timer-safe.t TEST 1: simple at ==19812== Invalid read of size 4
==19812== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19812== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19812== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19812== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19812== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19812== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19812== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19812== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19812== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19812== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19812== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19812== by 0x8062D5B: main (nginx.c:385)
==19812== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19812==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 1: simple at ==19812==
==19812== Process terminating with default action of signal 11 (SIGSEGV)
==19812== Access not within mapped region at address 0x0
==19812== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19812== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19812== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19812== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19812== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19812== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19812== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19812== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19812== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19812== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19812== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19812== by 0x8062D5B: main (nginx.c:385)
==19812== If you believe this happened as a result of a stack
==19812== overflow in your program's main thread (unlikely but
==19812== possible), you can try to increase the size of the
==19812== main thread stack using the --main-stacksize= flag.
==19812== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 1: simple at - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 1: simple at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:53 [alert] 19465\#0: worker process 19812 exited on signal 11" (req 0) 2020/10/27 04:58:53 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:53 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:53 [debug] 19465\#0: reap children
2020/10/27 04:58:53 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:53 [debug] 19465\#0: child: 1 19812 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:53 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:53 [notice] 19465\#0: start worker process 19833
2020/10/27 04:58:53 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:53 [debug] 19833\#0: malloc: 0548B7E0:12
'
108-timer-safe.t TEST 1: simple at ==19833== Invalid read of size 4
==19833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19833== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19833== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19833== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19833== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19833== by 0x8062D5B: main (nginx.c:385)
==19833== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19833==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 1: simple at ==19833==
==19833== Process terminating with default action of signal 11 (SIGSEGV)
==19833== Access not within mapped region at address 0x0
==19833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19833== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19833== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19833== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19833== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19833== by 0x8062D5B: main (nginx.c:385)
==19833== If you believe this happened as a result of a stack
==19833== overflow in your program's main thread (unlikely but
==19833== possible), you can try to increase the size of the
==19833== main thread stack using the --main-stacksize= flag.
==19833== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 1: simple at - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 1: simple at - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:54 [alert] 19465\#0: worker process 19833 exited on signal 11" (req 1) 2020/10/27 04:58:54 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:54 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:54 [debug] 19465\#0: reap children
2020/10/27 04:58:54 [debug] 19465\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:54 [debug] 19465\#0: child: 1 19833 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:54 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:54 [notice] 19465\#0: start worker process 19834
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) ==19845== Invalid read of size 4
==19845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19845== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19845== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19845== by 0x8062D5B: main (nginx.c:385)
==19845== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19845==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 15: chained timers (non-zero delay) ==19845==
==19845== Process terminating with default action of signal 11 (SIGSEGV)
==19845== Access not within mapped region at address 0x0
==19845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19845== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19845== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19845== by 0x8062D5B: main (nginx.c:385)
==19845== If you believe this happened as a result of a stack
==19845== overflow in your program's main thread (unlikely but
==19845== possible), you can try to increase the size of the
==19845== main thread stack using the --main-stacksize= flag.
==19845== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 15: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:57 [alert] 19465\#0: worker process 19845 exited on signal 11" (req 0) 2020/10/27 04:58:57 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:57 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:57 [debug] 19465\#0: reap children
2020/10/27 04:58:57 [debug] 19465\#0: child: 0 19845 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:57 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:57 [notice] 19465\#0: start worker process 19866
2020/10/27 04:58:57 [debug] 19465\#0: sigsuspend
2020/10/27 04:58:57 [debug] 19866\#0: malloc: 057D4D50:12
2020/10/27 04:58:57 [debug] 19866\#0: malloc: 05E77FF8:8
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) ==19866== Invalid read of size 4
==19866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19866== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19866== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19866== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19866== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19866== by 0x8062D5B: main (nginx.c:385)
==19866== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19866==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
108-timer-safe.t TEST 15: chained timers (non-zero delay) ==19866==
==19866== Process terminating with default action of signal 11 (SIGSEGV)
==19866== Access not within mapped region at address 0x0
==19866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19866== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19866== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19866== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==19866== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==19866== by 0x8062D5B: main (nginx.c:385)
==19866== If you believe this happened as a result of a stack
==19866== overflow in your program's main thread (unlikely but
==19866== possible), you can try to increase the size of the
==19866== main thread stack using the --main-stacksize= flag.
==19866== The main thread stack size used in this run was 8388608.

108-timer-safe.t TEST 15: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:58 [alert] 19465\#0: worker process 19866 exited on signal 11" (req 1) 2020/10/27 04:58:58 [debug] 19465\#0: shmtx forced unlock
2020/10/27 04:58:58 [debug] 19465\#0: wake up, sigio 0
2020/10/27 04:58:58 [debug] 19465\#0: reap children
2020/10/27 04:58:58 [debug] 19465\#0: child: 0 19866 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:58 [debug] 19465\#0: channel 3:4
2020/10/27 04:58:58 [notice] 19465\#0: start worker process 19867
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - Can't connect to 127.0.0.1:1984: Connection refused ==19875== Invalid read of size 4
==19875== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19875== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19875== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19875== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19875== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19875== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19875== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19875== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19875== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19875== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19875== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19875== by 0x8062D5B: main (nginx.c:385)
==19875== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19875==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - Can't connect to 127.0.0.1:1984: Connection refused ==19875==
==19875== Process terminating with default action of signal 11 (SIGSEGV)
==19875== Access not within mapped region at address 0x0
==19875== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19875== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19875== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19875== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19875== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19875== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19875== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19875== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19875== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19875== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19875== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==19875== by 0x8062D5B: main (nginx.c:385)
==19875== If you believe this happened as a result of a stack
==19875== overflow in your program's main thread (unlikely but
==19875== possible), you can try to increase the size of the
==19875== main thread stack using the --main-stacksize= flag.
==19875== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 3: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - Can't connect to 127.0.0.1:1984: Connection refused ==19877== Invalid read of size 4
==19877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19877== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19877== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19877== by 0x8062D5B: main (nginx.c:385)
==19877== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19877==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - Can't connect to 127.0.0.1:1984: Connection refused ==19877==
==19877== Process terminating with default action of signal 11 (SIGSEGV)
==19877== Access not within mapped region at address 0x0
==19877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19877== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19877== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19877== by 0x8062D5B: main (nginx.c:385)
==19877== If you believe this happened as a result of a stack
==19877== overflow in your program's main thread (unlikely but
==19877== possible), you can try to increase the size of the
==19877== main thread stack using the --main-stacksize= flag.
==19877== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 3: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:03 [alert] 19874\#0: worker process 19875 exited on signal 11" (req 1) 2020/10/27 04:59:03 [debug] 19877\#0: *4 recv: fd:4 55 of 1024
2020/10/27 04:59:03 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:03 [debug] 19877\#0: *4 reusable connection: 0
2020/10/27 04:59:03 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:03 [debug] 19874\#0: reap children
2020/10/27 04:59:03 [debug] 19877\#0: *4 malloc: 050828B8:24
2020/10/27 04:59:03 [debug] 19877\#0: *4 malloc: 05082900:784
2020/10/27 04:59:03 [debug] 19877\#0: *4 malloc: 05082C40:8
2020/10/27 04:59:03 [debug] 19874\#0: child: 0 19875 e:1 t:1 d:0 r:1 j:0
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload ==19890== Invalid read of size 4
==19890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19890== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19890== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19890== by 0x8062D5B: main (nginx.c:385)
==19890== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19890==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 4: trying to add new timer after HUP reload ==19890==
==19890== Process terminating with default action of signal 11 (SIGSEGV)
==19890== Access not within mapped region at address 0x0
==19890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19890== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19890== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19890== by 0x8062D5B: main (nginx.c:385)
==19890== If you believe this happened as a result of a stack
==19890== overflow in your program's main thread (unlikely but
==19890== possible), you can try to increase the size of the
==19890== main thread stack using the --main-stacksize= flag.
==19890== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 4: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:06 [alert] 19874\#0: worker process 19877 exited on signal 11" (req 0) 2020/10/27 04:59:06 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:06 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:06 [debug] 19874\#0: reap children
2020/10/27 04:59:06 [debug] 19874\#0: child: 0 19885 e:1 t:0 d:0 r:1 j:0
2020/10/27 04:59:06 [debug] 19890\#0: epoll: fd:9 ev:0001 d:056DC11C
2020/10/27 04:59:06 [debug] 19874\#0: child: 1 19877 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:06 [debug] 19874\#0: pass close channel s:1 pid:19877 to:19885
2020/10/27 04:59:06 [debug] 19874\#0: pass close channel s:1 pid:19877 to:19890
2020/10/27 04:59:06 [debug] 19890\#0: channel handler
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload ==19912== Invalid read of size 4
==19912== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19912== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19912== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19912== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19912== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19912== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19912== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19912== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19912== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19912== by 0x8062D5B: main (nginx.c:385)
==19912== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19912==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 4: trying to add new timer after HUP reload ==19912==
==19912== Process terminating with default action of signal 11 (SIGSEGV)
==19912== Access not within mapped region at address 0x0
==19912== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19912== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19912== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19912== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19912== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19912== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19912== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19912== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19912== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19912== by 0x8062D5B: main (nginx.c:385)
==19912== If you believe this happened as a result of a stack
==19912== overflow in your program's main thread (unlikely but
==19912== possible), you can try to increase the size of the
==19912== main thread stack using the --main-stacksize= flag.
==19912== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 4: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:08 [alert] 19874\#0: worker process 19890 exited on signal 11" (req 1) 2020/10/27 04:59:08 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:08 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:08 [debug] 19874\#0: reap children
2020/10/27 04:59:08 [debug] 19874\#0: child: 0 19912 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:59:08 [debug] 19874\#0: child: 1 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:08 [debug] 19874\#0: child: 2 19890 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:08 [debug] 19874\#0: pass close channel s:2 pid:19890 to:19912
2020/10/27 04:59:08 [debug] 19874\#0: sigsuspend
2020/10/27 04:59:07 [debug] 19912\#0: testing the EPOLLRDHUP flag: success
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) ==19925== Invalid read of size 4
==19925== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19925== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19925== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19925== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19925== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19925== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19925== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19925== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19925== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19925== by 0x8062D5B: main (nginx.c:385)
==19925== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19925==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) ==19925==
==19925== Process terminating with default action of signal 11 (SIGSEGV)
==19925== Access not within mapped region at address 0x0
==19925== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19925== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19925== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19925== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19925== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19925== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19925== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19925== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19925== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19925== by 0x8062D5B: main (nginx.c:385)
==19925== If you believe this happened as a result of a stack
==19925== overflow in your program's main thread (unlikely but
==19925== possible), you can try to increase the size of the
==19925== main thread stack using the --main-stacksize= flag.
==19925== The main thread stack size used in this run was 8388608.
==19925== 256 bytes in 1 blocks are definitely lost in loss record 2,451 of 2,859
==19925== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==19925== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==19925== by 0x40CC146: mem_alloc (lib_aux.c:335)
==19925== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==19925== by 0x408A24F: lj_ir_growtop (lj_ir.c:81)
==19925== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==19925== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==19925== by 0x40A2F62: lj_record_setup (lj_record.c:2601)
==19925== by 0x40BAA40: trace_start (lj_trace.c:476)
==19925== by 0x40BAFE0: trace_state (lj_trace.c:661)
==19925== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19925== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==19925== by 0x40BC168: lj_trace_hot (lj_trace.c:756)
==19925== by 0x4069029: lj_vm_hotloop (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19925== by 0x407FA29: lua_resume (lj_api.c:1296)
==19925== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==19925== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==19925== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==19925== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==19925== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==19925== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==19925== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==19925== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==19925== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==19925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19925== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19925== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19925== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19925== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19925== by 0x8062D5B: main (nginx.c:385)
==19925==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_record_setup
fun:trace_start
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_trace_hot
fun:lj_vm_hotloop
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 0) got: ''
expected: 'stream lua found 8191 pending timers
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:11 [alert] 19874\#0: worker process 19912 exited on signal 11" (req 0) 2020/10/27 04:59:11 [debug] 19920\#0: channel: 16
2020/10/27 04:59:11 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:11 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:11 [debug] 19874\#0: reap children
2020/10/27 04:59:11 [debug] 19874\#0: child: 0 19912 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:11 [debug] 19874\#0: pass close channel s:0 pid:19912 to:19920
2020/10/27 04:59:11 [debug] 19874\#0: pass close channel s:0 pid:19912 to:19925
2020/10/27 04:59:11 [debug] 19874\#0: child: 1 19920 e:1 t:0 d:0 r:1 j:0
2020/10/27 04:59:11 [debug] 19874\#0: child: 2 19925 e:0 t:0 d:0 r:1 j:0
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) ==19947== Invalid read of size 4
==19947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19947== by 0x8062D5B: main (nginx.c:385)
==19947== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19947==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) ==19947==
==19947== Process terminating with default action of signal 11 (SIGSEGV)
==19947== Access not within mapped region at address 0x0
==19947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19947== by 0x8062D5B: main (nginx.c:385)
==19947== If you believe this happened as a result of a stack
==19947== overflow in your program's main thread (unlikely but
==19947== possible), you can try to increase the size of the
==19947== main thread stack using the --main-stacksize= flag.
==19947== The main thread stack size used in this run was 8388608.
==19947== 256 bytes in 1 blocks are definitely lost in loss record 2,455 of 2,861
==19947== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==19947== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==19947== by 0x40CC146: mem_alloc (lib_aux.c:335)
==19947== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==19947== by 0x408A24F: lj_ir_growtop (lj_ir.c:81)
==19947== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==19947== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==19947== by 0x40A2F62: lj_record_setup (lj_record.c:2601)
==19947== by 0x40BAA40: trace_start (lj_trace.c:476)
==19947== by 0x40BAFE0: trace_state (lj_trace.c:661)
==19947== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19947== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==19947== by 0x40BC168: lj_trace_hot (lj_trace.c:756)
==19947== by 0x4069029: lj_vm_hotloop (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19947== by 0x407FA29: lua_resume (lj_api.c:1296)
==19947== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==19947== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==19947== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==19947== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==19947== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==19947== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==19947== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==19947== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==19947== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==19947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19947== by 0x8062D5B: main (nginx.c:385)
==19947==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_record_setup
fun:trace_start
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_trace_hot
fun:lj_vm_hotloop
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 1) got: ''
expected: 'stream lua found 8191 pending timers
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:20 [alert] 19874\#0: worker process 19925 exited on signal 11" (req 1) 2020/10/27 04:59:20 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:20 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:20 [debug] 19874\#0: reap children
2020/10/27 04:59:20 [debug] 19874\#0: child: 0 19947 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:59:20 [debug] 19874\#0: child: 1 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:20 [debug] 19874\#0: child: 2 19925 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:20 [debug] 19874\#0: pass close channel s:2 pid:19925 to:19947
2020/10/27 04:59:20 [debug] 19874\#0: sigsuspend
2020/10/27 04:59:19 [debug] 19947\#0: malloc: 04B8D128:12
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers ==19960== Invalid read of size 4
==19960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19960== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19960== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19960== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19960== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19960== by 0x8062D5B: main (nginx.c:385)
==19960== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19960==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 5: HUP reload should abort pending timers ==19960==
==19960== Process terminating with default action of signal 11 (SIGSEGV)
==19960== Access not within mapped region at address 0x0
==19960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19960== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19960== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19960== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19960== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19960== by 0x8062D5B: main (nginx.c:385)
==19960== If you believe this happened as a result of a stack
==19960== overflow in your program's main thread (unlikely but
==19960== possible), you can try to increase the size of the
==19960== main thread stack using the --main-stacksize= flag.
==19960== The main thread stack size used in this run was 8388608.
==19960== 512 bytes in 1 blocks are definitely lost in loss record 2,633 of 2,856
==19960== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==19960== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==19960== by 0x40CC146: mem_alloc (lib_aux.c:335)
==19960== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==19960== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==19960== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==19960== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==19960== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==19960== by 0x40BB16A: trace_state (lj_trace.c:680)
==19960== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19960== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==19960== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==19960== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19960== by 0x407FA29: lua_resume (lj_api.c:1296)
==19960== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==19960== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==19960== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==19960== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==19960== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==19960== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==19960== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==19960== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==19960== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==19960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19960== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19960== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19960== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19960== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19960== by 0x8062D5B: main (nginx.c:385)
==19960==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 5: HUP reload should abort pending timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - grep_error_log_out (req 0) got: ''
expected: 'lua found 100 pending timers
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers ==19982== Invalid read of size 4
==19982== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19982== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19982== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19982== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19982== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19982== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19982== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19982== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19982== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19982== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19982== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19982== by 0x8062D5B: main (nginx.c:385)
==19982== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19982==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 5: HUP reload should abort pending timers ==19982==
==19982== Process terminating with default action of signal 11 (SIGSEGV)
==19982== Access not within mapped region at address 0x0
==19982== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19982== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19982== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19982== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19982== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19982== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19982== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19982== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19982== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19982== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19982== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19982== by 0x8062D5B: main (nginx.c:385)
==19982== If you believe this happened as a result of a stack
==19982== overflow in your program's main thread (unlikely but
==19982== possible), you can try to increase the size of the
==19982== main thread stack using the --main-stacksize= flag.
==19982== The main thread stack size used in this run was 8388608.
==19982== 512 bytes in 1 blocks are definitely lost in loss record 2,643 of 2,868
==19982== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==19982== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==19982== by 0x40CC146: mem_alloc (lib_aux.c:335)
==19982== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==19982== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==19982== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==19982== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==19982== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==19982== by 0x40BB16A: trace_state (lj_trace.c:680)
==19982== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19982== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==19982== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==19982== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==19982== by 0x407FA29: lua_resume (lj_api.c:1296)
==19982== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==19982== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==19982== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==19982== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==19982== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==19982== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==19982== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==19982== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==19982== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==19982== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19982== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19982== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19982== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19982== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19982== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19982== by 0x8062D5B: main (nginx.c:385)
==19982==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 5: HUP reload should abort pending timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - grep_error_log_out (req 1) got: ''
expected: 'lua found 100 pending timers
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:32 [alert] 19874\#0: worker process 19960 exited on signal 11" (req 1) 2020/10/27 04:59:32 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:32 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:32 [debug] 19874\#0: reap children
2020/10/27 04:59:32 [debug] 19874\#0: child: 0 19960 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:32 [debug] 19874\#0: pass close channel s:0 pid:19960 to:19982
2020/10/27 04:59:32 [debug] 19874\#0: child: 1 19982 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:59:32 [debug] 19874\#0: sigsuspend
2020/10/27 04:59:31 [debug] 19982\#0: malloc: 05100BC8:12
2020/10/27 04:59:31 [debug] 19982\#0: malloc: 056E6DE0:8
'
109-timer-hup.t TEST 2: multiple timers ==19995== Invalid read of size 4
==19995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19995== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19995== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19995== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19995== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19995== by 0x8062D5B: main (nginx.c:385)
==19995== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19995==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 2: multiple timers ==19995==
==19995== Process terminating with default action of signal 11 (SIGSEGV)
==19995== Access not within mapped region at address 0x0
==19995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19995== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==19995== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==19995== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==19995== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==19995== by 0x8062D5B: main (nginx.c:385)
==19995== If you believe this happened as a result of a stack
==19995== overflow in your program's main thread (unlikely but
==19995== possible), you can try to increase the size of the
==19995== main thread stack using the --main-stacksize= flag.
==19995== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 2: multiple timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 2: multiple timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timers
'
109-timer-hup.t TEST 2: multiple timers ==20017== Invalid read of size 4
==20017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20017== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20017== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20017== by 0x8062D5B: main (nginx.c:385)
==20017== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20017==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 2: multiple timers ==20017==
==20017== Process terminating with default action of signal 11 (SIGSEGV)
==20017== Access not within mapped region at address 0x0
==20017== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20017== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20017== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20017== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20017== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20017== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20017== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20017== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20017== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20017== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20017== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20017== by 0x8062D5B: main (nginx.c:385)
==20017== If you believe this happened as a result of a stack
==20017== overflow in your program's main thread (unlikely but
==20017== possible), you can try to increase the size of the
==20017== main thread stack using the --main-stacksize= flag.
==20017== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 2: multiple timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 2: multiple timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timers
'
109-timer-hup.t TEST 2: multiple timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:38 [alert] 19874\#0: worker process 19995 exited on signal 11" (req 1) 2020/10/27 04:59:38 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:38 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:38 [debug] 19874\#0: reap children
2020/10/27 04:59:38 [debug] 19874\#0: child: 0 20017 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:59:38 [debug] 19874\#0: child: 1 19995 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:38 [debug] 19874\#0: pass close channel s:1 pid:19995 to:20017
2020/10/27 04:59:38 [debug] 19874\#0: sigsuspend
2020/10/27 04:59:37 [debug] 20017\#0: malloc: 05AD3C30:12
2020/10/27 04:59:37 [debug] 20017\#0: malloc: 0496F758:8
'
109-timer-hup.t TEST 1: single timer ==20030== Invalid read of size 4
==20030== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20030== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20030== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20030== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20030== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20030== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20030== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20030== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20030== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20030== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20030== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20030== by 0x8062D5B: main (nginx.c:385)
==20030== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20030==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 1: single timer ==20030==
==20030== Process terminating with default action of signal 11 (SIGSEGV)
==20030== Access not within mapped region at address 0x0
==20030== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20030== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20030== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20030== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20030== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20030== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20030== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20030== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20030== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20030== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20030== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20030== by 0x8062D5B: main (nginx.c:385)
==20030== If you believe this happened as a result of a stack
==20030== overflow in your program's main thread (unlikely but
==20030== possible), you can try to increase the size of the
==20030== main thread stack using the --main-stacksize= flag.
==20030== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 1: single timer - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 1: single timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 1: single timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:41 [alert] 19874\#0: worker process 20017 exited on signal 11" (req 0) 2020/10/27 04:59:41 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:41 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:41 [debug] 19874\#0: reap children
2020/10/27 04:59:41 [debug] 19874\#0: child: 0 20017 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:41 [debug] 19874\#0: pass close channel s:0 pid:20017 to:20022
2020/10/27 04:59:41 [debug] 19874\#0: pass close channel s:0 pid:20017 to:20030
2020/10/27 04:59:41 [debug] 19874\#0: child: 1 20022 e:1 t:0 d:0 r:1 j:0
2020/10/27 04:59:41 [debug] 19874\#0: child: 2 20030 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:59:41 [debug] 19874\#0: sigsuspend
'
109-timer-hup.t TEST 1: single timer ==20052== Invalid read of size 4
==20052== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20052== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20052== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20052== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20052== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20052== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20052== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20052== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20052== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20052== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20052== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20052== by 0x8062D5B: main (nginx.c:385)
==20052== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20052==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
109-timer-hup.t TEST 1: single timer ==20052==
==20052== Process terminating with default action of signal 11 (SIGSEGV)
==20052== Access not within mapped region at address 0x0
==20052== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20052== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20052== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20052== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20052== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20052== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20052== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20052== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20052== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20052== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20052== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20052== by 0x8062D5B: main (nginx.c:385)
==20052== If you believe this happened as a result of a stack
==20052== overflow in your program's main thread (unlikely but
==20052== possible), you can try to increase the size of the
==20052== main thread stack using the --main-stacksize= flag.
==20052== The main thread stack size used in this run was 8388608.

109-timer-hup.t TEST 1: single timer - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 1: single timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 1: single timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:44 [alert] 19874\#0: worker process 20030 exited on signal 11" (req 1) 2020/10/27 04:59:44 [debug] 19874\#0: shmtx forced unlock
2020/10/27 04:59:44 [debug] 19874\#0: wake up, sigio 0
2020/10/27 04:59:44 [debug] 19874\#0: reap children
2020/10/27 04:59:44 [debug] 19874\#0: child: 0 20052 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:59:44 [debug] 19874\#0: child: 1 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:44 [debug] 19874\#0: child: 2 20030 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:59:44 [debug] 19874\#0: pass close channel s:2 pid:20030 to:20052
2020/10/27 04:59:44 [debug] 19874\#0: sigsuspend
2020/10/27 04:59:43 [debug] 20052\#0: malloc: 04B4A848:12
'
114-config.t TEST 1: ngx.config.debug - Can't connect to 127.0.0.1:1984: Connection refused ==20062== Invalid read of size 4
==20062== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20062== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20062== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20062== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20062== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20062== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20062== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20062== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20062== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20062== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20062== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20062== by 0x8062D5B: main (nginx.c:385)
==20062== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20062==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
114-config.t TEST 1: ngx.config.debug - Can't connect to 127.0.0.1:1984: Connection refused ==20062==
==20062== Process terminating with default action of signal 11 (SIGSEGV)
==20062== Access not within mapped region at address 0x0
==20062== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20062== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20062== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20062== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20062== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20062== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20062== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20062== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20062== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20062== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20062== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20062== by 0x8062D5B: main (nginx.c:385)
==20062== If you believe this happened as a result of a stack
==20062== overflow in your program's main thread (unlikely but
==20062== possible), you can try to increase the size of the
==20062== main thread stack using the --main-stacksize= flag.
==20062== The main thread stack size used in this run was 8388608.

114-config.t TEST 1: ngx.config.debug - status code ok got: ''
expected: '200'
114-config.t TEST 1: ngx.config.debug - response_body_like - response is expected () ''
doesn't match '(?^s:^debug: (?:true|false)$)'
114-config.t TEST 1: ngx.config.debug - Can't connect to 127.0.0.1:1984: Connection refused ==20063== Invalid read of size 4
==20063== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20063== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20063== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20063== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20063== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20063== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20063== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20063== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20063== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20063== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20063== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20063== by 0x8062D5B: main (nginx.c:385)
==20063== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20063==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
114-config.t TEST 1: ngx.config.debug - Can't connect to 127.0.0.1:1984: Connection refused ==20063==
==20063== Process terminating with default action of signal 11 (SIGSEGV)
==20063== Access not within mapped region at address 0x0
==20063== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20063== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20063== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20063== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20063== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20063== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20063== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20063== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20063== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20063== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20063== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20063== by 0x8062D5B: main (nginx.c:385)
==20063== If you believe this happened as a result of a stack
==20063== overflow in your program's main thread (unlikely but
==20063== possible), you can try to increase the size of the
==20063== main thread stack using the --main-stacksize= flag.
==20063== The main thread stack size used in this run was 8388608.

114-config.t TEST 1: ngx.config.debug - status code ok got: ''
expected: '200'
114-config.t TEST 1: ngx.config.debug - response_body_like - response is expected () ''
doesn't match '(?^s:^debug: (?:true|false)$)'
114-config.t TEST 2: ngx.config.subystem ==20075== Invalid read of size 4
==20075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20075== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20075== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20075== by 0x8062D5B: main (nginx.c:385)
==20075== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20075==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
114-config.t TEST 2: ngx.config.subystem ==20075==
==20075== Process terminating with default action of signal 11 (SIGSEGV)
==20075== Access not within mapped region at address 0x0
==20075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20075== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20075== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20075== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20075== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20075== by 0x8062D5B: main (nginx.c:385)
==20075== If you believe this happened as a result of a stack
==20075== overflow in your program's main thread (unlikely but
==20075== possible), you can try to increase the size of the
==20075== main thread stack using the --main-stacksize= flag.
==20075== The main thread stack size used in this run was 8388608.

114-config.t TEST 2: ngx.config.subystem - status code ok got: ''
expected: '200'
114-config.t TEST 2: ngx.config.subystem - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "subsystem: stream\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
114-config.t TEST 2: ngx.config.subystem ==20096== Invalid read of size 4
==20096== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20096== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20096== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20096== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20096== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20096== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20096== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20096== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20096== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20096== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20096== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20096== by 0x8062D5B: main (nginx.c:385)
==20096== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20096==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
114-config.t TEST 2: ngx.config.subystem ==20096==
==20096== Process terminating with default action of signal 11 (SIGSEGV)
==20096== Access not within mapped region at address 0x0
==20096== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20096== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20096== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20096== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20096== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20096== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20096== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20096== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20096== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20096== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20096== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20096== by 0x8062D5B: main (nginx.c:385)
==20096== If you believe this happened as a result of a stack
==20096== overflow in your program's main thread (unlikely but
==20096== possible), you can try to increase the size of the
==20096== main thread stack using the --main-stacksize= flag.
==20096== The main thread stack size used in this run was 8388608.

114-config.t TEST 2: ngx.config.subystem - status code ok got: ''
expected: '200'
114-config.t TEST 2: ngx.config.subystem - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "subsystem: stream\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
115-quote-sql-str.t TEST 4: \Z - Can't connect to 127.0.0.1:1984: Connection refused ==20105== Invalid read of size 4
==20105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20105== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20105== by 0x8062D5B: main (nginx.c:385)
==20105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 4: \Z - Can't connect to 127.0.0.1:1984: Connection refused ==20105==
==20105== Process terminating with default action of signal 11 (SIGSEGV)
==20105== Access not within mapped region at address 0x0
==20105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20105== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20105== by 0x8062D5B: main (nginx.c:385)
==20105== If you believe this happened as a result of a stack
==20105== overflow in your program's main thread (unlikely but
==20105== possible), you can try to increase the size of the
==20105== main thread stack using the --main-stacksize= flag.
==20105== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 4: \Z - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 4: \Z - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\Zb\Z'
'
115-quote-sql-str.t TEST 4: \Z - Can't connect to 127.0.0.1:1984: Connection refused ==20106== Invalid read of size 4
==20106== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20106== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20106== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20106== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20106== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20106== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20106== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20106== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20106== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20106== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20106== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20106== by 0x8062D5B: main (nginx.c:385)
==20106== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20106==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 4: \Z - Can't connect to 127.0.0.1:1984: Connection refused ==20106==
==20106== Process terminating with default action of signal 11 (SIGSEGV)
==20106== Access not within mapped region at address 0x0
==20106== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20106== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20106== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20106== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20106== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20106== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20106== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20106== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20106== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20106== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20106== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20106== by 0x8062D5B: main (nginx.c:385)
==20106== If you believe this happened as a result of a stack
==20106== overflow in your program's main thread (unlikely but
==20106== possible), you can try to increase the size of the
==20106== main thread stack using the --main-stacksize= flag.
==20106== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 4: \Z - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 4: \Z - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\Zb\Z'
'
115-quote-sql-str.t TEST 3: \b ==20118== Invalid read of size 4
==20118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20118== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20118== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20118== by 0x8062D5B: main (nginx.c:385)
==20118== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20118==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 3: \b ==20118==
==20118== Process terminating with default action of signal 11 (SIGSEGV)
==20118== Access not within mapped region at address 0x0
==20118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20118== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20118== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20118== by 0x8062D5B: main (nginx.c:385)
==20118== If you believe this happened as a result of a stack
==20118== overflow in your program's main thread (unlikely but
==20118== possible), you can try to increase the size of the
==20118== main thread stack using the --main-stacksize= flag.
==20118== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 3: \b - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 3: \b - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\bb\b'
'
115-quote-sql-str.t TEST 3: \b ==20139== Invalid read of size 4
==20139== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20139== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20139== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20139== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20139== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20139== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20139== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20139== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20139== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20139== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20139== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20139== by 0x8062D5B: main (nginx.c:385)
==20139== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20139==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 3: \b ==20139==
==20139== Process terminating with default action of signal 11 (SIGSEGV)
==20139== Access not within mapped region at address 0x0
==20139== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20139== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20139== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20139== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20139== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20139== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20139== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20139== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20139== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20139== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20139== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20139== by 0x8062D5B: main (nginx.c:385)
==20139== If you believe this happened as a result of a stack
==20139== overflow in your program's main thread (unlikely but
==20139== possible), you can try to increase the size of the
==20139== main thread stack using the --main-stacksize= flag.
==20139== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 3: \b - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 3: \b - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\bb\b'
'
115-quote-sql-str.t TEST 1: \0 ==20151== Invalid read of size 4
==20151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20151== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20151== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20151== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20151== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20151== by 0x8062D5B: main (nginx.c:385)
==20151== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20151==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 1: \0 ==20151==
==20151== Process terminating with default action of signal 11 (SIGSEGV)
==20151== Access not within mapped region at address 0x0
==20151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20151== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20151== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20151== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20151== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20151== by 0x8062D5B: main (nginx.c:385)
==20151== If you believe this happened as a result of a stack
==20151== overflow in your program's main thread (unlikely but
==20151== possible), you can try to increase the size of the
==20151== main thread stack using the --main-stacksize= flag.
==20151== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 1: \0 - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 1: \0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\0b\0'
'
115-quote-sql-str.t TEST 1: \0 ==20172== Invalid read of size 4
==20172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20172== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20172== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20172== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20172== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20172== by 0x8062D5B: main (nginx.c:385)
==20172== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20172==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 1: \0 ==20172==
==20172== Process terminating with default action of signal 11 (SIGSEGV)
==20172== Access not within mapped region at address 0x0
==20172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20172== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20172== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20172== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20172== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20172== by 0x8062D5B: main (nginx.c:385)
==20172== If you believe this happened as a result of a stack
==20172== overflow in your program's main thread (unlikely but
==20172== possible), you can try to increase the size of the
==20172== main thread stack using the --main-stacksize= flag.
==20172== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 1: \0 - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 1: \0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\0b\0'
'
115-quote-sql-str.t TEST 2: \t ==20184== Invalid read of size 4
==20184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20184== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20184== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20184== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20184== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20184== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20184== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20184== by 0x8062D5B: main (nginx.c:385)
==20184== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20184==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 2: \t ==20184==
==20184== Process terminating with default action of signal 11 (SIGSEGV)
==20184== Access not within mapped region at address 0x0
==20184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20184== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20184== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20184== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20184== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20184== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20184== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20184== by 0x8062D5B: main (nginx.c:385)
==20184== If you believe this happened as a result of a stack
==20184== overflow in your program's main thread (unlikely but
==20184== possible), you can try to increase the size of the
==20184== main thread stack using the --main-stacksize= flag.
==20184== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 2: \t - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 2: \t - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\tb\t'
'
115-quote-sql-str.t TEST 2: \t ==20205== Invalid read of size 4
==20205== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20205== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20205== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20205== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20205== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20205== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20205== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20205== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20205== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20205== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20205== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20205== by 0x8062D5B: main (nginx.c:385)
==20205== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20205==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
115-quote-sql-str.t TEST 2: \t ==20205==
==20205== Process terminating with default action of signal 11 (SIGSEGV)
==20205== Access not within mapped region at address 0x0
==20205== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20205== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20205== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20205== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20205== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20205== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20205== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20205== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20205== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20205== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20205== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20205== by 0x8062D5B: main (nginx.c:385)
==20205== If you believe this happened as a result of a stack
==20205== overflow in your program's main thread (unlikely but
==20205== possible), you can try to increase the size of the
==20205== main thread stack using the --main-stacksize= flag.
==20205== The main thread stack size used in this run was 8388608.

115-quote-sql-str.t TEST 2: \t - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 2: \t - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\tb\t'
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - Can't connect to 127.0.0.1:1984: Connection refused ==20214== Invalid read of size 4
==20214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20214== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20214== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20214== by 0x8062D5B: main (nginx.c:385)
==20214== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20214==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - Can't connect to 127.0.0.1:1984: Connection refused ==20214==
==20214== Process terminating with default action of signal 11 (SIGSEGV)
==20214== Access not within mapped region at address 0x0
==20214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20214== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20214== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20214== by 0x8062D5B: main (nginx.c:385)
==20214== If you believe this happened as a result of a stack
==20214== overflow in your program's main thread (unlikely but
==20214== possible), you can try to increase the size of the
==20214== main thread stack using the --main-stacksize= flag.
==20214== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-got 2 chunks.
-request body: hey, hello world
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:00:14 [alert] 20213\#0: worker process 20214 exited on signal 11" (req 0) 2020/10/27 05:00:14 [debug] 20213\#0: shmtx forced unlock
2020/10/27 05:00:14 [debug] 20213\#0: wake up, sigio 0
2020/10/27 05:00:14 [debug] 20213\#0: reap children
2020/10/27 05:00:14 [debug] 20213\#0: child: 0 20214 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:00:14 [debug] 20213\#0: channel 3:9
2020/10/27 05:00:14 [notice] 20213\#0: start worker process 20215
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - Can't connect to 127.0.0.1:1984: Connection refused ==20215== Invalid read of size 4
==20215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20215== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20215== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20215== by 0x8062D5B: main (nginx.c:385)
==20215== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20215==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - Can't connect to 127.0.0.1:1984: Connection refused ==20215==
==20215== Process terminating with default action of signal 11 (SIGSEGV)
==20215== Access not within mapped region at address 0x0
==20215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20215== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20215== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20215== by 0x8062D5B: main (nginx.c:385)
==20215== If you believe this happened as a result of a stack
==20215== overflow in your program's main thread (unlikely but
==20215== possible), you can try to increase the size of the
==20215== main thread stack using the --main-stacksize= flag.
==20215== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-got 2 chunks.
-request body: hey, hello world
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:00:14 [alert] 20213\#0: worker process 20215 exited on signal 11" (req 1) 2020/10/27 05:00:14 [debug] 20213\#0: shmtx forced unlock
2020/10/27 05:00:14 [debug] 20213\#0: wake up, sigio 0
2020/10/27 05:00:14 [debug] 20213\#0: reap children
2020/10/27 05:00:14 [debug] 20213\#0: child: 0 20215 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:00:14 [debug] 20213\#0: channel 3:9
2020/10/27 05:00:14 [notice] 20213\#0: start worker process 20216
'
116-raw-req-socket.t TEST 14: simulated lingering close ==20227== Invalid read of size 4
==20227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20227== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20227== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20227== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20227== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20227== by 0x8062D5B: main (nginx.c:385)
==20227== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20227==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 14: simulated lingering close ==20227==
==20227== Process terminating with default action of signal 11 (SIGSEGV)
==20227== Access not within mapped region at address 0x0
==20227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20227== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20227== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20227== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20227== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20227== by 0x8062D5B: main (nginx.c:385)
==20227== If you believe this happened as a result of a stack
==20227== overflow in your program's main thread (unlikely but
==20227== possible), you can try to increase the size of the
==20227== main thread stack using the --main-stacksize= flag.
==20227== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 14: simulated lingering close - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 14: simulated lingering close ==20248== Invalid read of size 4
==20248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20248== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20248== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20248== by 0x8062D5B: main (nginx.c:385)
==20248== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20248==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 14: simulated lingering close ==20248==
==20248== Process terminating with default action of signal 11 (SIGSEGV)
==20248== Access not within mapped region at address 0x0
==20248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20248== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20248== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20248== by 0x8062D5B: main (nginx.c:385)
==20248== If you believe this happened as a result of a stack
==20248== overflow in your program's main thread (unlikely but
==20248== possible), you can try to increase the size of the
==20248== main thread stack using the --main-stacksize= flag.
==20248== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 14: simulated lingering close - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 11: request body not read yet ==20260== Invalid read of size 4
==20260== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20260== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20260== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20260== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20260== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20260== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20260== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20260== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20260== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20260== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20260== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20260== by 0x8062D5B: main (nginx.c:385)
==20260== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20260==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 11: request body not read yet ==20260==
==20260== Process terminating with default action of signal 11 (SIGSEGV)
==20260== Access not within mapped region at address 0x0
==20260== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20260== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20260== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20260== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20260== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20260== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20260== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20260== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20260== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20260== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20260== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20260== by 0x8062D5B: main (nginx.c:385)
==20260== If you believe this happened as a result of a stack
==20260== overflow in your program's main thread (unlikely but
==20260== possible), you can try to increase the size of the
==20260== main thread stack using the --main-stacksize= flag.
==20260== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 11: request body not read yet - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 11: request body not read yet - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-HTTP/1.1 200 OK
-Content-Length: 5
-
-hello'
116-raw-req-socket.t TEST 11: request body not read yet ==20281== Invalid read of size 4
==20281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20281== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20281== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20281== by 0x8062D5B: main (nginx.c:385)
==20281== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 11: request body not read yet ==20281==
==20281== Process terminating with default action of signal 11 (SIGSEGV)
==20281== Access not within mapped region at address 0x0
==20281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20281== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20281== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20281== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20281== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20281== by 0x8062D5B: main (nginx.c:385)
==20281== If you believe this happened as a result of a stack
==20281== overflow in your program's main thread (unlikely but
==20281== possible), you can try to increase the size of the
==20281== main thread stack using the --main-stacksize= flag.
==20281== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 11: request body not read yet - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 11: request body not read yet - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-HTTP/1.1 200 OK
-Content-Length: 5
-
-hello'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) ==20293== Invalid read of size 4
==20293== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20293== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20293== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20293== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20293== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20293== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20293== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20293== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20293== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20293== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20293== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20293== by 0x8062D5B: main (nginx.c:385)
==20293== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20293==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) ==20293==
==20293== Process terminating with default action of signal 11 (SIGSEGV)
==20293== Access not within mapped region at address 0x0
==20293== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20293== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20293== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20293== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20293== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20293== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20293== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20293== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20293== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20293== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20293== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20293== by 0x8062D5B: main (nginx.c:385)
==20293== If you believe this happened as a result of a stack
==20293== overflow in your program's main thread (unlikely but
==20293== possible), you can try to increase the size of the
==20293== main thread stack using the --main-stacksize= flag.
==20293== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) ==20314== Invalid read of size 4
==20314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20314== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20314== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20314== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20314== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20314== by 0x8062D5B: main (nginx.c:385)
==20314== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20314==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) ==20314==
==20314== Process terminating with default action of signal 11 (SIGSEGV)
==20314== Access not within mapped region at address 0x0
==20314== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20314== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20314== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20314== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20314== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20314== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20314== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20314== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20314== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20314== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20314== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20314== by 0x8062D5B: main (nginx.c:385)
==20314== If you believe this happened as a result of a stack
==20314== overflow in your program's main thread (unlikely but
==20314== possible), you can try to increase the size of the
==20314== main thread stack using the --main-stacksize= flag.
==20314== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) ==20326== Invalid read of size 4
==20326== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20326== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20326== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20326== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20326== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20326== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20326== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20326== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20326== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20326== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20326== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20326== by 0x8062D5B: main (nginx.c:385)
==20326== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20326==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) ==20326==
==20326== Process terminating with default action of signal 11 (SIGSEGV)
==20326== Access not within mapped region at address 0x0
==20326== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20326== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20326== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20326== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20326== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20326== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20326== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20326== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20326== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20326== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20326== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20326== by 0x8062D5B: main (nginx.c:385)
==20326== If you believe this happened as a result of a stack
==20326== overflow in your program's main thread (unlikely but
==20326== possible), you can try to increase the size of the
==20326== main thread stack using the --main-stacksize= flag.
==20326== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) ==20347== Invalid read of size 4
==20347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20347== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20347== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20347== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20347== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20347== by 0x8062D5B: main (nginx.c:385)
==20347== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20347==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) ==20347==
==20347== Process terminating with default action of signal 11 (SIGSEGV)
==20347== Access not within mapped region at address 0x0
==20347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20347== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20347== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20347== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20347== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20347== by 0x8062D5B: main (nginx.c:385)
==20347== If you believe this happened as a result of a stack
==20347== overflow in your program's main thread (unlikely but
==20347== possible), you can try to increase the size of the
==20347== main thread stack using the --main-stacksize= flag.
==20347== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
116-raw-req-socket.t TEST 7: receive timeout ==20359== Invalid read of size 4
==20359== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20359== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20359== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20359== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20359== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20359== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20359== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20359== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20359== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20359== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20359== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20359== by 0x8062D5B: main (nginx.c:385)
==20359== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20359==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 7: receive timeout ==20359==
==20359== Process terminating with default action of signal 11 (SIGSEGV)
==20359== Access not within mapped region at address 0x0
==20359== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20359== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20359== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20359== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20359== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20359== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20359== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20359== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20359== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20359== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20359== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20359== by 0x8062D5B: main (nginx.c:385)
==20359== If you believe this happened as a result of a stack
==20359== overflow in your program's main thread (unlikely but
==20359== possible), you can try to increase the size of the
==20359== main thread stack using the --main-stacksize= flag.
==20359== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 7: receive timeout - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 7: receive timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:00:32 [alert] 20213\#0: worker process 20359 exited on signal 11" (req 0) 2020/10/27 05:00:32 [debug] 20213\#0: shmtx forced unlock
2020/10/27 05:00:32 [debug] 20213\#0: wake up, sigio 0
2020/10/27 05:00:32 [debug] 20213\#0: reap children
2020/10/27 05:00:32 [debug] 20213\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:00:32 [debug] 20213\#0: child: 1 20359 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:00:32 [debug] 20213\#0: channel 3:4
2020/10/27 05:00:32 [notice] 20213\#0: start worker process 20380
2020/10/27 05:00:32 [debug] 20213\#0: sigsuspend
2020/10/27 05:00:32 [debug] 20380\#0: malloc: 05D62D10:12
'
116-raw-req-socket.t TEST 7: receive timeout ==20380== Invalid read of size 4
==20380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20380== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20380== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20380== by 0x8062D5B: main (nginx.c:385)
==20380== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20380==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 7: receive timeout ==20380==
==20380== Process terminating with default action of signal 11 (SIGSEGV)
==20380== Access not within mapped region at address 0x0
==20380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20380== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20380== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20380== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20380== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20380== by 0x8062D5B: main (nginx.c:385)
==20380== If you believe this happened as a result of a stack
==20380== overflow in your program's main thread (unlikely but
==20380== possible), you can try to increase the size of the
==20380== main thread stack using the --main-stacksize= flag.
==20380== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 7: receive timeout - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 7: receive timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:00:32 [alert] 20213\#0: worker process 20380 exited on signal 11" (req 1) 2020/10/27 05:00:32 [debug] 20213\#0: shmtx forced unlock
2020/10/27 05:00:32 [debug] 20213\#0: wake up, sigio 0
2020/10/27 05:00:32 [debug] 20213\#0: reap children
2020/10/27 05:00:32 [debug] 20213\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:00:32 [debug] 20213\#0: child: 1 20380 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:00:32 [debug] 20213\#0: channel 3:4
2020/10/27 05:00:32 [notice] 20213\#0: start worker process 20381
2020/10/27 05:00:32 [debug] 20213\#0: sigsuspend
2020/10/27 05:00:32 [debug] 20381\#0: malloc: 05D62D10:12
'
116-raw-req-socket.t TEST 10: receiveuntil ==20392== Invalid read of size 4
==20392== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20392== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20392== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20392== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20392== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20392== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20392== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20392== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20392== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20392== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20392== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20392== by 0x8062D5B: main (nginx.c:385)
==20392== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20392==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 10: receiveuntil ==20392==
==20392== Process terminating with default action of signal 11 (SIGSEGV)
==20392== Access not within mapped region at address 0x0
==20392== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20392== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20392== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20392== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20392== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20392== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20392== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20392== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20392== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20392== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20392== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20392== by 0x8062D5B: main (nginx.c:385)
==20392== If you believe this happened as a result of a stack
==20392== overflow in your program's main thread (unlikely but
==20392== possible), you can try to increase the size of the
==20392== main thread stack using the --main-stacksize= flag.
==20392== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 10: receiveuntil - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 10: receiveuntil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1: received: hello, wo
'
116-raw-req-socket.t TEST 10: receiveuntil - pattern "attempt to receive data on a closed socket" should match a line in error.log (req 0)
116-raw-req-socket.t TEST 10: receiveuntil ==20413== Invalid read of size 4
==20413== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20413== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20413== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20413== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20413== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20413== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20413== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20413== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20413== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20413== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20413== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20413== by 0x8062D5B: main (nginx.c:385)
==20413== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20413==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 10: receiveuntil ==20413==
==20413== Process terminating with default action of signal 11 (SIGSEGV)
==20413== Access not within mapped region at address 0x0
==20413== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20413== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20413== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20413== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20413== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20413== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20413== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20413== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20413== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20413== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20413== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20413== by 0x8062D5B: main (nginx.c:385)
==20413== If you believe this happened as a result of a stack
==20413== overflow in your program's main thread (unlikely but
==20413== possible), you can try to increase the size of the
==20413== main thread stack using the --main-stacksize= flag.
==20413== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 10: receiveuntil - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 10: receiveuntil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1: received: hello, wo
'
116-raw-req-socket.t TEST 10: receiveuntil - pattern "attempt to receive data on a closed socket" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) ==20425== Invalid read of size 4
==20425== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20425== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20425== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20425== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20425== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20425== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20425== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20425== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20425== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20425== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20425== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20425== by 0x8062D5B: main (nginx.c:385)
==20425== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20425==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) ==20425==
==20425== Process terminating with default action of signal 11 (SIGSEGV)
==20425== Access not within mapped region at address 0x0
==20425== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20425== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20425== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20425== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20425== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20425== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20425== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20425== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20425== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20425== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20425== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20425== by 0x8062D5B: main (nginx.c:385)
==20425== If you believe this happened as a result of a stack
==20425== overflow in your program's main thread (unlikely but
==20425== possible), you can try to increase the size of the
==20425== main thread stack using the --main-stacksize= flag.
==20425== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) ==20446== Invalid read of size 4
==20446== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20446== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20446== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20446== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20446== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20446== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20446== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20446== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20446== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20446== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20446== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20446== by 0x8062D5B: main (nginx.c:385)
==20446== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20446==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) ==20446==
==20446== Process terminating with default action of signal 11 (SIGSEGV)
==20446== Access not within mapped region at address 0x0
==20446== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20446== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20446== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20446== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20446== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20446== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20446== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20446== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20446== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20446== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20446== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20446== by 0x8062D5B: main (nginx.c:385)
==20446== If you believe this happened as a result of a stack
==20446== overflow in your program's main thread (unlikely but
==20446== possible), you can try to increase the size of the
==20446== main thread stack using the --main-stacksize= flag.
==20446== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 1: sanity ==20458== Invalid read of size 4
==20458== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20458== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20458== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20458== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20458== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20458== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20458== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20458== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20458== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20458== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20458== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20458== by 0x8062D5B: main (nginx.c:385)
==20458== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20458==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 1: sanity ==20458==
==20458== Process terminating with default action of signal 11 (SIGSEGV)
==20458== Access not within mapped region at address 0x0
==20458== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20458== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20458== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20458== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20458== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20458== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20458== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20458== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20458== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20458== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20458== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20458== by 0x8062D5B: main (nginx.c:385)
==20458== If you believe this happened as a result of a stack
==20458== overflow in your program's main thread (unlikely but
==20458== possible), you can try to increase the size of the
==20458== main thread stack using the --main-stacksize= flag.
==20458== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1: received: hello
'
116-raw-req-socket.t TEST 1: sanity ==20479== Invalid read of size 4
==20479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20479== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20479== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20479== by 0x8062D5B: main (nginx.c:385)
==20479== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20479==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 1: sanity ==20479==
==20479== Process terminating with default action of signal 11 (SIGSEGV)
==20479== Access not within mapped region at address 0x0
==20479== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20479== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20479== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20479== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20479== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20479== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20479== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20479== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20479== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20479== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20479== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20479== by 0x8062D5B: main (nginx.c:385)
==20479== If you believe this happened as a result of a stack
==20479== overflow in your program's main thread (unlikely but
==20479== possible), you can try to increase the size of the
==20479== main thread stack using the --main-stacksize= flag.
==20479== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1: received: hello
'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output ==20522== Invalid read of size 4
==20522== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20522== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20522== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20522== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20522== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20522== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20522== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20522== by 0x8062D5B: main (nginx.c:385)
==20522== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20522==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output ==20522==
==20522== Process terminating with default action of signal 11 (SIGSEGV)
==20522== Access not within mapped region at address 0x0
==20522== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20522== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20522== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20522== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20522== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20522== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20522== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20522== by 0x8062D5B: main (nginx.c:385)
==20522== If you believe this happened as a result of a stack
==20522== overflow in your program's main thread (unlikely but
==20522== possible), you can try to increase the size of the
==20522== main thread stack using the --main-stacksize= flag.
==20522== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'it works
'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output ==20543== Invalid read of size 4
==20543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20543== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20543== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20543== by 0x8062D5B: main (nginx.c:385)
==20543== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20543==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output ==20543==
==20543== Process terminating with default action of signal 11 (SIGSEGV)
==20543== Access not within mapped region at address 0x0
==20543== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20543== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20543== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20543== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20543== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20543== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20543== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20543== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20543== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20543== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20543== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20543== by 0x8062D5B: main (nginx.c:385)
==20543== If you believe this happened as a result of a stack
==20543== overflow in your program's main thread (unlikely but
==20543== possible), you can try to increase the size of the
==20543== main thread stack using the --main-stacksize= flag.
==20543== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'it works
'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() ==20555== Invalid read of size 4
==20555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20555== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20555== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20555== by 0x8062D5B: main (nginx.c:385)
==20555== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20555==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() ==20555==
==20555== Process terminating with default action of signal 11 (SIGSEGV)
==20555== Access not within mapped region at address 0x0
==20555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20555== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20555== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20555== by 0x8062D5B: main (nginx.c:385)
==20555== If you believe this happened as a result of a stack
==20555== overflow in your program's main thread (unlikely but
==20555== possible), you can try to increase the size of the
==20555== main thread stack using the --main-stacksize= flag.
==20555== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - pattern "mysock handler aborted" should match a line in error.log (req 0)
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() ==20576== Invalid read of size 4
==20576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20576== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20576== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20576== by 0x8062D5B: main (nginx.c:385)
==20576== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20576==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() ==20576==
==20576== Process terminating with default action of signal 11 (SIGSEGV)
==20576== Access not within mapped region at address 0x0
==20576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20576== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20576== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20576== by 0x8062D5B: main (nginx.c:385)
==20576== If you believe this happened as a result of a stack
==20576== overflow in your program's main thread (unlikely but
==20576== possible), you can try to increase the size of the
==20576== main thread stack using the --main-stacksize= flag.
==20576== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - pattern "mysock handler aborted" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 2: multiple raw req sockets ==20588== Invalid read of size 4
==20588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20588== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20588== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20588== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20588== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20588== by 0x8062D5B: main (nginx.c:385)
==20588== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20588==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 2: multiple raw req sockets ==20588==
==20588== Process terminating with default action of signal 11 (SIGSEGV)
==20588== Access not within mapped region at address 0x0
==20588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20588== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20588== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20588== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20588== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20588== by 0x8062D5B: main (nginx.c:385)
==20588== If you believe this happened as a result of a stack
==20588== overflow in your program's main thread (unlikely but
==20588== possible), you can try to increase the size of the
==20588== main thread stack using the --main-stacksize= flag.
==20588== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 2: multiple raw req sockets - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 2: multiple raw req sockets ==20609== Invalid read of size 4
==20609== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20609== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20609== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20609== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20609== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20609== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20609== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20609== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20609== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20609== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20609== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20609== by 0x8062D5B: main (nginx.c:385)
==20609== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20609==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 2: multiple raw req sockets ==20609==
==20609== Process terminating with default action of signal 11 (SIGSEGV)
==20609== Access not within mapped region at address 0x0
==20609== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20609== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20609== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20609== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20609== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20609== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20609== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20609== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20609== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20609== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20609== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20609== by 0x8062D5B: main (nginx.c:385)
==20609== If you believe this happened as a result of a stack
==20609== overflow in your program's main thread (unlikely but
==20609== possible), you can try to increase the size of the
==20609== main thread stack using the --main-stacksize= flag.
==20609== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 2: multiple raw req sockets - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) ==20632== Invalid read of size 4
==20632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20632== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20632== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20632== by 0x8062D5B: main (nginx.c:385)
==20632== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20632==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) ==20632==
==20632== Process terminating with default action of signal 11 (SIGSEGV)
==20632== Access not within mapped region at address 0x0
==20632== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20632== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20632== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20632== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20632== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20632== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20632== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20632== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20632== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20632== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20632== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20632== by 0x8062D5B: main (nginx.c:385)
==20632== If you believe this happened as a result of a stack
==20632== overflow in your program's main thread (unlikely but
==20632== possible), you can try to increase the size of the
==20632== main thread stack using the --main-stacksize= flag.
==20632== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) ==20653== Invalid read of size 4
==20653== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20653== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20653== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20653== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20653== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20653== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20653== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20653== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20653== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20653== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20653== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20653== by 0x8062D5B: main (nginx.c:385)
==20653== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20653==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) ==20653==
==20653== Process terminating with default action of signal 11 (SIGSEGV)
==20653== Access not within mapped region at address 0x0
==20653== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20653== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20653== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20653== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20653== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20653== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20653== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20653== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20653== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20653== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20653== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20653== by 0x8062D5B: main (nginx.c:385)
==20653== If you believe this happened as a result of a stack
==20653== overflow in your program's main thread (unlikely but
==20653== possible), you can try to increase the size of the
==20653== main thread stack using the --main-stacksize= flag.
==20653== The main thread stack size used in this run was 8388608.

116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 2: send timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20662== Invalid read of size 4
==20662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20662== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20662== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20662== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20662== by 0x8062D5B: main (nginx.c:385)
==20662== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20662==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
117-raw-req-socket-timeout.t TEST 2: send timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20662==
==20662== Process terminating with default action of signal 11 (SIGSEGV)
==20662== Access not within mapped region at address 0x0
==20662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20662== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20662== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20662== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20662== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20662== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20662== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20662== by 0x8062D5B: main (nginx.c:385)
==20662== If you believe this happened as a result of a stack
==20662== overflow in your program's main thread (unlikely but
==20662== possible), you can try to increase the size of the
==20662== main thread stack using the --main-stacksize= flag.
==20662== The main thread stack size used in this run was 8388608.

117-raw-req-socket-timeout.t TEST 2: send timeout - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 2: send timeout - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "stream lua tcp socket write timed out" should match a line in error.log (req 0)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "server: failed to send: timeout" should match a line in error.log (req 0)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:01:09 [alert] 20661\#0: worker process 20662 exited on signal 11" (req 0) 2020/10/27 05:01:09 [debug] 20661\#0: shmtx forced unlock
2020/10/27 05:01:09 [debug] 20661\#0: wake up, sigio 0
2020/10/27 05:01:09 [debug] 20661\#0: reap children
2020/10/27 05:01:09 [debug] 20661\#0: child: 0 20662 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:01:09 [debug] 20661\#0: channel 3:9
'
117-raw-req-socket-timeout.t TEST 2: send timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20663== Invalid read of size 4
==20663== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20663== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20663== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20663== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20663== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20663== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20663== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20663== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20663== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20663== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20663== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20663== by 0x8062D5B: main (nginx.c:385)
==20663== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20663==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
117-raw-req-socket-timeout.t TEST 2: send timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20663==
==20663== Process terminating with default action of signal 11 (SIGSEGV)
==20663== Access not within mapped region at address 0x0
==20663== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20663== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20663== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20663== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20663== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20663== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20663== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20663== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20663== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20663== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20663== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20663== by 0x8062D5B: main (nginx.c:385)
==20663== If you believe this happened as a result of a stack
==20663== overflow in your program's main thread (unlikely but
==20663== possible), you can try to increase the size of the
==20663== main thread stack using the --main-stacksize= flag.
==20663== The main thread stack size used in this run was 8388608.

117-raw-req-socket-timeout.t TEST 2: send timeout - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 2: send timeout - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "stream lua tcp socket write timed out" should match a line in error.log (req 1)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "server: failed to send: timeout" should match a line in error.log (req 1)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:01:09 [alert] 20661\#0: worker process 20663 exited on signal 11" (req 1) 2020/10/27 05:01:09 [debug] 20661\#0: shmtx forced unlock
2020/10/27 05:01:09 [debug] 20661\#0: wake up, sigio 0
2020/10/27 05:01:09 [debug] 20661\#0: reap children
2020/10/27 05:01:09 [debug] 20661\#0: child: 0 20663 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:01:09 [debug] 20661\#0: channel 3:9
2020/10/27 05:01:09 [notice] 20661\#0: start worker process 20664
'
117-raw-req-socket-timeout.t TEST 1: pending response data ==20671== Invalid read of size 4
==20671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20671== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20671== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20671== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20671== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20671== by 0x8062D5B: main (nginx.c:385)
==20671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
117-raw-req-socket-timeout.t TEST 1: pending response data ==20671==
==20671== Process terminating with default action of signal 11 (SIGSEGV)
==20671== Access not within mapped region at address 0x0
==20671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20671== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20671== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20671== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20671== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20671== by 0x8062D5B: main (nginx.c:385)
==20671== If you believe this happened as a result of a stack
==20671== overflow in your program's main thread (unlikely but
==20671== possible), you can try to increase the size of the
==20671== main thread stack using the --main-stacksize= flag.
==20671== The main thread stack size used in this run was 8388608.

117-raw-req-socket-timeout.t TEST 1: pending response data - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 1: pending response data - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
117-raw-req-socket-timeout.t TEST 1: pending response data ==20692== Invalid read of size 4
==20692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20692== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20692== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20692== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20692== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20692== by 0x8062D5B: main (nginx.c:385)
==20692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
117-raw-req-socket-timeout.t TEST 1: pending response data ==20692==
==20692== Process terminating with default action of signal 11 (SIGSEGV)
==20692== Access not within mapped region at address 0x0
==20692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20692== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20692== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20692== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20692== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20692== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20692== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20692== by 0x8062D5B: main (nginx.c:385)
==20692== If you believe this happened as a result of a stack
==20692== overflow in your program's main thread (unlikely but
==20692== possible), you can try to increase the size of the
==20692== main thread stack using the --main-stacksize= flag.
==20692== The main thread stack size used in this run was 8388608.

117-raw-req-socket-timeout.t TEST 1: pending response data - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 1: pending response data - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
119-config-prefix.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==20701== Invalid read of size 4
==20701== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20701== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20701== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20701== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20701== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20701== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20701== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20701== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20701== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20701== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20701== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20701== by 0x8062D5B: main (nginx.c:385)
==20701== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20701==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
119-config-prefix.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==20701==
==20701== Process terminating with default action of signal 11 (SIGSEGV)
==20701== Access not within mapped region at address 0x0
==20701== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20701== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20701== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20701== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20701== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20701== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20701== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20701== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20701== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20701== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20701== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20701== by 0x8062D5B: main (nginx.c:385)
==20701== If you believe this happened as a result of a stack
==20701== overflow in your program's main thread (unlikely but
==20701== possible), you can try to increase the size of the
==20701== main thread stack using the --main-stacksize= flag.
==20701== The main thread stack size used in this run was 8388608.

119-config-prefix.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
119-config-prefix.t TEST 1: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:^prefix: \/\S+$)'
119-config-prefix.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==20702== Invalid read of size 4
==20702== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20702== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20702== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20702== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20702== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20702== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20702== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20702== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20702== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20702== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20702== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20702== by 0x8062D5B: main (nginx.c:385)
==20702== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20702==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
119-config-prefix.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==20702==
==20702== Process terminating with default action of signal 11 (SIGSEGV)
==20702== Access not within mapped region at address 0x0
==20702== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20702== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20702== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20702== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20702== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20702== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20702== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20702== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20702== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20702== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20702== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20702== by 0x8062D5B: main (nginx.c:385)
==20702== If you believe this happened as a result of a stack
==20702== overflow in your program's main thread (unlikely but
==20702== possible), you can try to increase the size of the
==20702== main thread stack using the --main-stacksize= flag.
==20702== The main thread stack size used in this run was 8388608.

119-config-prefix.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
119-config-prefix.t TEST 1: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:^prefix: \/\S+$)'
120-re-find.t TEST 23: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20711== Invalid read of size 4
==20711== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20711== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20711== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20711== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20711== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20711== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20711== by 0x8062D5B: main (nginx.c:385)
==20711== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 23: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20711==
==20711== Process terminating with default action of signal 11 (SIGSEGV)
==20711== Access not within mapped region at address 0x0
==20711== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20711== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20711== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20711== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20711== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20711== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20711== by 0x8062D5B: main (nginx.c:385)
==20711== If you believe this happened as a result of a stack
==20711== overflow in your program's main thread (unlikely but
==20711== possible), you can try to increase the size of the
==20711== main thread stack using the --main-stacksize= flag.
==20711== The main thread stack size used in this run was 8388608.
==20711== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,878
==20711== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20711== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20711== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20711== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20711== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20711== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20711== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20711== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20711== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20711== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20711== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20711== by 0x40BB675: trace_state (lj_trace.c:690)
==20711== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20711== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20711== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20711== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20711== by 0x407FA29: lua_resume (lj_api.c:1296)
==20711== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20711== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20711== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20711== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20711== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20711== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20711== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20711== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20711== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20711== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==20711== by 0x8062D5B: main (nginx.c:385)
==20711==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 23: just not hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 23: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
120-re-find.t TEST 23: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20712== Invalid read of size 4
==20712== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20712== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20712== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20712== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20712== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20712== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20712== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20712== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20712== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20712== by 0x8062D5B: main (nginx.c:385)
==20712== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20712==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 23: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20712==
==20712== Process terminating with default action of signal 11 (SIGSEGV)
==20712== Access not within mapped region at address 0x0
==20712== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20712== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20712== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20712== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20712== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20712== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20712== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20712== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20712== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20712== by 0x8062D5B: main (nginx.c:385)
==20712== If you believe this happened as a result of a stack
==20712== overflow in your program's main thread (unlikely but
==20712== possible), you can try to increase the size of the
==20712== main thread stack using the --main-stacksize= flag.
==20712== The main thread stack size used in this run was 8388608.
==20712== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,878
==20712== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20712== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20712== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20712== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20712== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20712== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20712== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20712== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20712== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20712== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20712== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20712== by 0x40BB675: trace_state (lj_trace.c:690)
==20712== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20712== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20712== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20712== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20712== by 0x407FA29: lua_resume (lj_api.c:1296)
==20712== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20712== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20712== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20712== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20712== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20712== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20712== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20712== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20712== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20712== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20712== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20712== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20712== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20712== by 0x8062D5B: main (nginx.c:385)
==20712==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 23: just not hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 23: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
120-re-find.t TEST 19: named subpatterns w/ extraction ==20725== Invalid read of size 4
==20725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20725== by 0x8062D5B: main (nginx.c:385)
==20725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 19: named subpatterns w/ extraction ==20725==
==20725== Process terminating with default action of signal 11 (SIGSEGV)
==20725== Access not within mapped region at address 0x0
==20725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20725== by 0x8062D5B: main (nginx.c:385)
==20725== If you believe this happened as a result of a stack
==20725== overflow in your program's main thread (unlikely but
==20725== possible), you can try to increase the size of the
==20725== main thread stack using the --main-stacksize= flag.
==20725== The main thread stack size used in this run was 8388608.
==20725== 1,024 bytes in 1 blocks are definitely lost in loss record 2,658 of 2,740
==20725== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20725== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20725== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20725== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20725== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20725== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20725== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20725== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20725== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20725== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20725== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20725== by 0x40BB675: trace_state (lj_trace.c:690)
==20725== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20725== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20725== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20725== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20725== by 0x407FA29: lua_resume (lj_api.c:1296)
==20725== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20725== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20725== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20725== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20725== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20725== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20725== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20725== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20725== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20725== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20725== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20725== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20725== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20725== by 0x8062D5B: main (nginx.c:385)
==20725==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 19: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
120-re-find.t TEST 19: named subpatterns w/ extraction - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 19: named subpatterns w/ extraction ==20746== Invalid read of size 4
==20746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20746== by 0x8062D5B: main (nginx.c:385)
==20746== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20746==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 19: named subpatterns w/ extraction ==20746==
==20746== Process terminating with default action of signal 11 (SIGSEGV)
==20746== Access not within mapped region at address 0x0
==20746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20746== by 0x8062D5B: main (nginx.c:385)
==20746== If you believe this happened as a result of a stack
==20746== overflow in your program's main thread (unlikely but
==20746== possible), you can try to increase the size of the
==20746== main thread stack using the --main-stacksize= flag.
==20746== The main thread stack size used in this run was 8388608.
==20746== 1,024 bytes in 1 blocks are definitely lost in loss record 2,658 of 2,740
==20746== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20746== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20746== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20746== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20746== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20746== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20746== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20746== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20746== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20746== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20746== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20746== by 0x40BB675: trace_state (lj_trace.c:690)
==20746== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20746== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20746== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20746== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20746== by 0x407FA29: lua_resume (lj_api.c:1296)
==20746== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20746== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20746== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20746== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20746== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20746== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20746== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20746== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20746== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20746== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20746== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20746== by 0x8062D5B: main (nginx.c:385)
==20746==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 19: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
120-re-find.t TEST 19: named subpatterns w/ extraction - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 28: specify the group (4) ==20758== Invalid read of size 4
==20758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20758== by 0x8062D5B: main (nginx.c:385)
==20758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 28: specify the group (4) ==20758==
==20758== Process terminating with default action of signal 11 (SIGSEGV)
==20758== Access not within mapped region at address 0x0
==20758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20758== by 0x8062D5B: main (nginx.c:385)
==20758== If you believe this happened as a result of a stack
==20758== overflow in your program's main thread (unlikely but
==20758== possible), you can try to increase the size of the
==20758== main thread stack using the --main-stacksize= flag.
==20758== The main thread stack size used in this run was 8388608.
==20758== 1,024 bytes in 1 blocks are definitely lost in loss record 2,763 of 2,870
==20758== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20758== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20758== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20758== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20758== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20758== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20758== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20758== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20758== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20758== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20758== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20758== by 0x40BB675: trace_state (lj_trace.c:690)
==20758== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20758== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20758== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20758== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20758== by 0x407FA29: lua_resume (lj_api.c:1296)
==20758== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20758== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20758== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20758== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20758== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20758== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20758== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20758== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20758== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20758== by 0x8062D5B: main (nginx.c:385)
==20758==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 28: specify the group (4) - status code ok got: ''
expected: '200'
120-re-find.t TEST 28: specify the group (4) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 28: specify the group (4) ==20779== Invalid read of size 4
==20779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20779== by 0x8062D5B: main (nginx.c:385)
==20779== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20779==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 28: specify the group (4) ==20779==
==20779== Process terminating with default action of signal 11 (SIGSEGV)
==20779== Access not within mapped region at address 0x0
==20779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20779== by 0x8062D5B: main (nginx.c:385)
==20779== If you believe this happened as a result of a stack
==20779== overflow in your program's main thread (unlikely but
==20779== possible), you can try to increase the size of the
==20779== main thread stack using the --main-stacksize= flag.
==20779== The main thread stack size used in this run was 8388608.
==20779== 1,024 bytes in 1 blocks are definitely lost in loss record 2,763 of 2,870
==20779== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20779== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20779== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20779== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20779== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20779== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20779== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20779== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20779== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20779== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20779== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20779== by 0x40BB675: trace_state (lj_trace.c:690)
==20779== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20779== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20779== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20779== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20779== by 0x407FA29: lua_resume (lj_api.c:1296)
==20779== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20779== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20779== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20779== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20779== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20779== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20779== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20779== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20779== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20779== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20779== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20779== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20779== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20779== by 0x8062D5B: main (nginx.c:385)
==20779==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 28: specify the group (4) - status code ok got: ''
expected: '200'
120-re-find.t TEST 28: specify the group (4) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 14: bad option ==20791== Invalid read of size 4
==20791== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20791== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20791== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20791== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20791== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20791== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20791== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20791== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20791== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20791== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20791== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20791== by 0x8062D5B: main (nginx.c:385)
==20791== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20791==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 14: bad option ==20791==
==20791== Process terminating with default action of signal 11 (SIGSEGV)
==20791== Access not within mapped region at address 0x0
==20791== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20791== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20791== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20791== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20791== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20791== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20791== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20791== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20791== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20791== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20791== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20791== by 0x8062D5B: main (nginx.c:385)
==20791== If you believe this happened as a result of a stack
==20791== overflow in your program's main thread (unlikely but
==20791== possible), you can try to increase the size of the
==20791== main thread stack using the --main-stacksize= flag.
==20791== The main thread stack size used in this run was 8388608.

120-re-find.t TEST 14: bad option - status code ok got: ''
expected: '200'
120-re-find.t TEST 14: bad option ==20812== Invalid read of size 4
==20812== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20812== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20812== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20812== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20812== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20812== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20812== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20812== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20812== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20812== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20812== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20812== by 0x8062D5B: main (nginx.c:385)
==20812== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20812==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 14: bad option ==20812==
==20812== Process terminating with default action of signal 11 (SIGSEGV)
==20812== Access not within mapped region at address 0x0
==20812== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20812== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20812== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20812== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20812== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20812== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20812== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20812== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20812== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20812== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20812== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20812== by 0x8062D5B: main (nginx.c:385)
==20812== If you believe this happened as a result of a stack
==20812== overflow in your program's main thread (unlikely but
==20812== possible), you can try to increase the size of the
==20812== main thread stack using the --main-stacksize= flag.
==20812== The main thread stack size used in this run was 8388608.

120-re-find.t TEST 14: bad option - status code ok got: ''
expected: '200'
120-re-find.t TEST 24: specify the group (1) ==20824== Invalid read of size 4
==20824== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20824== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20824== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20824== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20824== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20824== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20824== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20824== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20824== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20824== by 0x8062D5B: main (nginx.c:385)
==20824== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20824==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 24: specify the group (1) ==20824==
==20824== Process terminating with default action of signal 11 (SIGSEGV)
==20824== Access not within mapped region at address 0x0
==20824== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20824== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20824== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20824== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20824== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20824== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20824== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20824== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20824== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20824== by 0x8062D5B: main (nginx.c:385)
==20824== If you believe this happened as a result of a stack
==20824== overflow in your program's main thread (unlikely but
==20824== possible), you can try to increase the size of the
==20824== main thread stack using the --main-stacksize= flag.
==20824== The main thread stack size used in this run was 8388608.
==20824== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==20824== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20824== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20824== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20824== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20824== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20824== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20824== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20824== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20824== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20824== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20824== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20824== by 0x40BB675: trace_state (lj_trace.c:690)
==20824== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20824== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20824== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20824== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20824== by 0x407FA29: lua_resume (lj_api.c:1296)
==20824== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20824== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20824== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20824== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20824== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20824== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20824== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20824== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20824== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20824== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20824== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20824== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20824== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20824== by 0x8062D5B: main (nginx.c:385)
==20824==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 24: specify the group (1) - status code ok got: ''
expected: '200'
120-re-find.t TEST 24: specify the group (1) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 8
-matched: 1
'
120-re-find.t TEST 24: specify the group (1) ==20845== Invalid read of size 4
==20845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20845== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20845== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20845== by 0x8062D5B: main (nginx.c:385)
==20845== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20845==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 24: specify the group (1) ==20845==
==20845== Process terminating with default action of signal 11 (SIGSEGV)
==20845== Access not within mapped region at address 0x0
==20845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20845== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20845== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20845== by 0x8062D5B: main (nginx.c:385)
==20845== If you believe this happened as a result of a stack
==20845== overflow in your program's main thread (unlikely but
==20845== possible), you can try to increase the size of the
==20845== main thread stack using the --main-stacksize= flag.
==20845== The main thread stack size used in this run was 8388608.
==20845== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,872
==20845== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20845== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20845== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20845== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20845== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20845== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20845== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20845== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20845== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20845== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20845== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20845== by 0x40BB675: trace_state (lj_trace.c:690)
==20845== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20845== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20845== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20845== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20845== by 0x407FA29: lua_resume (lj_api.c:1296)
==20845== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20845== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20845== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20845== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20845== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20845== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20845== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20845== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20845== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20845== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20845== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20845== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20845== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20845== by 0x8062D5B: main (nginx.c:385)
==20845==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 24: specify the group (1) - status code ok got: ''
expected: '200'
120-re-find.t TEST 24: specify the group (1) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 8
-matched: 1
'
120-re-find.t TEST 15: anchored match (failed) ==20857== Invalid read of size 4
==20857== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20857== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20857== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20857== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20857== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20857== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20857== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20857== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20857== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20857== by 0x8062D5B: main (nginx.c:385)
==20857== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20857==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 15: anchored match (failed) ==20857==
==20857== Process terminating with default action of signal 11 (SIGSEGV)
==20857== Access not within mapped region at address 0x0
==20857== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20857== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20857== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20857== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20857== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20857== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20857== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20857== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20857== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20857== by 0x8062D5B: main (nginx.c:385)
==20857== If you believe this happened as a result of a stack
==20857== overflow in your program's main thread (unlikely but
==20857== possible), you can try to increase the size of the
==20857== main thread stack using the --main-stacksize= flag.
==20857== The main thread stack size used in this run was 8388608.
==20857== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,854
==20857== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20857== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20857== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20857== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20857== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20857== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20857== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20857== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20857== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20857== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20857== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20857== by 0x40BB675: trace_state (lj_trace.c:690)
==20857== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20857== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20857== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20857== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20857== by 0x407FA29: lua_resume (lj_api.c:1296)
==20857== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20857== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20857== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20857== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20857== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20857== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20857== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20857== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20857== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20857== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20857== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20857== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20857== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20857== by 0x8062D5B: main (nginx.c:385)
==20857==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 15: anchored match (failed) - status code ok got: ''
expected: '200'
120-re-find.t TEST 15: anchored match (failed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 15: anchored match (failed) ==20878== Invalid read of size 4
==20878== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20878== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20878== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20878== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20878== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20878== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20878== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20878== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20878== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20878== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20878== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20878== by 0x8062D5B: main (nginx.c:385)
==20878== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20878==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 15: anchored match (failed) ==20878==
==20878== Process terminating with default action of signal 11 (SIGSEGV)
==20878== Access not within mapped region at address 0x0
==20878== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20878== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20878== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20878== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20878== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20878== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20878== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20878== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20878== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20878== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20878== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20878== by 0x8062D5B: main (nginx.c:385)
==20878== If you believe this happened as a result of a stack
==20878== overflow in your program's main thread (unlikely but
==20878== possible), you can try to increase the size of the
==20878== main thread stack using the --main-stacksize= flag.
==20878== The main thread stack size used in this run was 8388608.
==20878== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,854
==20878== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20878== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20878== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20878== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20878== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20878== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20878== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20878== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20878== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20878== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20878== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20878== by 0x40BB675: trace_state (lj_trace.c:690)
==20878== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20878== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20878== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20878== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20878== by 0x407FA29: lua_resume (lj_api.c:1296)
==20878== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20878== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20878== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20878== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20878== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20878== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20878== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20878== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20878== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20878== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20878== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20878== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20878== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20878== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20878== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20878== by 0x8062D5B: main (nginx.c:385)
==20878==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 15: anchored match (failed) - status code ok got: ''
expected: '200'
120-re-find.t TEST 15: anchored match (failed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 3: multiple captures (with o) ==20890== Invalid read of size 4
==20890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20890== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20890== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20890== by 0x8062D5B: main (nginx.c:385)
==20890== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20890==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 3: multiple captures (with o) ==20890==
==20890== Process terminating with default action of signal 11 (SIGSEGV)
==20890== Access not within mapped region at address 0x0
==20890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20890== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20890== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20890== by 0x8062D5B: main (nginx.c:385)
==20890== If you believe this happened as a result of a stack
==20890== overflow in your program's main thread (unlikely but
==20890== possible), you can try to increase the size of the
==20890== main thread stack using the --main-stacksize= flag.
==20890== The main thread stack size used in this run was 8388608.
==20890== 1,024 bytes in 1 blocks are definitely lost in loss record 2,780 of 2,887
==20890== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20890== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20890== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20890== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20890== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20890== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20890== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20890== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20890== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20890== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20890== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20890== by 0x40BB675: trace_state (lj_trace.c:690)
==20890== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20890== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20890== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20890== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20890== by 0x407FA29: lua_resume (lj_api.c:1296)
==20890== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20890== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20890== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20890== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20890== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20890== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20890== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20890== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20890== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20890== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20890== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20890== by 0x8062D5B: main (nginx.c:385)
==20890==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 3: multiple captures (with o) - status code ok got: ''
expected: '200'
120-re-find.t TEST 3: multiple captures (with o) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 3: multiple captures (with o) ==20911== Invalid read of size 4
==20911== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20911== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20911== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20911== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20911== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20911== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20911== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20911== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20911== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20911== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20911== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20911== by 0x8062D5B: main (nginx.c:385)
==20911== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20911==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 3: multiple captures (with o) ==20911==
==20911== Process terminating with default action of signal 11 (SIGSEGV)
==20911== Access not within mapped region at address 0x0
==20911== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20911== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20911== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20911== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20911== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20911== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20911== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20911== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20911== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20911== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20911== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20911== by 0x8062D5B: main (nginx.c:385)
==20911== If you believe this happened as a result of a stack
==20911== overflow in your program's main thread (unlikely but
==20911== possible), you can try to increase the size of the
==20911== main thread stack using the --main-stacksize= flag.
==20911== The main thread stack size used in this run was 8388608.

120-re-find.t TEST 3: multiple captures (with o) - status code ok got: ''
expected: '200'
120-re-find.t TEST 3: multiple captures (with o) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 7: UTF-8 mode ==20923== Invalid read of size 4
==20923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20923== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20923== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20923== by 0x8062D5B: main (nginx.c:385)
==20923== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20923==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 7: UTF-8 mode ==20923==
==20923== Process terminating with default action of signal 11 (SIGSEGV)
==20923== Access not within mapped region at address 0x0
==20923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20923== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20923== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20923== by 0x8062D5B: main (nginx.c:385)
==20923== If you believe this happened as a result of a stack
==20923== overflow in your program's main thread (unlikely but
==20923== possible), you can try to increase the size of the
==20923== main thread stack using the --main-stacksize= flag.
==20923== The main thread stack size used in this run was 8388608.
==20923== 1,024 bytes in 1 blocks are definitely lost in loss record 2,771 of 2,878
==20923== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20923== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20923== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20923== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20923== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20923== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20923== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20923== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20923== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20923== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20923== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20923== by 0x40BB675: trace_state (lj_trace.c:690)
==20923== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20923== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20923== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20923== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20923== by 0x407FA29: lua_resume (lj_api.c:1296)
==20923== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20923== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20923== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20923== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20923== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20923== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20923== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20923== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20923== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20923== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20923== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20923== by 0x8062D5B: main (nginx.c:385)
==20923==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 7: UTF-8 mode - status code ok got: ''
expected: '200'
120-re-find.t TEST 7: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
120-re-find.t TEST 7: UTF-8 mode ==20944== Invalid read of size 4
==20944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20944== by 0x8062D5B: main (nginx.c:385)
==20944== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20944==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 7: UTF-8 mode ==20944==
==20944== Process terminating with default action of signal 11 (SIGSEGV)
==20944== Access not within mapped region at address 0x0
==20944== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20944== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20944== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20944== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20944== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20944== by 0x8062D5B: main (nginx.c:385)
==20944== If you believe this happened as a result of a stack
==20944== overflow in your program's main thread (unlikely but
==20944== possible), you can try to increase the size of the
==20944== main thread stack using the --main-stacksize= flag.
==20944== The main thread stack size used in this run was 8388608.
==20944== 1,024 bytes in 1 blocks are definitely lost in loss record 2,771 of 2,878
==20944== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20944== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20944== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20944== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20944== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20944== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20944== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20944== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20944== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20944== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20944== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20944== by 0x40BB675: trace_state (lj_trace.c:690)
==20944== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20944== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20944== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20944== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20944== by 0x407FA29: lua_resume (lj_api.c:1296)
==20944== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20944== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20944== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20944== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20944== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20944== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20944== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20944== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20944== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20944== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20944== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20944== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20944== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20944== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20944== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20944== by 0x8062D5B: main (nginx.c:385)
==20944==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 7: UTF-8 mode - status code ok got: ''
expected: '200'
120-re-find.t TEST 7: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
120-re-find.t TEST 12: extended mode (ignore whitespaces) ==20956== Invalid read of size 4
==20956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20956== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20956== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20956== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20956== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20956== by 0x8062D5B: main (nginx.c:385)
==20956== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20956==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 12: extended mode (ignore whitespaces) ==20956==
==20956== Process terminating with default action of signal 11 (SIGSEGV)
==20956== Access not within mapped region at address 0x0
==20956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20956== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20956== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20956== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20956== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20956== by 0x8062D5B: main (nginx.c:385)
==20956== If you believe this happened as a result of a stack
==20956== overflow in your program's main thread (unlikely but
==20956== possible), you can try to increase the size of the
==20956== main thread stack using the --main-stacksize= flag.
==20956== The main thread stack size used in this run was 8388608.

120-re-find.t TEST 12: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 2
-matched: he
'
120-re-find.t TEST 12: extended mode (ignore whitespaces) ==20977== Invalid read of size 4
==20977== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20977== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20977== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20977== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20977== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20977== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20977== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20977== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20977== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20977== by 0x8062D5B: main (nginx.c:385)
==20977== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20977==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 12: extended mode (ignore whitespaces) ==20977==
==20977== Process terminating with default action of signal 11 (SIGSEGV)
==20977== Access not within mapped region at address 0x0
==20977== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20977== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20977== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20977== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20977== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20977== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20977== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20977== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20977== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20977== by 0x8062D5B: main (nginx.c:385)
==20977== If you believe this happened as a result of a stack
==20977== overflow in your program's main thread (unlikely but
==20977== possible), you can try to increase the size of the
==20977== main thread stack using the --main-stacksize= flag.
==20977== The main thread stack size used in this run was 8388608.
==20977== 1,024 bytes in 1 blocks are definitely lost in loss record 2,837 of 2,960
==20977== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20977== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20977== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20977== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20977== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20977== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20977== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20977== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20977== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20977== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20977== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20977== by 0x40BB675: trace_state (lj_trace.c:690)
==20977== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20977== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20977== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20977== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20977== by 0x407FA29: lua_resume (lj_api.c:1296)
==20977== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20977== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20977== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20977== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20977== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20977== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20977== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20977== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20977== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20977== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20977== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20977== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==20977== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==20977== by 0x8062D5B: main (nginx.c:385)
==20977==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 12: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 2
-matched: he
'
120-re-find.t TEST 30: nil submatch (1st) ==20989== Invalid read of size 4
==20989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20989== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20989== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20989== by 0x8062D5B: main (nginx.c:385)
==20989== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20989==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 30: nil submatch (1st) ==20989==
==20989== Process terminating with default action of signal 11 (SIGSEGV)
==20989== Access not within mapped region at address 0x0
==20989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20989== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20989== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20989== by 0x8062D5B: main (nginx.c:385)
==20989== If you believe this happened as a result of a stack
==20989== overflow in your program's main thread (unlikely but
==20989== possible), you can try to increase the size of the
==20989== main thread stack using the --main-stacksize= flag.
==20989== The main thread stack size used in this run was 8388608.
==20989== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,885
==20989== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20989== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20989== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20989== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20989== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20989== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20989== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20989== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20989== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20989== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20989== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20989== by 0x40BB675: trace_state (lj_trace.c:690)
==20989== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20989== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20989== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20989== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20989== by 0x407FA29: lua_resume (lj_api.c:1296)
==20989== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20989== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20989== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20989== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20989== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20989== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20989== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20989== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20989== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==20989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==20989== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==20989== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==20989== by 0x8062D5B: main (nginx.c:385)
==20989==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 30: nil submatch (1st) - status code ok got: ''
expected: '200'
120-re-find.t TEST 30: nil submatch (1st) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 30: nil submatch (1st) ==21010== Invalid read of size 4
==21010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21010== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21010== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21010== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21010== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21010== by 0x8062D5B: main (nginx.c:385)
==21010== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21010==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 30: nil submatch (1st) ==21010==
==21010== Process terminating with default action of signal 11 (SIGSEGV)
==21010== Access not within mapped region at address 0x0
==21010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21010== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21010== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21010== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21010== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21010== by 0x8062D5B: main (nginx.c:385)
==21010== If you believe this happened as a result of a stack
==21010== overflow in your program's main thread (unlikely but
==21010== possible), you can try to increase the size of the
==21010== main thread stack using the --main-stacksize= flag.
==21010== The main thread stack size used in this run was 8388608.
==21010== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,885
==21010== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21010== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21010== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21010== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21010== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21010== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21010== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21010== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21010== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21010== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21010== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21010== by 0x40BB675: trace_state (lj_trace.c:690)
==21010== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21010== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21010== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21010== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21010== by 0x407FA29: lua_resume (lj_api.c:1296)
==21010== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21010== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21010== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21010== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21010== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21010== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21010== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21010== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21010== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21010== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21010== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21010== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21010== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21010== by 0x8062D5B: main (nginx.c:385)
==21010==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 30: nil submatch (1st) - status code ok got: ''
expected: '200'
120-re-find.t TEST 30: nil submatch (1st) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 11: single-line mode (dot all) ==21022== Invalid read of size 4
==21022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21022== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21022== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21022== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21022== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21022== by 0x8062D5B: main (nginx.c:385)
==21022== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21022==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 11: single-line mode (dot all) ==21022==
==21022== Process terminating with default action of signal 11 (SIGSEGV)
==21022== Access not within mapped region at address 0x0
==21022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21022== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21022== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21022== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21022== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21022== by 0x8062D5B: main (nginx.c:385)
==21022== If you believe this happened as a result of a stack
==21022== overflow in your program's main thread (unlikely but
==21022== possible), you can try to increase the size of the
==21022== main thread stack using the --main-stacksize= flag.
==21022== The main thread stack size used in this run was 8388608.
==21022== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,877
==21022== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21022== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21022== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21022== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21022== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21022== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21022== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21022== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21022== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21022== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21022== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21022== by 0x40BB675: trace_state (lj_trace.c:690)
==21022== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21022== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21022== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21022== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21022== by 0x407FA29: lua_resume (lj_api.c:1296)
==21022== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21022== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21022== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21022== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21022== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21022== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21022== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21022== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21022== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21022== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21022== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21022== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21022== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21022== by 0x8062D5B: main (nginx.c:385)
==21022==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 11: single-line mode (dot all) - status code ok got: ''
expected: '200'
120-re-find.t TEST 11: single-line mode (dot all) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-from: 1
-to: 11
-matched: hello
-world
'
120-re-find.t TEST 11: single-line mode (dot all) ==21043== Invalid read of size 4
==21043== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21043== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21043== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21043== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21043== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21043== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21043== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21043== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21043== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21043== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21043== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21043== by 0x8062D5B: main (nginx.c:385)
==21043== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21043==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 11: single-line mode (dot all) ==21043==
==21043== Process terminating with default action of signal 11 (SIGSEGV)
==21043== Access not within mapped region at address 0x0
==21043== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21043== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21043== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21043== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21043== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21043== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21043== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21043== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21043== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21043== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21043== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21043== by 0x8062D5B: main (nginx.c:385)
==21043== If you believe this happened as a result of a stack
==21043== overflow in your program's main thread (unlikely but
==21043== possible), you can try to increase the size of the
==21043== main thread stack using the --main-stacksize= flag.
==21043== The main thread stack size used in this run was 8388608.
==21043== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,877
==21043== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21043== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21043== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21043== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21043== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21043== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21043== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21043== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21043== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21043== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21043== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21043== by 0x40BB675: trace_state (lj_trace.c:690)
==21043== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21043== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21043== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21043== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21043== by 0x407FA29: lua_resume (lj_api.c:1296)
==21043== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21043== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21043== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21043== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21043== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21043== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21043== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21043== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21043== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21043== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21043== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21043== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21043== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21043== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21043== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21043== by 0x8062D5B: main (nginx.c:385)
==21043==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 11: single-line mode (dot all) - status code ok got: ''
expected: '200'
120-re-find.t TEST 11: single-line mode (dot all) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-from: 1
-to: 11
-matched: hello
-world
'
120-re-find.t TEST 2: empty matched string ==21055== Invalid read of size 4
==21055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21055== by 0x8062D5B: main (nginx.c:385)
==21055== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21055==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 2: empty matched string ==21055==
==21055== Process terminating with default action of signal 11 (SIGSEGV)
==21055== Access not within mapped region at address 0x0
==21055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21055== by 0x8062D5B: main (nginx.c:385)
==21055== If you believe this happened as a result of a stack
==21055== overflow in your program's main thread (unlikely but
==21055== possible), you can try to increase the size of the
==21055== main thread stack using the --main-stacksize= flag.
==21055== The main thread stack size used in this run was 8388608.
==21055== 1,024 bytes in 1 blocks are definitely lost in loss record 2,848 of 2,971
==21055== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21055== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21055== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21055== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21055== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21055== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21055== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21055== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21055== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21055== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21055== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21055== by 0x40BB675: trace_state (lj_trace.c:690)
==21055== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21055== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21055== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21055== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21055== by 0x407FA29: lua_resume (lj_api.c:1296)
==21055== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21055== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21055== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21055== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21055== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21055== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21055== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21055== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21055== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21055== by 0x8062D5B: main (nginx.c:385)
==21055==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 2: empty matched string - status code ok got: ''
expected: '200'
120-re-find.t TEST 2: empty matched string - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 0
-matched:
'
120-re-find.t TEST 2: empty matched string ==21076== Invalid read of size 4
==21076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21076== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21076== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21076== by 0x8062D5B: main (nginx.c:385)
==21076== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21076==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 2: empty matched string ==21076==
==21076== Process terminating with default action of signal 11 (SIGSEGV)
==21076== Access not within mapped region at address 0x0
==21076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21076== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21076== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21076== by 0x8062D5B: main (nginx.c:385)
==21076== If you believe this happened as a result of a stack
==21076== overflow in your program's main thread (unlikely but
==21076== possible), you can try to increase the size of the
==21076== main thread stack using the --main-stacksize= flag.
==21076== The main thread stack size used in this run was 8388608.
==21076== 1,024 bytes in 1 blocks are definitely lost in loss record 2,848 of 2,971
==21076== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21076== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21076== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21076== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21076== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21076== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21076== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21076== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21076== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21076== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21076== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21076== by 0x40BB675: trace_state (lj_trace.c:690)
==21076== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21076== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21076== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21076== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21076== by 0x407FA29: lua_resume (lj_api.c:1296)
==21076== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21076== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21076== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21076== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21076== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21076== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21076== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21076== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21076== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21076== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21076== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21076== by 0x8062D5B: main (nginx.c:385)
==21076==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 2: empty matched string - status code ok got: ''
expected: '200'
120-re-find.t TEST 2: empty matched string - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 0
-matched:
'
120-re-find.t TEST 5: case sensitive by default ==21088== Invalid read of size 4
==21088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21088== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21088== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21088== by 0x8062D5B: main (nginx.c:385)
==21088== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21088==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 5: case sensitive by default ==21088==
==21088== Process terminating with default action of signal 11 (SIGSEGV)
==21088== Access not within mapped region at address 0x0
==21088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21088== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21088== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21088== by 0x8062D5B: main (nginx.c:385)
==21088== If you believe this happened as a result of a stack
==21088== overflow in your program's main thread (unlikely but
==21088== possible), you can try to increase the size of the
==21088== main thread stack using the --main-stacksize= flag.
==21088== The main thread stack size used in this run was 8388608.
==21088== 1,024 bytes in 1 blocks are definitely lost in loss record 2,843 of 2,967
==21088== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21088== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21088== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21088== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21088== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21088== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21088== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21088== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21088== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21088== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21088== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21088== by 0x40BB675: trace_state (lj_trace.c:690)
==21088== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21088== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21088== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21088== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21088== by 0x407FA29: lua_resume (lj_api.c:1296)
==21088== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21088== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21088== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21088== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21088== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21088== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21088== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21088== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21088== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21088== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21088== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21088== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21088== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21088== by 0x8062D5B: main (nginx.c:385)
==21088==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 5: case sensitive by default - status code ok got: ''
expected: '200'
120-re-find.t TEST 5: case sensitive by default - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 5: case sensitive by default ==21109== Invalid read of size 4
==21109== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21109== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21109== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21109== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21109== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21109== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21109== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21109== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21109== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21109== by 0x8062D5B: main (nginx.c:385)
==21109== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21109==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 5: case sensitive by default ==21109==
==21109== Process terminating with default action of signal 11 (SIGSEGV)
==21109== Access not within mapped region at address 0x0
==21109== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21109== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21109== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21109== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21109== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21109== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21109== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21109== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21109== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21109== by 0x8062D5B: main (nginx.c:385)
==21109== If you believe this happened as a result of a stack
==21109== overflow in your program's main thread (unlikely but
==21109== possible), you can try to increase the size of the
==21109== main thread stack using the --main-stacksize= flag.
==21109== The main thread stack size used in this run was 8388608.
==21109== 1,024 bytes in 1 blocks are definitely lost in loss record 2,843 of 2,967
==21109== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21109== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21109== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21109== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21109== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21109== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21109== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21109== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21109== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21109== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21109== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21109== by 0x40BB675: trace_state (lj_trace.c:690)
==21109== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21109== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21109== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21109== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21109== by 0x407FA29: lua_resume (lj_api.c:1296)
==21109== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21109== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21109== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21109== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21109== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21109== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21109== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21109== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21109== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21109== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21109== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21109== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21109== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21109== by 0x8062D5B: main (nginx.c:385)
==21109==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 5: case sensitive by default - status code ok got: ''
expected: '200'
120-re-find.t TEST 5: case sensitive by default - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 8: multi-line mode (^ at line head) ==21121== Invalid read of size 4
==21121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21121== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21121== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21121== by 0x8062D5B: main (nginx.c:385)
==21121== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21121==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 8: multi-line mode (^ at line head) ==21121==
==21121== Process terminating with default action of signal 11 (SIGSEGV)
==21121== Access not within mapped region at address 0x0
==21121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21121== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21121== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21121== by 0x8062D5B: main (nginx.c:385)
==21121== If you believe this happened as a result of a stack
==21121== overflow in your program's main thread (unlikely but
==21121== possible), you can try to increase the size of the
==21121== main thread stack using the --main-stacksize= flag.
==21121== The main thread stack size used in this run was 8388608.
==21121== 1,024 bytes in 1 blocks are definitely lost in loss record 2,899 of 3,026
==21121== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21121== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21121== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21121== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21121== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21121== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21121== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21121== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21121== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21121== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21121== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21121== by 0x40BB675: trace_state (lj_trace.c:690)
==21121== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21121== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21121== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21121== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21121== by 0x407FA29: lua_resume (lj_api.c:1296)
==21121== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21121== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21121== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21121== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21121== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21121== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21121== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21121== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21121== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21121== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21121== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21121== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21121== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21121== by 0x8062D5B: main (nginx.c:385)
==21121==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 8: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
120-re-find.t TEST 8: multi-line mode (^ at line head) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 7
-to: 11
-matched: world
'
120-re-find.t TEST 8: multi-line mode (^ at line head) ==21142== Invalid read of size 4
==21142== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21142== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21142== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21142== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21142== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21142== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21142== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21142== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21142== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21142== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21142== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21142== by 0x8062D5B: main (nginx.c:385)
==21142== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21142==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 8: multi-line mode (^ at line head) ==21142==
==21142== Process terminating with default action of signal 11 (SIGSEGV)
==21142== Access not within mapped region at address 0x0
==21142== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21142== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21142== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21142== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21142== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21142== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21142== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21142== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21142== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21142== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21142== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21142== by 0x8062D5B: main (nginx.c:385)
==21142== If you believe this happened as a result of a stack
==21142== overflow in your program's main thread (unlikely but
==21142== possible), you can try to increase the size of the
==21142== main thread stack using the --main-stacksize= flag.
==21142== The main thread stack size used in this run was 8388608.
==21142== 1,024 bytes in 1 blocks are definitely lost in loss record 2,899 of 3,026
==21142== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21142== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21142== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21142== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21142== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21142== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21142== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21142== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21142== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21142== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21142== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21142== by 0x40BB675: trace_state (lj_trace.c:690)
==21142== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21142== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21142== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21142== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21142== by 0x407FA29: lua_resume (lj_api.c:1296)
==21142== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21142== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21142== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21142== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21142== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21142== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21142== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21142== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21142== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21142== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21142== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21142== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21142== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21142== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21142== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21142== by 0x8062D5B: main (nginx.c:385)
==21142==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 8: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
120-re-find.t TEST 8: multi-line mode (^ at line head) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 7
-to: 11
-matched: world
'
120-re-find.t TEST 27: specify the group (3) ==21154== Invalid read of size 4
==21154== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21154== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21154== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21154== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21154== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21154== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21154== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21154== by 0x8062D5B: main (nginx.c:385)
==21154== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21154==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 27: specify the group (3) ==21154==
==21154== Process terminating with default action of signal 11 (SIGSEGV)
==21154== Access not within mapped region at address 0x0
==21154== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21154== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21154== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21154== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21154== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21154== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21154== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21154== by 0x8062D5B: main (nginx.c:385)
==21154== If you believe this happened as a result of a stack
==21154== overflow in your program's main thread (unlikely but
==21154== possible), you can try to increase the size of the
==21154== main thread stack using the --main-stacksize= flag.
==21154== The main thread stack size used in this run was 8388608.
==21154== 1,024 bytes in 1 blocks are definitely lost in loss record 2,913 of 3,041
==21154== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21154== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21154== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21154== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21154== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21154== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21154== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21154== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21154== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21154== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21154== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21154== by 0x40BB675: trace_state (lj_trace.c:690)
==21154== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21154== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21154== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21154== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21154== by 0x407FA29: lua_resume (lj_api.c:1296)
==21154== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21154== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21154== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21154== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21154== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21154== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21154== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21154== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21154== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21154== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21154== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21154== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21154== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21154== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21154== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21154== by 0x8062D5B: main (nginx.c:385)
==21154==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 27: specify the group (3) - status code ok got: ''
expected: '200'
120-re-find.t TEST 27: specify the group (3) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 27: specify the group (3) ==21175== Invalid read of size 4
==21175== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21175== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21175== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21175== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21175== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21175== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21175== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21175== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21175== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21175== by 0x8062D5B: main (nginx.c:385)
==21175== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21175==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 27: specify the group (3) ==21175==
==21175== Process terminating with default action of signal 11 (SIGSEGV)
==21175== Access not within mapped region at address 0x0
==21175== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21175== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21175== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21175== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21175== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21175== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21175== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21175== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21175== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21175== by 0x8062D5B: main (nginx.c:385)
==21175== If you believe this happened as a result of a stack
==21175== overflow in your program's main thread (unlikely but
==21175== possible), you can try to increase the size of the
==21175== main thread stack using the --main-stacksize= flag.
==21175== The main thread stack size used in this run was 8388608.
==21175== 1,024 bytes in 1 blocks are definitely lost in loss record 2,913 of 3,041
==21175== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21175== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21175== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21175== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21175== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21175== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21175== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21175== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21175== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21175== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21175== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21175== by 0x40BB675: trace_state (lj_trace.c:690)
==21175== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21175== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21175== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21175== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21175== by 0x407FA29: lua_resume (lj_api.c:1296)
==21175== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21175== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21175== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21175== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21175== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21175== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21175== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21175== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21175== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21175== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21175== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21175== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21175== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21175== by 0x8062D5B: main (nginx.c:385)
==21175==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 27: specify the group (3) - status code ok got: ''
expected: '200'
120-re-find.t TEST 27: specify the group (3) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 20: bad UTF-8 ==21187== Invalid read of size 4
==21187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21187== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21187== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21187== by 0x8062D5B: main (nginx.c:385)
==21187== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21187==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 20: bad UTF-8 ==21187==
==21187== Process terminating with default action of signal 11 (SIGSEGV)
==21187== Access not within mapped region at address 0x0
==21187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21187== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21187== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21187== by 0x8062D5B: main (nginx.c:385)
==21187== If you believe this happened as a result of a stack
==21187== overflow in your program's main thread (unlikely but
==21187== possible), you can try to increase the size of the
==21187== main thread stack using the --main-stacksize= flag.
==21187== The main thread stack size used in this run was 8388608.
==21187== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,869
==21187== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21187== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21187== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21187== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21187== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21187== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21187== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21187== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21187== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21187== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21187== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21187== by 0x40BB675: trace_state (lj_trace.c:690)
==21187== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21187== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21187== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21187== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21187== by 0x407FA29: lua_resume (lj_api.c:1296)
==21187== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21187== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21187== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21187== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21187== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21187== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21187== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21187== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21187== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21187== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21187== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21187== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21187== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21187== by 0x8062D5B: main (nginx.c:385)
==21187==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 20: bad UTF-8 - status code ok got: ''
expected: '200'
120-re-find.t TEST 20: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
120-re-find.t TEST 20: bad UTF-8 ==21208== Invalid read of size 4
==21208== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21208== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21208== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21208== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21208== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21208== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21208== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21208== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21208== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21208== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21208== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21208== by 0x8062D5B: main (nginx.c:385)
==21208== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21208==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 20: bad UTF-8 ==21208==
==21208== Process terminating with default action of signal 11 (SIGSEGV)
==21208== Access not within mapped region at address 0x0
==21208== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21208== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21208== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21208== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21208== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21208== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21208== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21208== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21208== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21208== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21208== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21208== by 0x8062D5B: main (nginx.c:385)
==21208== If you believe this happened as a result of a stack
==21208== overflow in your program's main thread (unlikely but
==21208== possible), you can try to increase the size of the
==21208== main thread stack using the --main-stacksize= flag.
==21208== The main thread stack size used in this run was 8388608.
==21208== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,869
==21208== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21208== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21208== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21208== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21208== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21208== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21208== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21208== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21208== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21208== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21208== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21208== by 0x40BB675: trace_state (lj_trace.c:690)
==21208== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21208== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21208== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21208== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21208== by 0x407FA29: lua_resume (lj_api.c:1296)
==21208== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21208== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21208== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21208== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21208== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21208== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21208== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21208== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21208== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21208== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21208== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21208== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21208== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21208== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21208== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21208== by 0x8062D5B: main (nginx.c:385)
==21208==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 20: bad UTF-8 - status code ok got: ''
expected: '200'
120-re-find.t TEST 20: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
120-re-find.t TEST 16: anchored match (succeeded) ==21220== Invalid read of size 4
==21220== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21220== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21220== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21220== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21220== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21220== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21220== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21220== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21220== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21220== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21220== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21220== by 0x8062D5B: main (nginx.c:385)
==21220== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21220==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 16: anchored match (succeeded) ==21220==
==21220== Process terminating with default action of signal 11 (SIGSEGV)
==21220== Access not within mapped region at address 0x0
==21220== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21220== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21220== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21220== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21220== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21220== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21220== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21220== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21220== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21220== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21220== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21220== by 0x8062D5B: main (nginx.c:385)
==21220== If you believe this happened as a result of a stack
==21220== overflow in your program's main thread (unlikely but
==21220== possible), you can try to increase the size of the
==21220== main thread stack using the --main-stacksize= flag.
==21220== The main thread stack size used in this run was 8388608.
==21220== 1,024 bytes in 1 blocks are definitely lost in loss record 2,774 of 2,881
==21220== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21220== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21220== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21220== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21220== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21220== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21220== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21220== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21220== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21220== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21220== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21220== by 0x40BB675: trace_state (lj_trace.c:690)
==21220== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21220== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21220== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21220== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21220== by 0x407FA29: lua_resume (lj_api.c:1296)
==21220== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21220== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21220== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21220== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21220== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21220== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21220== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21220== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21220== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21220== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21220== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21220== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21220== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21220== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21220== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21220== by 0x8062D5B: main (nginx.c:385)
==21220==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 16: anchored match (succeeded) - status code ok got: ''
expected: '200'
120-re-find.t TEST 16: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-matched: 1234
'
120-re-find.t TEST 16: anchored match (succeeded) ==21241== Invalid read of size 4
==21241== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21241== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21241== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21241== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21241== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21241== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21241== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21241== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21241== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21241== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21241== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21241== by 0x8062D5B: main (nginx.c:385)
==21241== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21241==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 16: anchored match (succeeded) ==21241==
==21241== Process terminating with default action of signal 11 (SIGSEGV)
==21241== Access not within mapped region at address 0x0
==21241== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21241== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21241== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21241== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21241== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21241== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21241== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21241== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21241== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21241== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21241== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21241== by 0x8062D5B: main (nginx.c:385)
==21241== If you believe this happened as a result of a stack
==21241== overflow in your program's main thread (unlikely but
==21241== possible), you can try to increase the size of the
==21241== main thread stack using the --main-stacksize= flag.
==21241== The main thread stack size used in this run was 8388608.
==21241== 1,024 bytes in 1 blocks are definitely lost in loss record 2,774 of 2,881
==21241== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21241== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21241== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21241== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21241== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21241== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21241== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21241== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21241== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21241== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21241== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21241== by 0x40BB675: trace_state (lj_trace.c:690)
==21241== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21241== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21241== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21241== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21241== by 0x407FA29: lua_resume (lj_api.c:1296)
==21241== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21241== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21241== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21241== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21241== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21241== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21241== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21241== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21241== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21241== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21241== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21241== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21241== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21241== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21241== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21241== by 0x8062D5B: main (nginx.c:385)
==21241==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 16: anchored match (succeeded) - status code ok got: ''
expected: '200'
120-re-find.t TEST 16: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-matched: 1234
'
120-re-find.t TEST 29: nil submatch (2nd) ==21253== Invalid read of size 4
==21253== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21253== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21253== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21253== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21253== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21253== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21253== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21253== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21253== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21253== by 0x8062D5B: main (nginx.c:385)
==21253== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21253==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 29: nil submatch (2nd) ==21253==
==21253== Process terminating with default action of signal 11 (SIGSEGV)
==21253== Access not within mapped region at address 0x0
==21253== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21253== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21253== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21253== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21253== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21253== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21253== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21253== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21253== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21253== by 0x8062D5B: main (nginx.c:385)
==21253== If you believe this happened as a result of a stack
==21253== overflow in your program's main thread (unlikely but
==21253== possible), you can try to increase the size of the
==21253== main thread stack using the --main-stacksize= flag.
==21253== The main thread stack size used in this run was 8388608.
==21253== 1,024 bytes in 1 blocks are definitely lost in loss record 2,923 of 3,052
==21253== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21253== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21253== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21253== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21253== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21253== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21253== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21253== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21253== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21253== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21253== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21253== by 0x40BB675: trace_state (lj_trace.c:690)
==21253== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21253== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21253== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21253== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21253== by 0x407FA29: lua_resume (lj_api.c:1296)
==21253== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21253== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21253== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21253== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21253== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21253== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21253== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21253== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21253== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21253== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21253== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21253== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21253== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21253== by 0x8062D5B: main (nginx.c:385)
==21253==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 29: nil submatch (2nd) - status code ok got: ''
expected: '200'
120-re-find.t TEST 29: nil submatch (2nd) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 29: nil submatch (2nd) ==21274== Invalid read of size 4
==21274== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21274== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21274== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21274== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21274== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21274== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21274== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21274== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21274== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21274== by 0x8062D5B: main (nginx.c:385)
==21274== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21274==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 29: nil submatch (2nd) ==21274==
==21274== Process terminating with default action of signal 11 (SIGSEGV)
==21274== Access not within mapped region at address 0x0
==21274== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21274== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21274== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21274== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21274== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21274== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21274== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21274== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21274== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21274== by 0x8062D5B: main (nginx.c:385)
==21274== If you believe this happened as a result of a stack
==21274== overflow in your program's main thread (unlikely but
==21274== possible), you can try to increase the size of the
==21274== main thread stack using the --main-stacksize= flag.
==21274== The main thread stack size used in this run was 8388608.
==21274== 1,024 bytes in 1 blocks are definitely lost in loss record 2,923 of 3,052
==21274== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21274== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21274== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21274== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21274== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21274== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21274== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21274== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21274== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21274== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21274== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21274== by 0x40BB675: trace_state (lj_trace.c:690)
==21274== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21274== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21274== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21274== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21274== by 0x407FA29: lua_resume (lj_api.c:1296)
==21274== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21274== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21274== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21274== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21274== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21274== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21274== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21274== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21274== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21274== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21274== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21274== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21274== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21274== by 0x8062D5B: main (nginx.c:385)
==21274==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 29: nil submatch (2nd) - status code ok got: ''
expected: '200'
120-re-find.t TEST 29: nil submatch (2nd) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 25: specify the group (0) ==21286== Invalid read of size 4
==21286== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21286== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21286== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21286== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21286== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21286== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21286== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21286== by 0x8062D5B: main (nginx.c:385)
==21286== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21286==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 25: specify the group (0) ==21286==
==21286== Process terminating with default action of signal 11 (SIGSEGV)
==21286== Access not within mapped region at address 0x0
==21286== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21286== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21286== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21286== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21286== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21286== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21286== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21286== by 0x8062D5B: main (nginx.c:385)
==21286== If you believe this happened as a result of a stack
==21286== overflow in your program's main thread (unlikely but
==21286== possible), you can try to increase the size of the
==21286== main thread stack using the --main-stacksize= flag.
==21286== The main thread stack size used in this run was 8388608.
==21286== 1,024 bytes in 1 blocks are definitely lost in loss record 2,914 of 3,041
==21286== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21286== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21286== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21286== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21286== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21286== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21286== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21286== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21286== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21286== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21286== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21286== by 0x40BB675: trace_state (lj_trace.c:690)
==21286== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21286== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21286== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21286== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21286== by 0x407FA29: lua_resume (lj_api.c:1296)
==21286== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21286== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21286== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21286== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21286== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21286== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21286== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21286== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21286== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21286== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21286== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21286== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21286== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21286== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21286== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21286== by 0x8062D5B: main (nginx.c:385)
==21286==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 25: specify the group (0) - status code ok got: ''
expected: '200'
120-re-find.t TEST 25: specify the group (0) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 25: specify the group (0) ==21307== Invalid read of size 4
==21307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21307== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21307== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21307== by 0x8062D5B: main (nginx.c:385)
==21307== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21307==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 25: specify the group (0) ==21307==
==21307== Process terminating with default action of signal 11 (SIGSEGV)
==21307== Access not within mapped region at address 0x0
==21307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21307== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21307== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21307== by 0x8062D5B: main (nginx.c:385)
==21307== If you believe this happened as a result of a stack
==21307== overflow in your program's main thread (unlikely but
==21307== possible), you can try to increase the size of the
==21307== main thread stack using the --main-stacksize= flag.
==21307== The main thread stack size used in this run was 8388608.
==21307== 1,024 bytes in 1 blocks are definitely lost in loss record 2,914 of 3,041
==21307== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21307== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21307== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21307== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21307== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21307== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21307== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21307== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21307== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21307== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21307== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21307== by 0x40BB675: trace_state (lj_trace.c:690)
==21307== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21307== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21307== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21307== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21307== by 0x407FA29: lua_resume (lj_api.c:1296)
==21307== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21307== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21307== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21307== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21307== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21307== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21307== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21307== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21307== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21307== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21307== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21307== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21307== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21307== by 0x8062D5B: main (nginx.c:385)
==21307==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 25: specify the group (0) - status code ok got: ''
expected: '200'
120-re-find.t TEST 25: specify the group (0) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 22: just hit match limit ==21319== Invalid read of size 4
==21319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21319== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21319== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21319== by 0x8062D5B: main (nginx.c:385)
==21319== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21319==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 22: just hit match limit ==21319==
==21319== Process terminating with default action of signal 11 (SIGSEGV)
==21319== Access not within mapped region at address 0x0
==21319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21319== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21319== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21319== by 0x8062D5B: main (nginx.c:385)
==21319== If you believe this happened as a result of a stack
==21319== overflow in your program's main thread (unlikely but
==21319== possible), you can try to increase the size of the
==21319== main thread stack using the --main-stacksize= flag.
==21319== The main thread stack size used in this run was 8388608.
==21319== 1,024 bytes in 1 blocks are definitely lost in loss record 2,775 of 2,882
==21319== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21319== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21319== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21319== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21319== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21319== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21319== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21319== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21319== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21319== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21319== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21319== by 0x40BB675: trace_state (lj_trace.c:690)
==21319== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21319== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21319== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21319== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21319== by 0x407FA29: lua_resume (lj_api.c:1296)
==21319== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21319== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21319== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==21319== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21319== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21319== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21319== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21319== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21319== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21319== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21319== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21319== by 0x8062D5B: main (nginx.c:385)
==21319==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 22: just hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 22: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match.
'
120-re-find.t TEST 22: just hit match limit ==21340== Invalid read of size 4
==21340== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21340== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21340== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21340== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21340== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21340== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21340== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21340== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21340== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21340== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21340== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21340== by 0x8062D5B: main (nginx.c:385)
==21340== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21340==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 22: just hit match limit ==21340==
==21340== Process terminating with default action of signal 11 (SIGSEGV)
==21340== Access not within mapped region at address 0x0
==21340== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21340== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21340== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21340== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21340== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21340== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21340== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21340== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21340== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21340== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21340== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21340== by 0x8062D5B: main (nginx.c:385)
==21340== If you believe this happened as a result of a stack
==21340== overflow in your program's main thread (unlikely but
==21340== possible), you can try to increase the size of the
==21340== main thread stack using the --main-stacksize= flag.
==21340== The main thread stack size used in this run was 8388608.
==21340== 1,024 bytes in 1 blocks are definitely lost in loss record 2,775 of 2,882
==21340== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21340== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21340== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21340== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21340== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21340== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21340== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21340== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21340== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21340== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21340== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21340== by 0x40BB675: trace_state (lj_trace.c:690)
==21340== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21340== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21340== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21340== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21340== by 0x407FA29: lua_resume (lj_api.c:1296)
==21340== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21340== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21340== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==21340== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21340== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21340== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21340== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21340== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21340== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21340== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21340== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21340== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21340== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21340== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21340== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21340== by 0x8062D5B: main (nginx.c:385)
==21340==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_file
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 22: just hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 22: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match.
'
120-re-find.t TEST 6: case insensitive ==21353== Invalid read of size 4
==21353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21353== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21353== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21353== by 0x8062D5B: main (nginx.c:385)
==21353== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21353==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 6: case insensitive ==21353==
==21353== Process terminating with default action of signal 11 (SIGSEGV)
==21353== Access not within mapped region at address 0x0
==21353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21353== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21353== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21353== by 0x8062D5B: main (nginx.c:385)
==21353== If you believe this happened as a result of a stack
==21353== overflow in your program's main thread (unlikely but
==21353== possible), you can try to increase the size of the
==21353== main thread stack using the --main-stacksize= flag.
==21353== The main thread stack size used in this run was 8388608.
==21353== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==21353== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21353== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21353== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21353== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21353== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21353== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21353== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21353== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21353== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21353== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21353== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21353== by 0x40BB675: trace_state (lj_trace.c:690)
==21353== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21353== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21353== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21353== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21353== by 0x407FA29: lua_resume (lj_api.c:1296)
==21353== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21353== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21353== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21353== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21353== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21353== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21353== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21353== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21353== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21353== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21353== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21353== by 0x8062D5B: main (nginx.c:385)
==21353==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 6: case insensitive - status code ok got: ''
expected: '200'
120-re-find.t TEST 6: case insensitive - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 6: case insensitive ==21374== Invalid read of size 4
==21374== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21374== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21374== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21374== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21374== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21374== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21374== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21374== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21374== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21374== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21374== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21374== by 0x8062D5B: main (nginx.c:385)
==21374== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21374==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 6: case insensitive ==21374==
==21374== Process terminating with default action of signal 11 (SIGSEGV)
==21374== Access not within mapped region at address 0x0
==21374== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21374== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21374== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21374== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21374== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21374== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21374== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21374== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21374== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21374== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21374== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21374== by 0x8062D5B: main (nginx.c:385)
==21374== If you believe this happened as a result of a stack
==21374== overflow in your program's main thread (unlikely but
==21374== possible), you can try to increase the size of the
==21374== main thread stack using the --main-stacksize= flag.
==21374== The main thread stack size used in this run was 8388608.
==21374== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==21374== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21374== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21374== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21374== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21374== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21374== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21374== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21374== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21374== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21374== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21374== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21374== by 0x40BB675: trace_state (lj_trace.c:690)
==21374== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21374== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21374== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21374== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21374== by 0x407FA29: lua_resume (lj_api.c:1296)
==21374== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21374== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21374== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21374== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21374== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21374== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21374== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21374== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21374== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21374== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21374== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21374== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21374== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21374== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21374== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21374== by 0x8062D5B: main (nginx.c:385)
==21374==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 6: case insensitive - status code ok got: ''
expected: '200'
120-re-find.t TEST 6: case insensitive - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 17: match with ctx but no pos ==21386== Invalid read of size 4
==21386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21386== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21386== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21386== by 0x8062D5B: main (nginx.c:385)
==21386== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21386==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 17: match with ctx but no pos ==21386==
==21386== Process terminating with default action of signal 11 (SIGSEGV)
==21386== Access not within mapped region at address 0x0
==21386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21386== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21386== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21386== by 0x8062D5B: main (nginx.c:385)
==21386== If you believe this happened as a result of a stack
==21386== overflow in your program's main thread (unlikely but
==21386== possible), you can try to increase the size of the
==21386== main thread stack using the --main-stacksize= flag.
==21386== The main thread stack size used in this run was 8388608.
==21386== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==21386== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21386== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21386== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21386== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21386== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21386== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21386== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21386== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21386== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21386== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21386== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21386== by 0x40BB675: trace_state (lj_trace.c:690)
==21386== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21386== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21386== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21386== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21386== by 0x407FA29: lua_resume (lj_api.c:1296)
==21386== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21386== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21386== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21386== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21386== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21386== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21386== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21386== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21386== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21386== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21386== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21386== by 0x8062D5B: main (nginx.c:385)
==21386==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 17: match with ctx but no pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 17: match with ctx but no pos - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-pos: 5
'
120-re-find.t TEST 17: match with ctx but no pos ==21407== Invalid read of size 4
==21407== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21407== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21407== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21407== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21407== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21407== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21407== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21407== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21407== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21407== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21407== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21407== by 0x8062D5B: main (nginx.c:385)
==21407== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21407==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 17: match with ctx but no pos ==21407==
==21407== Process terminating with default action of signal 11 (SIGSEGV)
==21407== Access not within mapped region at address 0x0
==21407== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21407== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21407== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21407== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21407== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21407== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21407== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21407== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21407== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21407== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21407== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21407== by 0x8062D5B: main (nginx.c:385)
==21407== If you believe this happened as a result of a stack
==21407== overflow in your program's main thread (unlikely but
==21407== possible), you can try to increase the size of the
==21407== main thread stack using the --main-stacksize= flag.
==21407== The main thread stack size used in this run was 8388608.
==21407== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,874
==21407== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21407== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21407== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21407== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21407== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21407== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21407== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21407== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21407== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21407== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21407== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21407== by 0x40BB675: trace_state (lj_trace.c:690)
==21407== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21407== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21407== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21407== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21407== by 0x407FA29: lua_resume (lj_api.c:1296)
==21407== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21407== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21407== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21407== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21407== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21407== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21407== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21407== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21407== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21407== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21407== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21407== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21407== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21407== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21407== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21407== by 0x8062D5B: main (nginx.c:385)
==21407==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 17: match with ctx but no pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 17: match with ctx but no pos - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-pos: 5
'
120-re-find.t TEST 1: sanity ==21419== Invalid read of size 4
==21419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21419== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21419== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21419== by 0x8062D5B: main (nginx.c:385)
==21419== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21419==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 1: sanity ==21419==
==21419== Process terminating with default action of signal 11 (SIGSEGV)
==21419== Access not within mapped region at address 0x0
==21419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21419== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21419== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21419== by 0x8062D5B: main (nginx.c:385)
==21419== If you believe this happened as a result of a stack
==21419== overflow in your program's main thread (unlikely but
==21419== possible), you can try to increase the size of the
==21419== main thread stack using the --main-stacksize= flag.
==21419== The main thread stack size used in this run was 8388608.
==21419== 1,024 bytes in 1 blocks are definitely lost in loss record 2,780 of 2,887
==21419== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21419== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21419== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21419== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21419== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21419== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21419== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21419== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21419== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21419== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21419== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21419== by 0x40BB675: trace_state (lj_trace.c:690)
==21419== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21419== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21419== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21419== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21419== by 0x407FA29: lua_resume (lj_api.c:1296)
==21419== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21419== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21419== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21419== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21419== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21419== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21419== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21419== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21419== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21419== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21419== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21419== by 0x8062D5B: main (nginx.c:385)
==21419==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 1: sanity - status code ok got: ''
expected: '200'
120-re-find.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 1: sanity ==21440== Invalid read of size 4
==21440== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21440== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21440== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21440== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21440== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21440== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21440== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21440== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21440== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21440== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21440== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21440== by 0x8062D5B: main (nginx.c:385)
==21440== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21440==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 1: sanity ==21440==
==21440== Process terminating with default action of signal 11 (SIGSEGV)
==21440== Access not within mapped region at address 0x0
==21440== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21440== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21440== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21440== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21440== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21440== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21440== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21440== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21440== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21440== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21440== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21440== by 0x8062D5B: main (nginx.c:385)
==21440== If you believe this happened as a result of a stack
==21440== overflow in your program's main thread (unlikely but
==21440== possible), you can try to increase the size of the
==21440== main thread stack using the --main-stacksize= flag.
==21440== The main thread stack size used in this run was 8388608.
==21440== 1,024 bytes in 1 blocks are definitely lost in loss record 2,780 of 2,887
==21440== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21440== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21440== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21440== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21440== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21440== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21440== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21440== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21440== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21440== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21440== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21440== by 0x40BB675: trace_state (lj_trace.c:690)
==21440== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21440== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21440== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21440== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21440== by 0x407FA29: lua_resume (lj_api.c:1296)
==21440== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21440== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21440== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21440== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21440== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21440== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21440== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21440== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21440== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21440== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21440== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21440== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21440== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21440== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21440== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21440== by 0x8062D5B: main (nginx.c:385)
==21440==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 1: sanity - status code ok got: ''
expected: '200'
120-re-find.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks ==21452== Invalid read of size 4
==21452== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21452== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21452== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21452== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21452== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21452== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21452== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21452== by 0x8062D5B: main (nginx.c:385)
==21452== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21452==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks ==21452==
==21452== Process terminating with default action of signal 11 (SIGSEGV)
==21452== Access not within mapped region at address 0x0
==21452== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21452== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21452== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21452== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21452== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21452== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21452== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21452== by 0x8062D5B: main (nginx.c:385)
==21452== If you believe this happened as a result of a stack
==21452== overflow in your program's main thread (unlikely but
==21452== possible), you can try to increase the size of the
==21452== main thread stack using the --main-stacksize= flag.
==21452== The main thread stack size used in this run was 8388608.
==21452== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==21452== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21452== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21452== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21452== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21452== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21452== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21452== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21452== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21452== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21452== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21452== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21452== by 0x40BB675: trace_state (lj_trace.c:690)
==21452== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21452== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21452== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21452== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21452== by 0x407FA29: lua_resume (lj_api.c:1296)
==21452== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21452== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21452== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21452== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21452== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21452== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21452== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21452== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21452== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21452== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21452== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21452== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21452== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21452== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21452== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21452== by 0x8062D5B: main (nginx.c:385)
==21452==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 3
-matched: ä½ 
'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks ==21473== Invalid read of size 4
==21473== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21473== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21473== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21473== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21473== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21473== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21473== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21473== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21473== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21473== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21473== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21473== by 0x8062D5B: main (nginx.c:385)
==21473== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21473==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks ==21473==
==21473== Process terminating with default action of signal 11 (SIGSEGV)
==21473== Access not within mapped region at address 0x0
==21473== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21473== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21473== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21473== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21473== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21473== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21473== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21473== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21473== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21473== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21473== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21473== by 0x8062D5B: main (nginx.c:385)
==21473== If you believe this happened as a result of a stack
==21473== overflow in your program's main thread (unlikely but
==21473== possible), you can try to increase the size of the
==21473== main thread stack using the --main-stacksize= flag.
==21473== The main thread stack size used in this run was 8388608.
==21473== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,875
==21473== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21473== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21473== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21473== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21473== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21473== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21473== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21473== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21473== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21473== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21473== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21473== by 0x40BB675: trace_state (lj_trace.c:690)
==21473== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21473== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21473== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21473== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21473== by 0x407FA29: lua_resume (lj_api.c:1296)
==21473== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21473== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21473== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21473== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21473== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21473== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21473== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21473== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21473== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21473== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21473== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21473== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21473== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21473== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21473== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21473== by 0x8062D5B: main (nginx.c:385)
==21473==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 3
-matched: ä½ 
'
120-re-find.t TEST 10: single-line mode (^ as normal) ==21485== Invalid read of size 4
==21485== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21485== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21485== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21485== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21485== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21485== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21485== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21485== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21485== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21485== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21485== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21485== by 0x8062D5B: main (nginx.c:385)
==21485== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21485==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 10: single-line mode (^ as normal) ==21485==
==21485== Process terminating with default action of signal 11 (SIGSEGV)
==21485== Access not within mapped region at address 0x0
==21485== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21485== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21485== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21485== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21485== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21485== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21485== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21485== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21485== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21485== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21485== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21485== by 0x8062D5B: main (nginx.c:385)
==21485== If you believe this happened as a result of a stack
==21485== overflow in your program's main thread (unlikely but
==21485== possible), you can try to increase the size of the
==21485== main thread stack using the --main-stacksize= flag.
==21485== The main thread stack size used in this run was 8388608.
==21485== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,863
==21485== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21485== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21485== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21485== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21485== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21485== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21485== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21485== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21485== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21485== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21485== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21485== by 0x40BB675: trace_state (lj_trace.c:690)
==21485== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21485== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21485== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21485== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21485== by 0x407FA29: lua_resume (lj_api.c:1296)
==21485== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21485== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21485== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21485== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21485== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21485== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21485== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21485== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21485== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21485== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21485== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21485== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21485== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21485== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21485== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21485== by 0x8062D5B: main (nginx.c:385)
==21485==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 10: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
120-re-find.t TEST 10: single-line mode (^ as normal) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 10: single-line mode (^ as normal) ==21506== Invalid read of size 4
==21506== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21506== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21506== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21506== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21506== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21506== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21506== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21506== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21506== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21506== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21506== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21506== by 0x8062D5B: main (nginx.c:385)
==21506== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21506==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 10: single-line mode (^ as normal) ==21506==
==21506== Process terminating with default action of signal 11 (SIGSEGV)
==21506== Access not within mapped region at address 0x0
==21506== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21506== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21506== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21506== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21506== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21506== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21506== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21506== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21506== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21506== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21506== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21506== by 0x8062D5B: main (nginx.c:385)
==21506== If you believe this happened as a result of a stack
==21506== overflow in your program's main thread (unlikely but
==21506== possible), you can try to increase the size of the
==21506== main thread stack using the --main-stacksize= flag.
==21506== The main thread stack size used in this run was 8388608.
==21506== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,863
==21506== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21506== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21506== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21506== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21506== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21506== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21506== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21506== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21506== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21506== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21506== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21506== by 0x40BB675: trace_state (lj_trace.c:690)
==21506== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21506== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21506== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21506== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21506== by 0x407FA29: lua_resume (lj_api.c:1296)
==21506== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21506== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21506== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21506== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21506== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21506== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21506== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21506== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21506== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21506== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21506== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21506== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21506== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21506== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21506== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21506== by 0x8062D5B: main (nginx.c:385)
==21506==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 10: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
120-re-find.t TEST 10: single-line mode (^ as normal) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 26: specify the group (2) ==21518== Invalid read of size 4
==21518== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21518== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21518== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21518== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21518== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21518== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21518== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21518== by 0x8062D5B: main (nginx.c:385)
==21518== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21518==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 26: specify the group (2) ==21518==
==21518== Process terminating with default action of signal 11 (SIGSEGV)
==21518== Access not within mapped region at address 0x0
==21518== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21518== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21518== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21518== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21518== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21518== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21518== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21518== by 0x8062D5B: main (nginx.c:385)
==21518== If you believe this happened as a result of a stack
==21518== overflow in your program's main thread (unlikely but
==21518== possible), you can try to increase the size of the
==21518== main thread stack using the --main-stacksize= flag.
==21518== The main thread stack size used in this run was 8388608.
==21518== 1,024 bytes in 1 blocks are definitely lost in loss record 2,917 of 3,044
==21518== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21518== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21518== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21518== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21518== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21518== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21518== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21518== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21518== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21518== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21518== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21518== by 0x40BB675: trace_state (lj_trace.c:690)
==21518== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21518== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21518== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21518== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21518== by 0x407FA29: lua_resume (lj_api.c:1296)
==21518== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21518== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21518== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21518== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21518== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21518== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21518== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21518== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21518== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21518== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21518== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21518== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21518== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21518== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21518== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21518== by 0x8062D5B: main (nginx.c:385)
==21518==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 26: specify the group (2) - status code ok got: ''
expected: '200'
120-re-find.t TEST 26: specify the group (2) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
120-re-find.t TEST 26: specify the group (2) ==21539== Invalid read of size 4
==21539== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21539== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21539== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21539== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21539== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21539== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21539== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21539== by 0x8062D5B: main (nginx.c:385)
==21539== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21539==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 26: specify the group (2) ==21539==
==21539== Process terminating with default action of signal 11 (SIGSEGV)
==21539== Access not within mapped region at address 0x0
==21539== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21539== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21539== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21539== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21539== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21539== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21539== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21539== by 0x8062D5B: main (nginx.c:385)
==21539== If you believe this happened as a result of a stack
==21539== overflow in your program's main thread (unlikely but
==21539== possible), you can try to increase the size of the
==21539== main thread stack using the --main-stacksize= flag.
==21539== The main thread stack size used in this run was 8388608.
==21539== 1,024 bytes in 1 blocks are definitely lost in loss record 2,917 of 3,044
==21539== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21539== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21539== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21539== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21539== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21539== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21539== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21539== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21539== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21539== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21539== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21539== by 0x40BB675: trace_state (lj_trace.c:690)
==21539== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21539== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21539== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21539== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21539== by 0x407FA29: lua_resume (lj_api.c:1296)
==21539== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21539== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21539== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21539== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21539== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21539== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21539== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21539== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21539== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21539== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21539== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21539== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21539== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21539== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21539== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21539== by 0x8062D5B: main (nginx.c:385)
==21539==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 26: specify the group (2) - status code ok got: ''
expected: '200'
120-re-find.t TEST 26: specify the group (2) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
120-re-find.t TEST 13: bad pattern ==21551== Invalid read of size 4
==21551== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21551== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21551== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21551== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21551== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21551== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21551== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21551== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21551== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21551== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21551== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21551== by 0x8062D5B: main (nginx.c:385)
==21551== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21551==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 13: bad pattern ==21551==
==21551== Process terminating with default action of signal 11 (SIGSEGV)
==21551== Access not within mapped region at address 0x0
==21551== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21551== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21551== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21551== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21551== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21551== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21551== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21551== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21551== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21551== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21551== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21551== by 0x8062D5B: main (nginx.c:385)
==21551== If you believe this happened as a result of a stack
==21551== overflow in your program's main thread (unlikely but
==21551== possible), you can try to increase the size of the
==21551== main thread stack using the --main-stacksize= flag.
==21551== The main thread stack size used in this run was 8388608.
==21551== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,869
==21551== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21551== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21551== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21551== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21551== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21551== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21551== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21551== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21551== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21551== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21551== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21551== by 0x40BB675: trace_state (lj_trace.c:690)
==21551== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21551== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21551== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21551== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21551== by 0x407FA29: lua_resume (lj_api.c:1296)
==21551== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21551== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21551== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21551== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21551== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21551== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21551== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21551== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21551== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21551== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21551== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21551== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21551== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21551== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21551== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21551== by 0x8062D5B: main (nginx.c:385)
==21551==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 13: bad pattern - status code ok got: ''
expected: '200'
120-re-find.t TEST 13: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
120-re-find.t TEST 13: bad pattern ==21572== Invalid read of size 4
==21572== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21572== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21572== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21572== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21572== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21572== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21572== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21572== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21572== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21572== by 0x8062D5B: main (nginx.c:385)
==21572== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21572==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 13: bad pattern ==21572==
==21572== Process terminating with default action of signal 11 (SIGSEGV)
==21572== Access not within mapped region at address 0x0
==21572== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21572== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21572== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21572== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21572== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21572== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21572== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21572== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21572== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21572== by 0x8062D5B: main (nginx.c:385)
==21572== If you believe this happened as a result of a stack
==21572== overflow in your program's main thread (unlikely but
==21572== possible), you can try to increase the size of the
==21572== main thread stack using the --main-stacksize= flag.
==21572== The main thread stack size used in this run was 8388608.
==21572== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,869
==21572== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21572== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21572== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21572== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21572== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21572== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21572== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21572== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21572== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21572== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21572== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21572== by 0x40BB675: trace_state (lj_trace.c:690)
==21572== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21572== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21572== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21572== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21572== by 0x407FA29: lua_resume (lj_api.c:1296)
==21572== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21572== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21572== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21572== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21572== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21572== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21572== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21572== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21572== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21572== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21572== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21572== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21572== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21572== by 0x8062D5B: main (nginx.c:385)
==21572==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 13: bad pattern - status code ok got: ''
expected: '200'
120-re-find.t TEST 13: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
120-re-find.t TEST 18: match with ctx and a pos ==21584== Invalid read of size 4
==21584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21584== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21584== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21584== by 0x8062D5B: main (nginx.c:385)
==21584== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21584==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 18: match with ctx and a pos ==21584==
==21584== Process terminating with default action of signal 11 (SIGSEGV)
==21584== Access not within mapped region at address 0x0
==21584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21584== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21584== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21584== by 0x8062D5B: main (nginx.c:385)
==21584== If you believe this happened as a result of a stack
==21584== overflow in your program's main thread (unlikely but
==21584== possible), you can try to increase the size of the
==21584== main thread stack using the --main-stacksize= flag.
==21584== The main thread stack size used in this run was 8388608.
==21584== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,886
==21584== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21584== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21584== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21584== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21584== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21584== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21584== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21584== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21584== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21584== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21584== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21584== by 0x40BB675: trace_state (lj_trace.c:690)
==21584== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21584== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21584== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21584== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21584== by 0x407FA29: lua_resume (lj_api.c:1296)
==21584== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21584== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21584== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21584== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21584== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21584== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21584== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21584== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21584== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21584== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21584== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21584== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21584== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21584== by 0x8062D5B: main (nginx.c:385)
==21584==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 18: match with ctx and a pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 18: match with ctx and a pos - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 3
-to: 4
-pos: 5
'
120-re-find.t TEST 18: match with ctx and a pos ==21605== Invalid read of size 4
==21605== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21605== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21605== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21605== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21605== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21605== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21605== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21605== by 0x8062D5B: main (nginx.c:385)
==21605== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21605==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 18: match with ctx and a pos ==21605==
==21605== Process terminating with default action of signal 11 (SIGSEGV)
==21605== Access not within mapped region at address 0x0
==21605== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21605== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21605== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21605== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21605== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21605== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21605== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21605== by 0x8062D5B: main (nginx.c:385)
==21605== If you believe this happened as a result of a stack
==21605== overflow in your program's main thread (unlikely but
==21605== possible), you can try to increase the size of the
==21605== main thread stack using the --main-stacksize= flag.
==21605== The main thread stack size used in this run was 8388608.
==21605== 1,024 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,886
==21605== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21605== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21605== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21605== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21605== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21605== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21605== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21605== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21605== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21605== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21605== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21605== by 0x40BB675: trace_state (lj_trace.c:690)
==21605== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21605== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21605== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21605== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21605== by 0x407FA29: lua_resume (lj_api.c:1296)
==21605== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21605== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21605== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21605== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21605== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21605== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21605== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21605== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21605== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21605== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21605== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21605== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21605== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21605== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21605== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21605== by 0x8062D5B: main (nginx.c:385)
==21605==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 18: match with ctx and a pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 18: match with ctx and a pos - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 3
-to: 4
-pos: 5
'
120-re-find.t TEST 9: multi-line mode (. does not match \n) ==21617== Invalid read of size 4
==21617== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21617== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21617== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21617== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21617== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21617== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21617== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21617== by 0x8062D5B: main (nginx.c:385)
==21617== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21617==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 9: multi-line mode (. does not match \n) ==21617==
==21617== Process terminating with default action of signal 11 (SIGSEGV)
==21617== Access not within mapped region at address 0x0
==21617== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21617== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21617== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21617== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21617== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21617== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21617== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21617== by 0x8062D5B: main (nginx.c:385)
==21617== If you believe this happened as a result of a stack
==21617== overflow in your program's main thread (unlikely but
==21617== possible), you can try to increase the size of the
==21617== main thread stack using the --main-stacksize= flag.
==21617== The main thread stack size used in this run was 8388608.
==21617== 1,024 bytes in 1 blocks are definitely lost in loss record 2,775 of 2,881
==21617== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21617== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21617== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21617== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21617== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21617== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21617== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21617== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21617== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21617== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21617== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21617== by 0x40BB675: trace_state (lj_trace.c:690)
==21617== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21617== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21617== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21617== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21617== by 0x407FA29: lua_resume (lj_api.c:1296)
==21617== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21617== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21617== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21617== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21617== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21617== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21617== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21617== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21617== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21617== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21617== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21617== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21617== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21617== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21617== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21617== by 0x8062D5B: main (nginx.c:385)
==21617==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 9: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
120-re-find.t TEST 9: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 9: multi-line mode (. does not match \n) ==21638== Invalid read of size 4
==21638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21638== by 0x8062D5B: main (nginx.c:385)
==21638== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21638==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 9: multi-line mode (. does not match \n) ==21638==
==21638== Process terminating with default action of signal 11 (SIGSEGV)
==21638== Access not within mapped region at address 0x0
==21638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21638== by 0x8062D5B: main (nginx.c:385)
==21638== If you believe this happened as a result of a stack
==21638== overflow in your program's main thread (unlikely but
==21638== possible), you can try to increase the size of the
==21638== main thread stack using the --main-stacksize= flag.
==21638== The main thread stack size used in this run was 8388608.
==21638== 1,024 bytes in 1 blocks are definitely lost in loss record 2,775 of 2,881
==21638== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21638== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21638== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21638== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21638== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21638== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21638== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21638== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21638== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21638== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21638== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21638== by 0x40BB675: trace_state (lj_trace.c:690)
==21638== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21638== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21638== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21638== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21638== by 0x407FA29: lua_resume (lj_api.c:1296)
==21638== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21638== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21638== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21638== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21638== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21638== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21638== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21638== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21638== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21638== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21638== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21638== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21638== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21638== by 0x8062D5B: main (nginx.c:385)
==21638==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 9: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
120-re-find.t TEST 9: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 4: not matched ==21650== Invalid read of size 4
==21650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21650== by 0x8062D5B: main (nginx.c:385)
==21650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 4: not matched ==21650==
==21650== Process terminating with default action of signal 11 (SIGSEGV)
==21650== Access not within mapped region at address 0x0
==21650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21650== by 0x8062D5B: main (nginx.c:385)
==21650== If you believe this happened as a result of a stack
==21650== overflow in your program's main thread (unlikely but
==21650== possible), you can try to increase the size of the
==21650== main thread stack using the --main-stacksize= flag.
==21650== The main thread stack size used in this run was 8388608.
==21650== 1,024 bytes in 1 blocks are definitely lost in loss record 2,891 of 3,017
==21650== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21650== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21650== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21650== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21650== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21650== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21650== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21650== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21650== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21650== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21650== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21650== by 0x40BB675: trace_state (lj_trace.c:690)
==21650== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21650== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21650== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21650== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21650== by 0x407FA29: lua_resume (lj_api.c:1296)
==21650== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21650== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21650== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21650== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21650== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21650== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21650== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21650== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21650== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21650== by 0x8062D5B: main (nginx.c:385)
==21650==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 4: not matched - status code ok got: ''
expected: '200'
120-re-find.t TEST 4: not matched - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 4: not matched ==21671== Invalid read of size 4
==21671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21671== by 0x8062D5B: main (nginx.c:385)
==21671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 4: not matched ==21671==
==21671== Process terminating with default action of signal 11 (SIGSEGV)
==21671== Access not within mapped region at address 0x0
==21671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21671== by 0x8062D5B: main (nginx.c:385)
==21671== If you believe this happened as a result of a stack
==21671== overflow in your program's main thread (unlikely but
==21671== possible), you can try to increase the size of the
==21671== main thread stack using the --main-stacksize= flag.
==21671== The main thread stack size used in this run was 8388608.
==21671== 1,024 bytes in 1 blocks are definitely lost in loss record 2,891 of 3,017
==21671== at 0x402C768: realloc (vg_replace_malloc.c:834)
==21671== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21671== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21671== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==21671== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==21671== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==21671== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==21671== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==21671== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==21671== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21671== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==21671== by 0x40BB675: trace_state (lj_trace.c:690)
==21671== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21671== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21671== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21671== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21671== by 0x407FA29: lua_resume (lj_api.c:1296)
==21671== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21671== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21671== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21671== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21671== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21671== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21671== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21671== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21671== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21671== by 0x8062D5B: main (nginx.c:385)
==21671==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
120-re-find.t TEST 4: not matched - status code ok got: ''
expected: '200'
120-re-find.t TEST 4: not matched - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
121-version.t TEST 1: nginx version - Can't connect to 127.0.0.1:1984: Connection refused ==21680== Invalid read of size 4
==21680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21680== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21680== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21680== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21680== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21680== by 0x8062D5B: main (nginx.c:385)
==21680== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21680==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
121-version.t TEST 1: nginx version - Can't connect to 127.0.0.1:1984: Connection refused ==21680==
==21680== Process terminating with default action of signal 11 (SIGSEGV)
==21680== Access not within mapped region at address 0x0
==21680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21680== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21680== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21680== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21680== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21680== by 0x8062D5B: main (nginx.c:385)
==21680== If you believe this happened as a result of a stack
==21680== overflow in your program's main thread (unlikely but
==21680== possible), you can try to increase the size of the
==21680== main thread stack using the --main-stacksize= flag.
==21680== The main thread stack size used in this run was 8388608.

121-version.t TEST 1: nginx version - status code ok got: ''
expected: '200'
121-version.t TEST 1: nginx version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
121-version.t TEST 1: nginx version - Can't connect to 127.0.0.1:1984: Connection refused ==21681== Invalid read of size 4
==21681== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21681== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21681== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21681== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21681== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21681== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21681== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21681== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21681== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21681== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21681== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21681== by 0x8062D5B: main (nginx.c:385)
==21681== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21681==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
121-version.t TEST 1: nginx version - Can't connect to 127.0.0.1:1984: Connection refused ==21681==
==21681== Process terminating with default action of signal 11 (SIGSEGV)
==21681== Access not within mapped region at address 0x0
==21681== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21681== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21681== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21681== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21681== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21681== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21681== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21681== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21681== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21681== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21681== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21681== by 0x8062D5B: main (nginx.c:385)
==21681== If you believe this happened as a result of a stack
==21681== overflow in your program's main thread (unlikely but
==21681== possible), you can try to increase the size of the
==21681== main thread stack using the --main-stacksize= flag.
==21681== The main thread stack size used in this run was 8388608.

121-version.t TEST 1: nginx version - status code ok got: ''
expected: '200'
121-version.t TEST 1: nginx version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
121-version.t TEST 2: ngx_lua_version ==21693== Invalid read of size 4
==21693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21693== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21693== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21693== by 0x8062D5B: main (nginx.c:385)
==21693== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21693==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
121-version.t TEST 2: ngx_lua_version ==21693==
==21693== Process terminating with default action of signal 11 (SIGSEGV)
==21693== Access not within mapped region at address 0x0
==21693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21693== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21693== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21693== by 0x8062D5B: main (nginx.c:385)
==21693== If you believe this happened as a result of a stack
==21693== overflow in your program's main thread (unlikely but
==21693== possible), you can try to increase the size of the
==21693== main thread stack using the --main-stacksize= flag.
==21693== The main thread stack size used in this run was 8388608.

121-version.t TEST 2: ngx_lua_version - status code ok got: ''
expected: '200'
121-version.t TEST 2: ngx_lua_version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
121-version.t TEST 2: ngx_lua_version ==21714== Invalid read of size 4
==21714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21714== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21714== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21714== by 0x8062D5B: main (nginx.c:385)
==21714== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
121-version.t TEST 2: ngx_lua_version ==21714==
==21714== Process terminating with default action of signal 11 (SIGSEGV)
==21714== Access not within mapped region at address 0x0
==21714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21714== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21714== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21714== by 0x8062D5B: main (nginx.c:385)
==21714== If you believe this happened as a result of a stack
==21714== overflow in your program's main thread (unlikely but
==21714== possible), you can try to increase the size of the
==21714== main thread stack using the --main-stacksize= flag.
==21714== The main thread stack size used in this run was 8388608.

121-version.t TEST 2: ngx_lua_version - status code ok got: ''
expected: '200'
121-version.t TEST 2: ngx_lua_version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==21723== Invalid read of size 4
==21723== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21723== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21723== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21723== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21723== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21723== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21723== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21723== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21723== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21723== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21723== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21723== by 0x8062D5B: main (nginx.c:385)
==21723== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21723==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==21723==
==21723== Process terminating with default action of signal 11 (SIGSEGV)
==21723== Access not within mapped region at address 0x0
==21723== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21723== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21723== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21723== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21723== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21723== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21723== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21723== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21723== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21723== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21723== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21723== by 0x8062D5B: main (nginx.c:385)
==21723== If you believe this happened as a result of a stack
==21723== overflow in your program's main thread (unlikely but
==21723== possible), you can try to increase the size of the
==21723== main thread stack using the --main-stacksize= flag.
==21723== The main thread stack size used in this run was 8388608.

122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:worker pid: \d+
)'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==21724== Invalid read of size 4
==21724== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21724== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21724== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21724== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21724== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21724== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21724== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21724== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21724== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21724== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21724== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21724== by 0x8062D5B: main (nginx.c:385)
==21724== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21724==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==21724==
==21724== Process terminating with default action of signal 11 (SIGSEGV)
==21724== Access not within mapped region at address 0x0
==21724== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21724== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21724== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21724== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21724== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21724== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21724== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21724== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21724== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21724== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21724== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21724== by 0x8062D5B: main (nginx.c:385)
==21724== If you believe this happened as a result of a stack
==21724== overflow in your program's main thread (unlikely but
==21724== possible), you can try to increase the size of the
==21724== main thread stack using the --main-stacksize= flag.
==21724== The main thread stack size used in this run was 8388608.

122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:worker pid: \d+
)'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting ==21736== Invalid read of size 4
==21736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21736== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21736== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21736== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21736== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21736== by 0x8062D5B: main (nginx.c:385)
==21736== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21736==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting ==21736==
==21736== Process terminating with default action of signal 11 (SIGSEGV)
==21736== Access not within mapped region at address 0x0
==21736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21736== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21736== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21736== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21736== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21736== by 0x8062D5B: main (nginx.c:385)
==21736== If you believe this happened as a result of a stack
==21736== overflow in your program's main thread (unlikely but
==21736== possible), you can try to increase the size of the
==21736== main thread stack using the --main-stacksize= flag.
==21736== The main thread stack size used in this run was 8388608.

122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - status code ok got: ''
expected: '200'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'worker exiting: false
'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting ==21757== Invalid read of size 4
==21757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21757== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21757== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21757== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21757== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21757== by 0x8062D5B: main (nginx.c:385)
==21757== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21757==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting ==21757==
==21757== Process terminating with default action of signal 11 (SIGSEGV)
==21757== Access not within mapped region at address 0x0
==21757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21757== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21757== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21757== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21757== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21757== by 0x8062D5B: main (nginx.c:385)
==21757== If you believe this happened as a result of a stack
==21757== overflow in your program's main thread (unlikely but
==21757== possible), you can try to increase the size of the
==21757== main thread stack using the --main-stacksize= flag.
==21757== The main thread stack size used in this run was 8388608.

122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - status code ok got: ''
expected: '200'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'worker exiting: false
'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid ==21769== Invalid read of size 4
==21769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21769== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21769== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21769== by 0x8062D5B: main (nginx.c:385)
==21769== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21769==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
122-worker.t TEST 3: content_by_lua + ngx.worker.pid ==21769==
==21769== Process terminating with default action of signal 11 (SIGSEGV)
==21769== Access not within mapped region at address 0x0
==21769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21769== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21769== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21769== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21769== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21769== by 0x8062D5B: main (nginx.c:385)
==21769== If you believe this happened as a result of a stack
==21769== overflow in your program's main thread (unlikely but
==21769== possible), you can try to increase the size of the
==21769== main thread stack using the --main-stacksize= flag.
==21769== The main thread stack size used in this run was 8388608.

122-worker.t TEST 3: content_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:^worker pid: \d+
)'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid ==21790== Invalid read of size 4
==21790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21790== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21790== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21790== by 0x8062D5B: main (nginx.c:385)
==21790== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21790==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
122-worker.t TEST 3: content_by_lua + ngx.worker.pid ==21790==
==21790== Process terminating with default action of signal 11 (SIGSEGV)
==21790== Access not within mapped region at address 0x0
==21790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21790== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21790== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21790== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21790== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21790== by 0x8062D5B: main (nginx.c:385)
==21790== If you believe this happened as a result of a stack
==21790== overflow in your program's main thread (unlikely but
==21790== possible), you can try to increase the size of the
==21790== main thread stack using the --main-stacksize= flag.
==21790== The main thread stack size used in this run was 8388608.

122-worker.t TEST 3: content_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:^worker pid: \d+
)'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - Can't connect to 127.0.0.1:1984: Connection refused ==21799== Invalid read of size 4
==21799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21799== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21799== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21799== by 0x8062D5B: main (nginx.c:385)
==21799== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21799==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - Can't connect to 127.0.0.1:1984: Connection refused ==21799==
==21799== Process terminating with default action of signal 11 (SIGSEGV)
==21799== Access not within mapped region at address 0x0
==21799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21799== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21799== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21799== by 0x8062D5B: main (nginx.c:385)
==21799== If you believe this happened as a result of a stack
==21799== overflow in your program's main thread (unlikely but
==21799== possible), you can try to increase the size of the
==21799== main thread stack using the --main-stacksize= flag.
==21799== The main thread stack size used in this run was 8388608.

123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - Can't connect to 127.0.0.1:1984: Connection refused ==21800== Invalid read of size 4
==21800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21800== by 0x8062D5B: main (nginx.c:385)
==21800== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21800==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - Can't connect to 127.0.0.1:1984: Connection refused ==21800==
==21800== Process terminating with default action of signal 11 (SIGSEGV)
==21800== Access not within mapped region at address 0x0
==21800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21800== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21800== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21800== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21800== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21800== by 0x8062D5B: main (nginx.c:385)
==21800== If you believe this happened as a result of a stack
==21800== overflow in your program's main thread (unlikely but
==21800== possible), you can try to increase the size of the
==21800== main thread stack using the --main-stacksize= flag.
==21800== The main thread stack size used in this run was 8388608.

123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) ==21812== Invalid read of size 4
==21812== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21812== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21812== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21812== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21812== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21812== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21812== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21812== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21812== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21812== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21812== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21812== by 0x8062D5B: main (nginx.c:385)
==21812== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21812==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) ==21812==
==21812== Process terminating with default action of signal 11 (SIGSEGV)
==21812== Access not within mapped region at address 0x0
==21812== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21812== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21812== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21812== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21812== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21812== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21812== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21812== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21812== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21812== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21812== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21812== by 0x8062D5B: main (nginx.c:385)
==21812== If you believe this happened as a result of a stack
==21812== overflow in your program's main thread (unlikely but
==21812== possible), you can try to increase the size of the
==21812== main thread stack using the --main-stacksize= flag.
==21812== The main thread stack size used in this run was 8388608.

123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) ==21833== Invalid read of size 4
==21833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21833== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21833== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21833== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21833== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21833== by 0x8062D5B: main (nginx.c:385)
==21833== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21833==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) ==21833==
==21833== Process terminating with default action of signal 11 (SIGSEGV)
==21833== Access not within mapped region at address 0x0
==21833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21833== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21833== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21833== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21833== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21833== by 0x8062D5B: main (nginx.c:385)
==21833== If you believe this happened as a result of a stack
==21833== overflow in your program's main thread (unlikely but
==21833== possible), you can try to increase the size of the
==21833== main thread stack using the --main-stacksize= flag.
==21833== The main thread stack size used in this run was 8388608.

123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off ==21855== Invalid read of size 4
==21855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21855== by 0x8062D5B: main (nginx.c:385)
==21855== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21855==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off ==21855==
==21855== Process terminating with default action of signal 11 (SIGSEGV)
==21855== Access not within mapped region at address 0x0
==21855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21855== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21855== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21855== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21855== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21855== by 0x8062D5B: main (nginx.c:385)
==21855== If you believe this happened as a result of a stack
==21855== overflow in your program's main thread (unlikely but
==21855== possible), you can try to increase the size of the
==21855== main thread stack using the --main-stacksize= flag.
==21855== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off - status code ok got: ''
expected: '200'
124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timer created
-failed to connect: connection refused
'
124-init-worker.t TEST 3: timer.at ==21887== Invalid read of size 4
==21887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21887== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21887== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21887== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21887== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21887== by 0x8062D5B: main (nginx.c:385)
==21887== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21887==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 3: timer.at ==21887==
==21887== Process terminating with default action of signal 11 (SIGSEGV)
==21887== Access not within mapped region at address 0x0
==21887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21887== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21887== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21887== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21887== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21887== by 0x8062D5B: main (nginx.c:385)
==21887== If you believe this happened as a result of a stack
==21887== overflow in your program's main thread (unlikely but
==21887== possible), you can try to increase the size of the
==21887== main thread stack using the --main-stacksize= flag.
==21887== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 3: timer.at - status code ok got: ''
expected: '200'
124-init-worker.t TEST 3: timer.at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'my_counter = 1
'
124-init-worker.t TEST 10: escape_uri ==21919== Invalid read of size 4
==21919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21919== by 0x8062D5B: main (nginx.c:385)
==21919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 10: escape_uri ==21919==
==21919== Process terminating with default action of signal 11 (SIGSEGV)
==21919== Access not within mapped region at address 0x0
==21919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21919== by 0x8062D5B: main (nginx.c:385)
==21919== If you believe this happened as a result of a stack
==21919== overflow in your program's main thread (unlikely but
==21919== possible), you can try to increase the size of the
==21919== main thread stack using the --main-stacksize= flag.
==21919== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 10: escape_uri - status code ok got: ''
expected: '200'
124-init-worker.t TEST 10: escape_uri - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue #554) ==21951== Invalid read of size 4
==21951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21951== by 0x8062D5B: main (nginx.c:385)
==21951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21951==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue #554) ==21951==
==21951== Process terminating with default action of signal 11 (SIGSEGV)
==21951== Access not within mapped region at address 0x0
==21951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21951== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21951== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21951== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21951== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21951== by 0x8062D5B: main (nginx.c:385)
==21951== If you believe this happened as a result of a stack
==21951== overflow in your program's main thread (unlikely but
==21951== possible), you can try to increase the size of the
==21951== main thread stack using the --main-stacksize= flag.
==21951== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue \#554) - status code ok got: ''
expected: '200'
124-init-worker.t TEST 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue \#554) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t ERROR: client socket timed out - TEST 6: timer.at + cosocket (by_lua_file) '
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - status code ok got: ''
expected: '200'
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
warn(): created timer: 1
warn(): timer expired (premature: false)
warn(): request sent: 11
-warn(): received: OK
'
124-init-worker.t TEST 7: ngx.ctx ==21983== Invalid read of size 4
==21983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21983== by 0x8062D5B: main (nginx.c:385)
==21983== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21983==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 7: ngx.ctx ==21983==
==21983== Process terminating with default action of signal 11 (SIGSEGV)
==21983== Access not within mapped region at address 0x0
==21983== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21983== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21983== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21983== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21983== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21983== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21983== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21983== by 0x8062D5B: main (nginx.c:385)
==21983== If you believe this happened as a result of a stack
==21983== overflow in your program's main thread (unlikely but
==21983== possible), you can try to increase the size of the
==21983== main thread stack using the --main-stacksize= flag.
==21983== The main thread stack size used in this run was 8388608.
==21983== 512 bytes in 1 blocks are definitely lost in loss record 2,780 of 2,998
==21983== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==21983== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==21983== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21983== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21983== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==21983== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==21983== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==21983== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==21983== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==21983== by 0x409F552: lj_record_ins (lj_record.c:2339)
==21983== by 0x40BB16A: trace_state (lj_trace.c:680)
==21983== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21983== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21983== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21983== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21983== by 0x407FA29: lua_resume (lj_api.c:1296)
==21983== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21983== by 0x815C68A: ngx_stream_lua_sleep_resume (ngx_stream_lua_sleep.c:206)
==21983== by 0x815C7B1: ngx_stream_lua_sleep_handler (ngx_stream_lua_sleep.c:145)
==21983== by 0x80827AB: ngx_event_expire_timers (ngx_event_timer.c:94)
==21983== by 0x8082271: ngx_process_events_and_timers (ngx_event.c:271)
==21983== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21983== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21983== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21983== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21983== by 0x8062D5B: main (nginx.c:385)
==21983==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_sleep_resume
fun:ngx_stream_lua_sleep_handler
fun:ngx_event_expire_timers
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 7: ngx.ctx ==22015== Invalid read of size 4
==22015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22015== by 0x8062D5B: main (nginx.c:385)
==22015== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22015==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 7: ngx.ctx ==22015==
==22015== Process terminating with default action of signal 11 (SIGSEGV)
==22015== Access not within mapped region at address 0x0
==22015== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22015== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22015== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22015== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22015== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22015== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22015== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22015== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22015== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22015== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22015== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22015== by 0x8062D5B: main (nginx.c:385)
==22015== If you believe this happened as a result of a stack
==22015== overflow in your program's main thread (unlikely but
==22015== possible), you can try to increase the size of the
==22015== main thread stack using the --main-stacksize= flag.
==22015== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 7: ngx.ctx - status code ok got: ''
expected: '200'
124-init-worker.t TEST 7: ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) ==22047== Invalid read of size 4
==22047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22047== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22047== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22047== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22047== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22047== by 0x8062D5B: main (nginx.c:385)
==22047== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22047==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) ==22047==
==22047== Process terminating with default action of signal 11 (SIGSEGV)
==22047== Access not within mapped region at address 0x0
==22047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22047== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22047== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22047== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22047== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22047== by 0x8062D5B: main (nginx.c:385)
==22047== If you believe this happened as a result of a stack
==22047== overflow in your program's main thread (unlikely but
==22047== possible), you can try to increase the size of the
==22047== main thread stack using the --main-stacksize= flag.
==22047== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) - status code ok got: ''
expected: '200'
124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'foo = 5eb63bbbe01eeed093cb22bb8f5acdc3
'
124-init-worker.t TEST 8: print ==22080== Invalid read of size 4
==22080== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22080== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22080== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22080== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22080== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22080== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22080== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22080== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22080== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22080== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22080== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22080== by 0x8062D5B: main (nginx.c:385)
==22080== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22080==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 8: print ==22080==
==22080== Process terminating with default action of signal 11 (SIGSEGV)
==22080== Access not within mapped region at address 0x0
==22080== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22080== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22080== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22080== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22080== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22080== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22080== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22080== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22080== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22080== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22080== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22080== by 0x8062D5B: main (nginx.c:385)
==22080== If you believe this happened as a result of a stack
==22080== overflow in your program's main thread (unlikely but
==22080== possible), you can try to increase the size of the
==22080== main thread stack using the --main-stacksize= flag.
==22080== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 8: print - status code ok got: ''
expected: '200'
124-init-worker.t TEST 8: print - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 11: ngx.re ==22112== Invalid read of size 4
==22112== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22112== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22112== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22112== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22112== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22112== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22112== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22112== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22112== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22112== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22112== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22112== by 0x8062D5B: main (nginx.c:385)
==22112== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22112==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 11: ngx.re ==22112==
==22112== Process terminating with default action of signal 11 (SIGSEGV)
==22112== Access not within mapped region at address 0x0
==22112== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22112== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22112== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22112== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22112== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22112== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22112== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22112== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22112== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22112== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22112== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22112== by 0x8062D5B: main (nginx.c:385)
==22112== If you believe this happened as a result of a stack
==22112== overflow in your program's main thread (unlikely but
==22112== possible), you can try to increase the size of the
==22112== main thread stack using the --main-stacksize= flag.
==22112== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 11: ngx.re - status code ok got: ''
expected: '200'
124-init-worker.t TEST 11: ngx.re - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 12: ngx.time ==22143== Invalid read of size 4
==22143== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22143== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22143== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22143== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22143== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22143== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22143== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22143== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22143== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22143== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22143== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22143== by 0x8062D5B: main (nginx.c:385)
==22143== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22143==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 12: ngx.time ==22143==
==22143== Process terminating with default action of signal 11 (SIGSEGV)
==22143== Access not within mapped region at address 0x0
==22143== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22143== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22143== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22143== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22143== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22143== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22143== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22143== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22143== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22143== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22143== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22143== by 0x8062D5B: main (nginx.c:385)
==22143== If you believe this happened as a result of a stack
==22143== overflow in your program's main thread (unlikely but
==22143== possible), you can try to increase the size of the
==22143== main thread stack using the --main-stacksize= flag.
==22143== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 12: ngx.time - status code ok got: ''
expected: '200'
124-init-worker.t TEST 12: ngx.time - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 2: no ngx.say() ==22175== Invalid read of size 4
==22175== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22175== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22175== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22175== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22175== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22175== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22175== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22175== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22175== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22175== by 0x8062D5B: main (nginx.c:385)
==22175== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22175==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 2: no ngx.say() ==22175==
==22175== Process terminating with default action of signal 11 (SIGSEGV)
==22175== Access not within mapped region at address 0x0
==22175== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22175== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22175== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22175== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22175== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22175== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22175== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22175== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22175== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22175== by 0x8062D5B: main (nginx.c:385)
==22175== If you believe this happened as a result of a stack
==22175== overflow in your program's main thread (unlikely but
==22175== possible), you can try to increase the size of the
==22175== main thread stack using the --main-stacksize= flag.
==22175== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 2: no ngx.say() - status code ok got: ''
expected: '200'
124-init-worker.t TEST 2: no ngx.say() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'foo = nil
'
124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default ==22207== Invalid read of size 4
==22207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22207== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22207== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22207== by 0x8062D5B: main (nginx.c:385)
==22207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default ==22207==
==22207== Process terminating with default action of signal 11 (SIGSEGV)
==22207== Access not within mapped region at address 0x0
==22207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22207== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22207== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22207== by 0x8062D5B: main (nginx.c:385)
==22207== If you believe this happened as a result of a stack
==22207== overflow in your program's main thread (unlikely but
==22207== possible), you can try to increase the size of the
==22207== main thread stack using the --main-stacksize= flag.
==22207== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default - status code ok got: ''
expected: '200'
124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timer created
-failed to connect: connection refused
'
124-init-worker.t TEST 9: unescape_uri ==22238== Invalid read of size 4
==22238== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22238== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22238== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22238== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22238== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22238== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22238== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22238== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22238== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22238== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22238== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22238== by 0x8062D5B: main (nginx.c:385)
==22238== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22238==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 9: unescape_uri ==22238==
==22238== Process terminating with default action of signal 11 (SIGSEGV)
==22238== Access not within mapped region at address 0x0
==22238== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22238== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22238== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22238== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22238== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22238== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22238== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22238== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22238== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22238== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22238== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22238== by 0x8062D5B: main (nginx.c:385)
==22238== If you believe this happened as a result of a stack
==22238== overflow in your program's main thread (unlikely but
==22238== possible), you can try to increase the size of the
==22238== main thread stack using the --main-stacksize= flag.
==22238== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 9: unescape_uri - status code ok got: ''
expected: '200'
124-init-worker.t TEST 9: unescape_uri - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 9: unescape_uri - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:04:59 [error] 22228\#0: *373 connect() failed (111: Connection refused), context: ngx.timer" (req 0) 2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F229E0:8
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22A18:32
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22A68:8
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22AA0:28
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22AF0:8
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22B28:28
2020/10/27 05:04:59 [debug] 22228\#0: *373 stream lua tcp socket handle connect error
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22B78:8
2020/10/27 05:04:59 [debug] 21841\#0: malloc: 05F22BB0:32
'
124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on ==22271== Invalid read of size 4
==22271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22271== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22271== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22271== by 0x8062D5B: main (nginx.c:385)
==22271== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22271==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on ==22271==
==22271== Process terminating with default action of signal 11 (SIGSEGV)
==22271== Access not within mapped region at address 0x0
==22271== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22271== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22271== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22271== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22271== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22271== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22271== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22271== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22271== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22271== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22271== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22271== by 0x8062D5B: main (nginx.c:385)
==22271== If you believe this happened as a result of a stack
==22271== overflow in your program's main thread (unlikely but
==22271== possible), you can try to increase the size of the
==22271== main thread stack using the --main-stacksize= flag.
==22271== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on - status code ok got: ''
expected: '200'
124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timer created
-failed to connect: connection refused
'
124-init-worker.t TEST 13: cosocket with resolver ==22303== Invalid read of size 4
==22303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22303== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22303== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22303== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22303== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22303== by 0x8062D5B: main (nginx.c:385)
==22303== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22303==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 13: cosocket with resolver ==22303==
==22303== Process terminating with default action of signal 11 (SIGSEGV)
==22303== Access not within mapped region at address 0x0
==22303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22303== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22303== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22303== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22303== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22303== by 0x8062D5B: main (nginx.c:385)
==22303== If you believe this happened as a result of a stack
==22303== overflow in your program's main thread (unlikely but
==22303== possible), you can try to increase the size of the
==22303== main thread stack using the --main-stacksize= flag.
==22303== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 13: cosocket with resolver - status code ok got: ''
expected: '200'
124-init-worker.t TEST 13: cosocket with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:timer created
connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
124-init-worker.t TEST 13: cosocket with resolver - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:05:06 [error] 22292\#0: *437 connect() failed (111: Connection refused), context: ngx.timer" (req 0) 2020/10/27 05:05:06 [debug] 22292\#0: *437 stream lua tcp socket handle connect error
2020/10/27 05:05:06 [debug] 22292\#0: *437 stream lua finalize socket
2020/10/27 05:05:06 [debug] 22292\#0: *437 lua stream cleanup free: 04ED3628
2020/10/27 05:05:06 [debug] 22292\#0: *437 lua close socket connection
2020/10/27 05:05:05 [debug] 21841\#0: malloc: 05ECB440:8
2020/10/27 05:05:05 [debug] 21841\#0: malloc: 04E1BD10:24
2020/10/27 05:05:05 [debug] 21841\#0: malloc: 05ED46C8:8
2020/10/27 05:05:05 [debug] 21841\#0: malloc: 05ED0178:16
2020/10/27 05:05:05 [debug] 21841\#0: malloc: 05EDA228:8
'
124-init-worker.t ERROR: client socket timed out - TEST 4: timer.at + cosocket '
124-init-worker.t TEST 4: timer.at + cosocket - status code ok got: ''
expected: '200'
124-init-worker.t TEST 4: timer.at + cosocket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 4: timer.at + cosocket - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
warn(): created timer: 1
warn(): timer expired (premature: false)
warn(): request sent: 11
-warn(): received: OK
'
124-init-worker.t TEST 1: set a global lua var ==22334== Invalid read of size 4
==22334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22334== by 0x8062D5B: main (nginx.c:385)
==22334== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22334==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 1: set a global lua var ==22334==
==22334== Process terminating with default action of signal 11 (SIGSEGV)
==22334== Access not within mapped region at address 0x0
==22334== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22334== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22334== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22334== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22334== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22334== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22334== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22334== by 0x8062D5B: main (nginx.c:385)
==22334== If you believe this happened as a result of a stack
==22334== overflow in your program's main thread (unlikely but
==22334== possible), you can try to increase the size of the
==22334== main thread stack using the --main-stacksize= flag.
==22334== The main thread stack size used in this run was 8388608.
==22334== 512 bytes in 1 blocks are definitely lost in loss record 2,778 of 2,999
==22334== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22334== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22334== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22334== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22334== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22334== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==22334== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==22334== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==22334== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==22334== by 0x409F552: lj_record_ins (lj_record.c:2339)
==22334== by 0x40BB16A: trace_state (lj_trace.c:680)
==22334== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22334== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22334== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22334== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22334== by 0x407FA29: lua_resume (lj_api.c:1296)
==22334== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22334== by 0x815C68A: ngx_stream_lua_sleep_resume (ngx_stream_lua_sleep.c:206)
==22334== by 0x815C7B1: ngx_stream_lua_sleep_handler (ngx_stream_lua_sleep.c:145)
==22334== by 0x80827AB: ngx_event_expire_timers (ngx_event_timer.c:94)
==22334== by 0x8082271: ngx_process_events_and_timers (ngx_event.c:271)
==22334== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22334== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22334== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22334== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22334== by 0x8062D5B: main (nginx.c:385)
==22334==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_sleep_resume
fun:ngx_stream_lua_sleep_handler
fun:ngx_event_expire_timers
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 1: set a global lua var ==22366== Invalid read of size 4
==22366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22366== by 0x8062D5B: main (nginx.c:385)
==22366== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22366==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
124-init-worker.t TEST 1: set a global lua var ==22366==
==22366== Process terminating with default action of signal 11 (SIGSEGV)
==22366== Access not within mapped region at address 0x0
==22366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22366== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22366== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22366== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22366== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22366== by 0x8062D5B: main (nginx.c:385)
==22366== If you believe this happened as a result of a stack
==22366== overflow in your program's main thread (unlikely but
==22366== possible), you can try to increase the size of the
==22366== main thread stack using the --main-stacksize= flag.
==22366== The main thread stack size used in this run was 8388608.

124-init-worker.t TEST 1: set a global lua var - status code ok got: ''
expected: '200'
124-init-worker.t TEST 1: set a global lua var - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'foo = 5eb63bbbe01eeed093cb22bb8f5acdc3
'
125-configure-args.t TEST 1: nginx configure - Can't connect to 127.0.0.1:1984: Connection refused ==22395== Invalid read of size 4
==22395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22395== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22395== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22395== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22395== by 0x8062D5B: main (nginx.c:385)
==22395== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22395==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
125-configure-args.t TEST 1: nginx configure - Can't connect to 127.0.0.1:1984: Connection refused ==22395==
==22395== Process terminating with default action of signal 11 (SIGSEGV)
==22395== Access not within mapped region at address 0x0
==22395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22395== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22395== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22395== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22395== by 0x8062D5B: main (nginx.c:385)
==22395== If you believe this happened as a result of a stack
==22395== overflow in your program's main thread (unlikely but
==22395== possible), you can try to increase the size of the
==22395== main thread stack using the --main-stacksize= flag.
==22395== The main thread stack size used in this run was 8388608.

125-configure-args.t TEST 1: nginx configure - status code ok got: ''
expected: '200'
125-configure-args.t TEST 1: nginx configure - response_body_like - response is expected () ''
doesn't match '(?^s:^\s*\-\-[^-]+)'
125-configure-args.t TEST 1: nginx configure - Can't connect to 127.0.0.1:1984: Connection refused ==22396== Invalid read of size 4
==22396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22396== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22396== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22396== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22396== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22396== by 0x8062D5B: main (nginx.c:385)
==22396== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22396==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
125-configure-args.t TEST 1: nginx configure - Can't connect to 127.0.0.1:1984: Connection refused ==22396==
==22396== Process terminating with default action of signal 11 (SIGSEGV)
==22396== Access not within mapped region at address 0x0
==22396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22396== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22396== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22396== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22396== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22396== by 0x8062D5B: main (nginx.c:385)
==22396== If you believe this happened as a result of a stack
==22396== overflow in your program's main thread (unlikely but
==22396== possible), you can try to increase the size of the
==22396== main thread stack using the --main-stacksize= flag.
==22396== The main thread stack size used in this run was 8388608.

125-configure-args.t TEST 1: nginx configure - status code ok got: ''
expected: '200'
125-configure-args.t TEST 1: nginx configure - response_body_like - response is expected () ''
doesn't match '(?^s:^\s*\-\-[^-]+)'
126-shdict-frag.t TEST 10: fuzz testing - Can't connect to 127.0.0.1:1984: Connection refused ==22405== Invalid read of size 4
==22405== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22405== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22405== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22405== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22405== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22405== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22405== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22405== by 0x8062D5B: main (nginx.c:385)
==22405== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22405==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 10: fuzz testing - Can't connect to 127.0.0.1:1984: Connection refused ==22405==
==22405== Process terminating with default action of signal 11 (SIGSEGV)
==22405== Access not within mapped region at address 0x0
==22405== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22405== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22405== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22405== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22405== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22405== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22405== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22405== by 0x8062D5B: main (nginx.c:385)
==22405== If you believe this happened as a result of a stack
==22405== overflow in your program's main thread (unlikely but
==22405== possible), you can try to increase the size of the
==22405== main thread stack using the --main-stacksize= flag.
==22405== The main thread stack size used in this run was 8388608.
==22405== 4,096 bytes in 1 blocks are definitely lost in loss record 2,860 of 2,888
==22405== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22405== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22405== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22405== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22405== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==22405== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==22405== by 0x40A4F64: crec_ct_tv (lj_crecord.c:644)
==22405== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==22405== by 0x40A711A: crec_call (lj_crecord.c:1231)
==22405== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==22405== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==22405== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==22405== by 0x40BB16A: trace_state (lj_trace.c:680)
==22405== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22405== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22405== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==22405== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22405== by 0x407FA29: lua_resume (lj_api.c:1296)
==22405== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22405== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22405== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22405== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22405== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22405== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22405== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22405== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22405== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22405== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22405== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22405== by 0x8062D5B: main (nginx.c:385)
==22405==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:crec_ct_tv
fun:crec_call_args
fun:crec_call
fun:recff_cdata_call
fun:lj_ffrecord_func
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_call
fun:lj_vm_hotcall
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 10: fuzz testing - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) ==22416== Invalid read of size 4
==22416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22416== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22416== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22416== by 0x8062D5B: main (nginx.c:385)
==22416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) ==22416==
==22416== Process terminating with default action of signal 11 (SIGSEGV)
==22416== Access not within mapped region at address 0x0
==22416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22416== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22416== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22416== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22416== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22416== by 0x8062D5B: main (nginx.c:385)
==22416== If you believe this happened as a result of a stack
==22416== overflow in your program's main thread (unlikely but
==22416== possible), you can try to increase the size of the
==22416== main thread stack using the --main-stacksize= flag.
==22416== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 4: merge one single-page block backward, but no more ==22447== Invalid read of size 4
==22447== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22447== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22447== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22447== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22447== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22447== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22447== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22447== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22447== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22447== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22447== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22447== by 0x8062D5B: main (nginx.c:385)
==22447== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22447==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 4: merge one single-page block backward, but no more ==22447==
==22447== Process terminating with default action of signal 11 (SIGSEGV)
==22447== Access not within mapped region at address 0x0
==22447== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22447== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22447== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22447== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22447== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22447== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22447== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22447== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22447== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22447== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22447== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22447== by 0x8062D5B: main (nginx.c:385)
==22447== If you believe this happened as a result of a stack
==22447== overflow in your program's main thread (unlikely but
==22447== possible), you can try to increase the size of the
==22447== main thread stack using the --main-stacksize= flag.
==22447== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 4: merge one single-page block backward, but no more - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward ==22478== Invalid read of size 4
==22478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22478== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22478== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22478== by 0x8062D5B: main (nginx.c:385)
==22478== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22478==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward ==22478==
==22478== Process terminating with default action of signal 11 (SIGSEGV)
==22478== Access not within mapped region at address 0x0
==22478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22478== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22478== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22478== by 0x8062D5B: main (nginx.c:385)
==22478== If you believe this happened as a result of a stack
==22478== overflow in your program's main thread (unlikely but
==22478== possible), you can try to increase the size of the
==22478== main thread stack using the --main-stacksize= flag.
==22478== The main thread stack size used in this run was 8388608.
==22478== 1,024 bytes in 1 blocks are definitely lost in loss record 2,676 of 2,761
==22478== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22478== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22478== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22478== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22478== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22478== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==22478== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==22478== by 0x409C767: lj_record_mm_lookup (lj_record.c:999)
==22478== by 0x409E47A: rec_mm_comp_cdata (lj_record.c:1202)
==22478== by 0x40A0BF3: lj_record_ins (lj_record.c:2173)
==22478== by 0x40BB16A: trace_state (lj_trace.c:680)
==22478== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22478== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22478== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22478== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22478== by 0x407FA29: lua_resume (lj_api.c:1296)
==22478== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22478== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22478== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22478== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22478== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22478== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22478== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22478== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22478== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22478== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22478== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22478== by 0x8062D5B: main (nginx.c:385)
==22478==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kgc
fun:lj_record_mm_lookup
fun:rec_mm_comp_cdata
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) ==22509== Invalid read of size 4
==22509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22509== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22509== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22509== by 0x8062D5B: main (nginx.c:385)
==22509== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22509==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) ==22509==
==22509== Process terminating with default action of signal 11 (SIGSEGV)
==22509== Access not within mapped region at address 0x0
==22509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22509== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22509== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22509== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22509== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22509== by 0x8062D5B: main (nginx.c:385)
==22509== If you believe this happened as a result of a stack
==22509== overflow in your program's main thread (unlikely but
==22509== possible), you can try to increase the size of the
==22509== main thread stack using the --main-stacksize= flag.
==22509== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) ==22540== Invalid read of size 4
==22540== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22540== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22540== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22540== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22540== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22540== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22540== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22540== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22540== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22540== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22540== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22540== by 0x8062D5B: main (nginx.c:385)
==22540== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22540==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) ==22540==
==22540== Process terminating with default action of signal 11 (SIGSEGV)
==22540== Access not within mapped region at address 0x0
==22540== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22540== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22540== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22540== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22540== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22540== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22540== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22540== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22540== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22540== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22540== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22540== by 0x8062D5B: main (nginx.c:385)
==22540== If you believe this happened as a result of a stack
==22540== overflow in your program's main thread (unlikely but
==22540== possible), you can try to increase the size of the
==22540== main thread stack using the --main-stacksize= flag.
==22540== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) ==22571== Invalid read of size 4
==22571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22571== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22571== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22571== by 0x8062D5B: main (nginx.c:385)
==22571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) ==22571==
==22571== Process terminating with default action of signal 11 (SIGSEGV)
==22571== Access not within mapped region at address 0x0
==22571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22571== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22571== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22571== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22571== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22571== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22571== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22571== by 0x8062D5B: main (nginx.c:385)
==22571== If you believe this happened as a result of a stack
==22571== overflow in your program's main thread (unlikely but
==22571== possible), you can try to increase the size of the
==22571== main thread stack using the --main-stacksize= flag.
==22571== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 5: merge one single-page block forward, but no more ==22602== Invalid read of size 4
==22602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22602== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22602== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22602== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22602== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22602== by 0x8062D5B: main (nginx.c:385)
==22602== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22602==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 5: merge one single-page block forward, but no more ==22602==
==22602== Process terminating with default action of signal 11 (SIGSEGV)
==22602== Access not within mapped region at address 0x0
==22602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22602== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22602== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22602== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22602== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22602== by 0x8062D5B: main (nginx.c:385)
==22602== If you believe this happened as a result of a stack
==22602== overflow in your program's main thread (unlikely but
==22602== possible), you can try to increase the size of the
==22602== main thread stack using the --main-stacksize= flag.
==22602== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 5: merge one single-page block forward, but no more - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) ==22633== Invalid read of size 4
==22633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22633== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22633== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22633== by 0x8062D5B: main (nginx.c:385)
==22633== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22633==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) ==22633==
==22633== Process terminating with default action of signal 11 (SIGSEGV)
==22633== Access not within mapped region at address 0x0
==22633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22633== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22633== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22633== by 0x8062D5B: main (nginx.c:385)
==22633== If you believe this happened as a result of a stack
==22633== overflow in your program's main thread (unlikely but
==22633== possible), you can try to increase the size of the
==22633== main thread stack using the --main-stacksize= flag.
==22633== The main thread stack size used in this run was 8388608.
==22633== 2,048 bytes in 1 blocks are definitely lost in loss record 2,836 of 2,895
==22633== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22633== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22633== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22633== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22633== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22633== by 0x408A511: ir_nextk (lj_ir.c:175)
==22633== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==22633== by 0x40A4B7A: crec_ct_tv (lj_crecord.c:682)
==22633== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==22633== by 0x40A711A: crec_call (lj_crecord.c:1231)
==22633== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==22633== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==22633== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==22633== by 0x40BB16A: trace_state (lj_trace.c:680)
==22633== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22633== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22633== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==22633== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22633== by 0x407FA29: lua_resume (lj_api.c:1296)
==22633== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22633== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22633== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22633== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22633== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22633== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22633== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22633== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22633== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22633== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22633== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22633== by 0x8062D5B: main (nginx.c:385)
==22633==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kint
fun:crec_ct_tv
fun:crec_call_args
fun:crec_call
fun:recff_cdata_call
fun:lj_ffrecord_func
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_call
fun:lj_vm_hotcall
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) ==22664== Invalid read of size 4
==22664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22664== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22664== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22664== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22664== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22664== by 0x8062D5B: main (nginx.c:385)
==22664== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22664==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) ==22664==
==22664== Process terminating with default action of signal 11 (SIGSEGV)
==22664== Access not within mapped region at address 0x0
==22664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22664== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22664== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22664== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22664== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22664== by 0x8062D5B: main (nginx.c:385)
==22664== If you believe this happened as a result of a stack
==22664== overflow in your program's main thread (unlikely but
==22664== possible), you can try to increase the size of the
==22664== main thread stack using the --main-stacksize= flag.
==22664== The main thread stack size used in this run was 8388608.

126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 3: kill pending resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22693== Invalid read of size 4
==22693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22693== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22693== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22693== by 0x8062D5B: main (nginx.c:385)
==22693== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22693==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 3: kill pending resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22693==
==22693== Process terminating with default action of signal 11 (SIGSEGV)
==22693== Access not within mapped region at address 0x0
==22693== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22693== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22693== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22693== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22693== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22693== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22693== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22693== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22693== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22693== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22693== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22693== by 0x8062D5B: main (nginx.c:385)
==22693== If you believe this happened as a result of a stack
==22693== overflow in your program's main thread (unlikely but
==22693== possible), you can try to increase the size of the
==22693== main thread stack using the --main-stacksize= flag.
==22693== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 3: kill pending resolver - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 3: kill pending resolver - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 3: kill pending resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22694== Invalid read of size 4
==22694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22694== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22694== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22694== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22694== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22694== by 0x8062D5B: main (nginx.c:385)
==22694== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22694==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 3: kill pending resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22694==
==22694== Process terminating with default action of signal 11 (SIGSEGV)
==22694== Access not within mapped region at address 0x0
==22694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22694== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22694== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22694== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22694== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22694== by 0x8062D5B: main (nginx.c:385)
==22694== If you believe this happened as a result of a stack
==22694== overflow in your program's main thread (unlikely but
==22694== possible), you can try to increase the size of the
==22694== main thread stack using the --main-stacksize= flag.
==22694== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 3: kill pending resolver - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 3: kill pending resolver - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 2: already waited ==22706== Invalid read of size 4
==22706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22706== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22706== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22706== by 0x8062D5B: main (nginx.c:385)
==22706== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22706==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 2: already waited ==22706==
==22706== Process terminating with default action of signal 11 (SIGSEGV)
==22706== Access not within mapped region at address 0x0
==22706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22706== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22706== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22706== by 0x8062D5B: main (nginx.c:385)
==22706== If you believe this happened as a result of a stack
==22706== overflow in your program's main thread (unlikely but
==22706== possible), you can try to increase the size of the
==22706== main thread stack using the --main-stacksize= flag.
==22706== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 2: already waited - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 2: already waited - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-waited: 32
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 2: already waited ==22727== Invalid read of size 4
==22727== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22727== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22727== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22727== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22727== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22727== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22727== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22727== by 0x8062D5B: main (nginx.c:385)
==22727== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22727==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 2: already waited ==22727==
==22727== Process terminating with default action of signal 11 (SIGSEGV)
==22727== Access not within mapped region at address 0x0
==22727== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22727== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22727== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22727== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22727== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22727== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22727== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22727== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22727== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22727== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22727== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22727== by 0x8062D5B: main (nginx.c:385)
==22727== If you believe this happened as a result of a stack
==22727== overflow in your program's main thread (unlikely but
==22727== possible), you can try to increase the size of the
==22727== main thread stack using the --main-stacksize= flag.
==22727== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 2: already waited - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 2: already waited - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-waited: 32
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 5: kill a thread already terminated ==22739== Invalid read of size 4
==22739== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22739== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22739== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22739== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22739== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22739== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22739== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22739== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22739== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22739== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22739== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22739== by 0x8062D5B: main (nginx.c:385)
==22739== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22739==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 5: kill a thread already terminated ==22739==
==22739== Process terminating with default action of signal 11 (SIGSEGV)
==22739== Access not within mapped region at address 0x0
==22739== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22739== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22739== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22739== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22739== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22739== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22739== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22739== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22739== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22739== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22739== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22739== by 0x8062D5B: main (nginx.c:385)
==22739== If you believe this happened as a result of a stack
==22739== overflow in your program's main thread (unlikely but
==22739== possible), you can try to increase the size of the
==22739== main thread stack using the --main-stacksize= flag.
==22739== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 5: kill a thread already terminated - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 5: kill a thread already terminated - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-thread created: zombie
-failed to kill thread: already terminated
'
127-uthread-kill.t TEST 5: kill a thread already terminated - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:06:52 [alert] 22692\#0: worker process 22739 exited on signal 11" (req 0) 2020/10/27 05:06:52 [debug] 22692\#0: shmtx forced unlock
2020/10/27 05:06:52 [debug] 22692\#0: wake up, sigio 0
2020/10/27 05:06:52 [debug] 22692\#0: reap children
2020/10/27 05:06:52 [debug] 22692\#0: child: 0 22739 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:06:52 [debug] 22692\#0: channel 3:4
2020/10/27 05:06:52 [notice] 22692\#0: start worker process 22760
'
127-uthread-kill.t TEST 5: kill a thread already terminated ==22760== Invalid read of size 4
==22760== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22760== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22760== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22760== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22760== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22760== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22760== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22760== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22760== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22760== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22760== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22760== by 0x8062D5B: main (nginx.c:385)
==22760== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22760==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 5: kill a thread already terminated ==22760==
==22760== Process terminating with default action of signal 11 (SIGSEGV)
==22760== Access not within mapped region at address 0x0
==22760== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22760== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22760== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22760== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22760== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22760== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22760== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22760== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22760== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22760== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22760== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22760== by 0x8062D5B: main (nginx.c:385)
==22760== If you believe this happened as a result of a stack
==22760== overflow in your program's main thread (unlikely but
==22760== possible), you can try to increase the size of the
==22760== main thread stack using the --main-stacksize= flag.
==22760== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 5: kill a thread already terminated - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 5: kill a thread already terminated - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-thread created: zombie
-failed to kill thread: already terminated
'
127-uthread-kill.t TEST 5: kill a thread already terminated - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:06:52 [alert] 22692\#0: worker process 22760 exited on signal 11" (req 1) 2020/10/27 05:06:52 [debug] 22692\#0: shmtx forced unlock
2020/10/27 05:06:52 [debug] 22692\#0: wake up, sigio 0
2020/10/27 05:06:52 [debug] 22692\#0: reap children
2020/10/27 05:06:52 [debug] 22692\#0: child: 0 22760 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:06:52 [debug] 22692\#0: channel 3:4
2020/10/27 05:06:52 [notice] 22692\#0: start worker process 22761
'
127-uthread-kill.t TEST 6: kill self ==22772== Invalid read of size 4
==22772== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22772== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22772== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22772== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22772== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22772== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22772== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22772== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22772== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22772== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22772== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22772== by 0x8062D5B: main (nginx.c:385)
==22772== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22772==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 6: kill self ==22772==
==22772== Process terminating with default action of signal 11 (SIGSEGV)
==22772== Access not within mapped region at address 0x0
==22772== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22772== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22772== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22772== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22772== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22772== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22772== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22772== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22772== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22772== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22772== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22772== by 0x8062D5B: main (nginx.c:385)
==22772== If you believe this happened as a result of a stack
==22772== overflow in your program's main thread (unlikely but
==22772== possible), you can try to increase the size of the
==22772== main thread stack using the --main-stacksize= flag.
==22772== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 6: kill self - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 6: kill self - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to kill main thread: not user thread
-failed to kill user thread: killer not parent
-thread created: zombie
'
127-uthread-kill.t TEST 6: kill self - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:06:56 [alert] 22692\#0: worker process 22772 exited on signal 11" (req 0) 2020/10/27 05:06:56 [debug] 22692\#0: shmtx forced unlock
2020/10/27 05:06:56 [debug] 22692\#0: wake up, sigio 0
2020/10/27 05:06:56 [debug] 22692\#0: reap children
2020/10/27 05:06:56 [debug] 22692\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:06:56 [debug] 22692\#0: child: 1 22772 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:06:56 [debug] 22692\#0: channel 3:4
2020/10/27 05:06:56 [notice] 22692\#0: start worker process 22793
'
127-uthread-kill.t TEST 6: kill self ==22793== Invalid read of size 4
==22793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22793== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22793== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22793== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22793== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22793== by 0x8062D5B: main (nginx.c:385)
==22793== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22793==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 6: kill self ==22793==
==22793== Process terminating with default action of signal 11 (SIGSEGV)
==22793== Access not within mapped region at address 0x0
==22793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22793== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22793== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22793== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22793== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22793== by 0x8062D5B: main (nginx.c:385)
==22793== If you believe this happened as a result of a stack
==22793== overflow in your program's main thread (unlikely but
==22793== possible), you can try to increase the size of the
==22793== main thread stack using the --main-stacksize= flag.
==22793== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 6: kill self - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 6: kill self - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-failed to kill main thread: not user thread
-failed to kill user thread: killer not parent
-thread created: zombie
'
127-uthread-kill.t TEST 6: kill self - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:06:56 [alert] 22692\#0: worker process 22793 exited on signal 11" (req 1) 2020/10/27 05:06:56 [debug] 22692\#0: shmtx forced unlock
2020/10/27 05:06:56 [debug] 22692\#0: wake up, sigio 0
2020/10/27 05:06:56 [debug] 22692\#0: reap children
2020/10/27 05:06:56 [debug] 22692\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:06:56 [debug] 22692\#0: child: 1 22793 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:06:56 [debug] 22692\#0: channel 3:4
2020/10/27 05:06:56 [notice] 22692\#0: start worker process 22794
'
127-uthread-kill.t TEST 4: kill pending connect ==22805== Invalid read of size 4
==22805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22805== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22805== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22805== by 0x8062D5B: main (nginx.c:385)
==22805== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22805==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 4: kill pending connect ==22805==
==22805== Process terminating with default action of signal 11 (SIGSEGV)
==22805== Access not within mapped region at address 0x0
==22805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22805== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22805== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22805== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22805== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22805== by 0x8062D5B: main (nginx.c:385)
==22805== If you believe this happened as a result of a stack
==22805== overflow in your program's main thread (unlikely but
==22805== possible), you can try to increase the size of the
==22805== main thread stack using the --main-stacksize= flag.
==22805== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 4: kill pending connect - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 4: kill pending connect - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 4: kill pending connect - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-stream lua finalize socket
-stream lua finalize socket
'
127-uthread-kill.t TEST 4: kill pending connect ==22826== Invalid read of size 4
==22826== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22826== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22826== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22826== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22826== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22826== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22826== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22826== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22826== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22826== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22826== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22826== by 0x8062D5B: main (nginx.c:385)
==22826== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22826==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 4: kill pending connect ==22826==
==22826== Process terminating with default action of signal 11 (SIGSEGV)
==22826== Access not within mapped region at address 0x0
==22826== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22826== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22826== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22826== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22826== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22826== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22826== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22826== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22826== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22826== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22826== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22826== by 0x8062D5B: main (nginx.c:385)
==22826== If you believe this happened as a result of a stack
==22826== overflow in your program's main thread (unlikely but
==22826== possible), you can try to increase the size of the
==22826== main thread stack using the --main-stacksize= flag.
==22826== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 4: kill pending connect - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 4: kill pending connect - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 4: kill pending connect - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-stream lua finalize socket
-stream lua finalize socket
'
127-uthread-kill.t TEST 1: kill pending sleep ==22838== Invalid read of size 4
==22838== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22838== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22838== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22838== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22838== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22838== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22838== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22838== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22838== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22838== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22838== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22838== by 0x8062D5B: main (nginx.c:385)
==22838== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22838==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 1: kill pending sleep ==22838==
==22838== Process terminating with default action of signal 11 (SIGSEGV)
==22838== Access not within mapped region at address 0x0
==22838== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22838== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22838== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22838== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22838== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22838== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22838== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22838== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22838== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22838== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22838== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22838== by 0x8062D5B: main (nginx.c:385)
==22838== If you believe this happened as a result of a stack
==22838== overflow in your program's main thread (unlikely but
==22838== possible), you can try to increase the size of the
==22838== main thread stack using the --main-stacksize= flag.
==22838== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 1: kill pending sleep - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 1: kill pending sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-killed
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 1: kill pending sleep ==22859== Invalid read of size 4
==22859== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22859== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22859== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22859== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22859== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22859== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22859== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22859== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22859== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22859== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22859== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22859== by 0x8062D5B: main (nginx.c:385)
==22859== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22859==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
127-uthread-kill.t TEST 1: kill pending sleep ==22859==
==22859== Process terminating with default action of signal 11 (SIGSEGV)
==22859== Access not within mapped region at address 0x0
==22859== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22859== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22859== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22859== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22859== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22859== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22859== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22859== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22859== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22859== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22859== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22859== by 0x8062D5B: main (nginx.c:385)
==22859== If you believe this happened as a result of a stack
==22859== overflow in your program's main thread (unlikely but
==22859== possible), you can try to increase the size of the
==22859== main thread stack using the --main-stacksize= flag.
==22859== The main thread stack size used in this run was 8388608.

127-uthread-kill.t TEST 1: kill pending sleep - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 1: kill pending sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-killed
-failed to kill thread: already waited or killed
'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - Can't connect to 127.0.0.1:1984: Connection refused ==22868== Invalid read of size 4
==22868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22868== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22868== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22868== by 0x8062D5B: main (nginx.c:385)
==22868== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22868==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - Can't connect to 127.0.0.1:1984: Connection refused ==22868==
==22868== Process terminating with default action of signal 11 (SIGSEGV)
==22868== Access not within mapped region at address 0x0
==22868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22868== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22868== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22868== by 0x8062D5B: main (nginx.c:385)
==22868== If you believe this happened as a result of a stack
==22868== overflow in your program's main thread (unlikely but
==22868== possible), you can try to increase the size of the
==22868== main thread stack using the --main-stacksize= flag.
==22868== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-receive: nil socket busy connecting
-send: nil socket busy connecting
-close: nil socket busy connecting
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy connecting
-connect: nil socket busy connecting
-connect: nil timeout
-close: nil closed
'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - Can't connect to 127.0.0.1:1984: Connection refused ==22869== Invalid read of size 4
==22869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22869== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22869== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22869== by 0x8062D5B: main (nginx.c:385)
==22869== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22869==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - Can't connect to 127.0.0.1:1984: Connection refused ==22869==
==22869== Process terminating with default action of signal 11 (SIGSEGV)
==22869== Access not within mapped region at address 0x0
==22869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22869== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22869== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22869== by 0x8062D5B: main (nginx.c:385)
==22869== If you believe this happened as a result of a stack
==22869== overflow in your program's main thread (unlikely but
==22869== possible), you can try to increase the size of the
==22869== main thread stack using the --main-stacksize= flag.
==22869== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-receive: nil socket busy connecting
-send: nil socket busy connecting
-close: nil socket busy connecting
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy connecting
-connect: nil socket busy connecting
-connect: nil timeout
-close: nil closed
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving ==22881== Invalid read of size 4
==22881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22881== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22881== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22881== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22881== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22881== by 0x8062D5B: main (nginx.c:385)
==22881== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22881==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving ==22881==
==22881== Process terminating with default action of signal 11 (SIGSEGV)
==22881== Access not within mapped region at address 0x0
==22881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22881== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22881== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22881== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22881== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22881== by 0x8062D5B: main (nginx.c:385)
==22881== If you believe this happened as a result of a stack
==22881== overflow in your program's main thread (unlikely but
==22881== possible), you can try to increase the size of the
==22881== main thread stack using the --main-stacksize= flag.
==22881== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-receive: nil closed
-send: nil closed
-close: nil closed
-getreusedtimes: nil closed
-setkeepalive: nil closed
-connect: nil socket busy connecting
-connect: nil some2.agentzh.org could not be resolved (110: Operation timed out)
-close: nil closed
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving ==22902== Invalid read of size 4
==22902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22902== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22902== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22902== by 0x8062D5B: main (nginx.c:385)
==22902== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22902==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving ==22902==
==22902== Process terminating with default action of signal 11 (SIGSEGV)
==22902== Access not within mapped region at address 0x0
==22902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22902== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22902== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22902== by 0x8062D5B: main (nginx.c:385)
==22902== If you believe this happened as a result of a stack
==22902== overflow in your program's main thread (unlikely but
==22902== possible), you can try to increase the size of the
==22902== main thread stack using the --main-stacksize= flag.
==22902== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-receive: nil closed
-send: nil closed
-close: nil closed
-getreusedtimes: nil closed
-setkeepalive: nil closed
-connect: nil socket busy connecting
-connect: nil some2.agentzh.org could not be resolved (110: Operation timed out)
-close: nil closed
'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) ==22914== Invalid read of size 4
==22914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22914== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22914== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22914== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22914== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22914== by 0x8062D5B: main (nginx.c:385)
==22914== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22914==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) ==22914==
==22914== Process terminating with default action of signal 11 (SIGSEGV)
==22914== Access not within mapped region at address 0x0
==22914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22914== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22914== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22914== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22914== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22914== by 0x8062D5B: main (nginx.c:385)
==22914== If you believe this happened as a result of a stack
==22914== overflow in your program's main thread (unlikely but
==22914== possible), you can try to increase the size of the
==22914== main thread stack using the --main-stacksize= flag.
==22914== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receive: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) ==22935== Invalid read of size 4
==22935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22935== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22935== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22935== by 0x8062D5B: main (nginx.c:385)
==22935== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22935==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) ==22935==
==22935== Process terminating with default action of signal 11 (SIGSEGV)
==22935== Access not within mapped region at address 0x0
==22935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22935== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22935== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22935== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22935== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22935== by 0x8062D5B: main (nginx.c:385)
==22935== If you believe this happened as a result of a stack
==22935== overflow in your program's main thread (unlikely but
==22935== possible), you can try to increase the size of the
==22935== main thread stack using the --main-stacksize= flag.
==22935== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receive: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing ==22947== Invalid read of size 4
==22947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22947== by 0x8062D5B: main (nginx.c:385)
==22947== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22947==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing ==22947==
==22947== Process terminating with default action of signal 11 (SIGSEGV)
==22947== Access not within mapped region at address 0x0
==22947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22947== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22947== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22947== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22947== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22947== by 0x8062D5B: main (nginx.c:385)
==22947== If you believe this happened as a result of a stack
==22947== overflow in your program's main thread (unlikely but
==22947== possible), you can try to increase the size of the
==22947== main thread stack using the --main-stacksize= flag.
==22947== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
(?:received: OK|failed to send request: timeout
partial read: )
read timed out: [1-9]\d*
close: 1 nil$)'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing ==22968== Invalid read of size 4
==22968== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22968== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22968== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22968== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22968== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22968== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22968== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22968== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22968== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22968== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22968== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22968== by 0x8062D5B: main (nginx.c:385)
==22968== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22968==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing ==22968==
==22968== Process terminating with default action of signal 11 (SIGSEGV)
==22968== Access not within mapped region at address 0x0
==22968== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22968== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22968== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22968== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22968== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22968== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22968== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22968== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22968== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22968== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22968== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22968== by 0x8062D5B: main (nginx.c:385)
==22968== If you believe this happened as a result of a stack
==22968== overflow in your program's main thread (unlikely but
==22968== possible), you can try to increase the size of the
==22968== main thread stack using the --main-stacksize= flag.
==22968== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
(?:received: OK|failed to send request: timeout
partial read: )
read timed out: [1-9]\d*
close: 1 nil$)'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) ==22980== Invalid read of size 4
==22980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22980== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22980== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22980== by 0x8062D5B: main (nginx.c:385)
==22980== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22980==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) ==22980==
==22980== Process terminating with default action of signal 11 (SIGSEGV)
==22980== Access not within mapped region at address 0x0
==22980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22980== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22980== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22980== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22980== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22980== by 0x8062D5B: main (nginx.c:385)
==22980== If you believe this happened as a result of a stack
==22980== overflow in your program's main thread (unlikely but
==22980== possible), you can try to increase the size of the
==22980== main thread stack using the --main-stacksize= flag.
==22980== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receiveuntil() iterator: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) ==23001== Invalid read of size 4
==23001== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23001== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23001== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23001== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23001== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23001== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23001== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23001== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23001== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23001== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23001== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23001== by 0x8062D5B: main (nginx.c:385)
==23001== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23001==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) ==23001==
==23001== Process terminating with default action of signal 11 (SIGSEGV)
==23001== Access not within mapped region at address 0x0
==23001== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23001== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23001== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23001== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23001== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23001== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23001== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23001== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23001== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23001== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23001== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23001== by 0x8062D5B: main (nginx.c:385)
==23001== If you believe this happened as a result of a stack
==23001== overflow in your program's main thread (unlikely but
==23001== possible), you can try to increase the size of the
==23001== main thread stack using the --main-stacksize= flag.
==23001== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receiveuntil() iterator: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not ==23013== Invalid read of size 4
==23013== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23013== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23013== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23013== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23013== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23013== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23013== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23013== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23013== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23013== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23013== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23013== by 0x8062D5B: main (nginx.c:385)
==23013== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23013==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not ==23013==
==23013== Process terminating with default action of signal 11 (SIGSEGV)
==23013== Access not within mapped region at address 0x0
==23013== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23013== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23013== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23013== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23013== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23013== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23013== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23013== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23013== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23013== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23013== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23013== by 0x8062D5B: main (nginx.c:385)
==23013== If you believe this happened as a result of a stack
==23013== overflow in your program's main thread (unlikely but
==23013== possible), you can try to increase the size of the
==23013== main thread stack using the --main-stacksize= flag.
==23013== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
received: OK!
close: (?:nil socket busy writing|1 nil
failed to send request: closed)$)'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not ==23035== Invalid read of size 4
==23035== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23035== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23035== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23035== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23035== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23035== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23035== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23035== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23035== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23035== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23035== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23035== by 0x8062D5B: main (nginx.c:385)
==23035== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23035==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not ==23035==
==23035== Process terminating with default action of signal 11 (SIGSEGV)
==23035== Access not within mapped region at address 0x0
==23035== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23035== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23035== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23035== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23035== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23035== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23035== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23035== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23035== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23035== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23035== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23035== by 0x8062D5B: main (nginx.c:385)
==23035== If you believe this happened as a result of a stack
==23035== overflow in your program's main thread (unlikely but
==23035== possible), you can try to increase the size of the
==23035== main thread stack using the --main-stacksize= flag.
==23035== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
received: OK!
close: (?:nil socket busy writing|1 nil
failed to send request: closed)$)'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) ==23048== Invalid read of size 4
==23048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23048== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23048== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23048== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23048== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23048== by 0x8062D5B: main (nginx.c:385)
==23048== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23048==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) ==23048==
==23048== Process terminating with default action of signal 11 (SIGSEGV)
==23048== Access not within mapped region at address 0x0
==23048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23048== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23048== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23048== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23048== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23048== by 0x8062D5B: main (nginx.c:385)
==23048== If you believe this happened as a result of a stack
==23048== overflow in your program's main thread (unlikely but
==23048== possible), you can try to increase the size of the
==23048== main thread stack using the --main-stacksize= flag.
==23048== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-received: OK
-received: END
-received: END
-setkeepalive: 1 nil
'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) ==23069== Invalid read of size 4
==23069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23069== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23069== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23069== by 0x8062D5B: main (nginx.c:385)
==23069== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23069==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) ==23069==
==23069== Process terminating with default action of signal 11 (SIGSEGV)
==23069== Access not within mapped region at address 0x0
==23069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23069== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23069== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23069== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23069== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23069== by 0x8062D5B: main (nginx.c:385)
==23069== If you believe this happened as a result of a stack
==23069== overflow in your program's main thread (unlikely but
==23069== possible), you can try to increase the size of the
==23069== main thread stack using the --main-stacksize= flag.
==23069== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-received: OK
-received: END
-received: END
-setkeepalive: 1 nil
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not ==23081== Invalid read of size 4
==23081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23081== by 0x8062D5B: main (nginx.c:385)
==23081== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23081==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not ==23081==
==23081== Process terminating with default action of signal 11 (SIGSEGV)
==23081== Access not within mapped region at address 0x0
==23081== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23081== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23081== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23081== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23081== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23081== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23081== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23081== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23081== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23081== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23081== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23081== by 0x8062D5B: main (nginx.c:385)
==23081== If you believe this happened as a result of a stack
==23081== overflow in your program's main thread (unlikely but
==23081== possible), you can try to increase the size of the
==23081== main thread stack using the --main-stacksize= flag.
==23081== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-failed to receive: closed
-request sent.
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - tcp_query ok got: ''
expected: 'flush_all
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - TCP query length ok got: '0'
expected: '11'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not ==23103== Invalid read of size 4
==23103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23103== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23103== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23103== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23103== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23103== by 0x8062D5B: main (nginx.c:385)
==23103== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23103==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not ==23103==
==23103== Process terminating with default action of signal 11 (SIGSEGV)
==23103== Access not within mapped region at address 0x0
==23103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23103== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23103== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23103== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23103== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23103== by 0x8062D5B: main (nginx.c:385)
==23103== If you believe this happened as a result of a stack
==23103== overflow in your program's main thread (unlikely but
==23103== possible), you can try to increase the size of the
==23103== main thread stack using the --main-stacksize= flag.
==23103== The main thread stack size used in this run was 8388608.

128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-failed to receive: closed
-request sent.
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - tcp_query ok got: ''
expected: 'flush_all
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - TCP query length ok got: '0'
expected: '11'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - Can't connect to 127.0.0.1:1984: Connection refused ==23113== Invalid read of size 4
==23113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23113== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23113== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23113== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23113== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23113== by 0x8062D5B: main (nginx.c:385)
==23113== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23113==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - Can't connect to 127.0.0.1:1984: Connection refused ==23113==
==23113== Process terminating with default action of signal 11 (SIGSEGV)
==23113== Access not within mapped region at address 0x0
==23113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23113== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23113== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23113== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23113== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23113== by 0x8062D5B: main (nginx.c:385)
==23113== If you believe this happened as a result of a stack
==23113== overflow in your program's main thread (unlikely but
==23113== possible), you can try to increase the size of the
==23113== main thread stack using the --main-stacksize= flag.
==23113== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:05 [alert] 23112\#0: worker process 23113 exited on signal 11" (req 0) 2020/10/27 05:08:05 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:05 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:05 [debug] 23112\#0: reap children
2020/10/27 05:08:05 [debug] 23112\#0: child: 0 23113 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:05 [debug] 23112\#0: channel 3:10
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - Can't connect to 127.0.0.1:1984: Connection refused ==23114== Invalid read of size 4
==23114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23114== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23114== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23114== by 0x8062D5B: main (nginx.c:385)
==23114== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23114==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - Can't connect to 127.0.0.1:1984: Connection refused ==23114==
==23114== Process terminating with default action of signal 11 (SIGSEGV)
==23114== Access not within mapped region at address 0x0
==23114== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23114== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23114== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23114== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23114== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23114== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23114== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23114== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23114== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23114== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23114== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23114== by 0x8062D5B: main (nginx.c:385)
==23114== If you believe this happened as a result of a stack
==23114== overflow in your program's main thread (unlikely but
==23114== possible), you can try to increase the size of the
==23114== main thread stack using the --main-stacksize= flag.
==23114== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:06 [alert] 23112\#0: worker process 23114 exited on signal 11" (req 1) 2020/10/27 05:08:06 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:06 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:06 [debug] 23112\#0: reap children
2020/10/27 05:08:06 [debug] 23112\#0: child: 0 23114 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:06 [debug] 23112\#0: channel 3:10
2020/10/27 05:08:06 [notice] 23112\#0: start worker process 23115
'
129-ssl-socket.t TEST 17: unsupported ssl protocol ==23126== Invalid read of size 4
==23126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23126== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23126== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23126== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23126== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23126== by 0x8062D5B: main (nginx.c:385)
==23126== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23126==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 17: unsupported ssl protocol ==23126==
==23126== Process terminating with default action of signal 11 (SIGSEGV)
==23126== Access not within mapped region at address 0x0
==23126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23126== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23126== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23126== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23126== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23126== by 0x8062D5B: main (nginx.c:385)
==23126== If you believe this happened as a result of a stack
==23126== overflow in your program's main thread (unlikely but
==23126== possible), you can try to increase the size of the
==23126== main thread stack using the --main-stacksize= flag.
==23126== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 17: unsupported ssl protocol - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 17: unsupported ssl protocol - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
-failed to send stream request: closed
'
129-ssl-socket.t TEST 17: unsupported ssl protocol - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:10 [alert] 23112\#0: worker process 23126 exited on signal 11" (req 0) 2020/10/27 05:08:10 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:10 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:10 [debug] 23112\#0: reap children
2020/10/27 05:08:10 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:10 [debug] 23112\#0: child: 1 23126 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:10 [debug] 23112\#0: channel 3:4
2020/10/27 05:08:10 [notice] 23112\#0: start worker process 23147
'
129-ssl-socket.t TEST 17: unsupported ssl protocol ==23147== Invalid read of size 4
==23147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23147== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23147== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23147== by 0x8062D5B: main (nginx.c:385)
==23147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 17: unsupported ssl protocol ==23147==
==23147== Process terminating with default action of signal 11 (SIGSEGV)
==23147== Access not within mapped region at address 0x0
==23147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23147== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23147== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23147== by 0x8062D5B: main (nginx.c:385)
==23147== If you believe this happened as a result of a stack
==23147== overflow in your program's main thread (unlikely but
==23147== possible), you can try to increase the size of the
==23147== main thread stack using the --main-stacksize= flag.
==23147== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 17: unsupported ssl protocol - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 17: unsupported ssl protocol - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
-failed to send stream request: closed
'
129-ssl-socket.t TEST 17: unsupported ssl protocol - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:10 [alert] 23112\#0: worker process 23147 exited on signal 11" (req 1) 2020/10/27 05:08:10 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:10 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:10 [debug] 23112\#0: reap children
2020/10/27 05:08:10 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:10 [debug] 23112\#0: child: 1 23147 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:10 [debug] 23112\#0: channel 3:4
2020/10/27 05:08:10 [notice] 23112\#0: start worker process 23148
'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) ==23159== Invalid read of size 4
==23159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23159== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23159== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23159== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23159== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23159== by 0x8062D5B: main (nginx.c:385)
==23159== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23159==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) ==23159==
==23159== Process terminating with default action of signal 11 (SIGSEGV)
==23159== Access not within mapped region at address 0x0
==23159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23159== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23159== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23159== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23159== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23159== by 0x8062D5B: main (nginx.c:385)
==23159== If you believe this happened as a result of a stack
==23159== overflow in your program's main thread (unlikely but
==23159== possible), you can try to increase the size of the
==23159== main thread stack using the --main-stacksize= flag.
==23159== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:14 [alert] 23112\#0: worker process 23159 exited on signal 11" (req 0) 2020/10/27 05:08:14 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:14 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:14 [debug] 23112\#0: reap children
2020/10/27 05:08:14 [debug] 23112\#0: child: 0 23159 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:14 [debug] 23112\#0: channel 3:4
2020/10/27 05:08:14 [notice] 23112\#0: start worker process 23180
'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) ==23180== Invalid read of size 4
==23180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23180== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23180== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23180== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23180== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23180== by 0x8062D5B: main (nginx.c:385)
==23180== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23180==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) ==23180==
==23180== Process terminating with default action of signal 11 (SIGSEGV)
==23180== Access not within mapped region at address 0x0
==23180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23180== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23180== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23180== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23180== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23180== by 0x8062D5B: main (nginx.c:385)
==23180== If you believe this happened as a result of a stack
==23180== overflow in your program's main thread (unlikely but
==23180== possible), you can try to increase the size of the
==23180== main thread stack using the --main-stacksize= flag.
==23180== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:14 [alert] 23112\#0: worker process 23180 exited on signal 11" (req 1) 2020/10/27 05:08:14 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:14 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:14 [debug] 23112\#0: reap children
2020/10/27 05:08:14 [debug] 23112\#0: child: 0 23180 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 24: lua_ssl_crl ==23192== Invalid read of size 4
==23192== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23192== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23192== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23192== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23192== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23192== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23192== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23192== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23192== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23192== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23192== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23192== by 0x8062D5B: main (nginx.c:385)
==23192== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23192==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 24: lua_ssl_crl ==23192==
==23192== Process terminating with default action of signal 11 (SIGSEGV)
==23192== Access not within mapped region at address 0x0
==23192== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23192== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23192== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23192== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23192== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23192== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23192== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23192== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23192== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23192== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23192== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23192== by 0x8062D5B: main (nginx.c:385)
==23192== If you believe this happened as a result of a stack
==23192== overflow in your program's main thread (unlikely but
==23192== possible), you can try to increase the size of the
==23192== main thread stack using the --main-stacksize= flag.
==23192== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 24: lua_ssl_crl - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 24: lua_ssl_crl - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: 23: certificate revoked
-failed to send stream request: closed
'
129-ssl-socket.t TEST 24: lua_ssl_crl - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:18 [alert] 23112\#0: worker process 23192 exited on signal 11" (req 0) 2020/10/27 05:08:18 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:18 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:18 [debug] 23112\#0: reap children
2020/10/27 05:08:18 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:18 [debug] 23112\#0: child: 1 23192 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:18 [debug] 23112\#0: channel 3:4
2020/10/27 05:08:18 [notice] 23112\#0: start worker process 23213
'
129-ssl-socket.t TEST 24: lua_ssl_crl ==23213== Invalid read of size 4
==23213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23213== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23213== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23213== by 0x8062D5B: main (nginx.c:385)
==23213== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23213==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 24: lua_ssl_crl ==23213==
==23213== Process terminating with default action of signal 11 (SIGSEGV)
==23213== Access not within mapped region at address 0x0
==23213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23213== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23213== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23213== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23213== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23213== by 0x8062D5B: main (nginx.c:385)
==23213== If you believe this happened as a result of a stack
==23213== overflow in your program's main thread (unlikely but
==23213== possible), you can try to increase the size of the
==23213== main thread stack using the --main-stacksize= flag.
==23213== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 24: lua_ssl_crl - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 24: lua_ssl_crl - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: 23: certificate revoked
-failed to send stream request: closed
'
129-ssl-socket.t TEST 24: lua_ssl_crl - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:20 [alert] 23112\#0: worker process 23213 exited on signal 11" (req 1) 2020/10/27 05:08:20 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:20 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:20 [debug] 23112\#0: reap children
2020/10/27 05:08:20 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:20 [debug] 23112\#0: child: 1 23213 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:20 [debug] 23112\#0: channel 3:4
2020/10/27 05:08:20 [notice] 23112\#0: start worker process 23214
'
129-ssl-socket.t TEST 26: handshake timed out ==23226== Invalid read of size 4
==23226== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23226== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23226== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23226== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23226== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23226== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23226== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23226== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23226== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23226== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23226== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23226== by 0x8062D5B: main (nginx.c:385)
==23226== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23226==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 26: handshake timed out ==23226==
==23226== Process terminating with default action of signal 11 (SIGSEGV)
==23226== Access not within mapped region at address 0x0
==23226== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23226== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23226== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23226== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23226== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23226== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23226== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23226== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23226== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23226== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23226== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23226== by 0x8062D5B: main (nginx.c:385)
==23226== If you believe this happened as a result of a stack
==23226== overflow in your program's main thread (unlikely but
==23226== possible), you can try to increase the size of the
==23226== main thread stack using the --main-stacksize= flag.
==23226== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 26: handshake timed out - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 26: handshake timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
129-ssl-socket.t TEST 26: handshake timed out - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:23 [alert] 23112\#0: worker process 23226 exited on signal 11" (req 0) 2020/10/27 05:08:23 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:23 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:23 [debug] 23112\#0: reap children
2020/10/27 05:08:23 [debug] 23112\#0: child: 0 23226 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:08:23 [debug] 23112\#0: channel 3:4
2020/10/27 05:08:23 [notice] 23112\#0: start worker process 23247
'
129-ssl-socket.t TEST 26: handshake timed out ==23247== Invalid read of size 4
==23247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23247== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23247== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23247== by 0x8062D5B: main (nginx.c:385)
==23247== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23247==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 26: handshake timed out ==23247==
==23247== Process terminating with default action of signal 11 (SIGSEGV)
==23247== Access not within mapped region at address 0x0
==23247== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23247== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23247== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23247== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23247== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23247== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23247== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23247== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23247== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23247== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23247== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23247== by 0x8062D5B: main (nginx.c:385)
==23247== If you believe this happened as a result of a stack
==23247== overflow in your program's main thread (unlikely but
==23247== possible), you can try to increase the size of the
==23247== main thread stack using the --main-stacksize= flag.
==23247== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 26: handshake timed out - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 26: handshake timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
129-ssl-socket.t TEST 26: handshake timed out - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:24 [alert] 23112\#0: worker process 23247 exited on signal 11" (req 1) 2020/10/27 05:08:24 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:24 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:24 [debug] 23112\#0: reap children
2020/10/27 05:08:24 [debug] 23112\#0: child: 0 23247 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) ==23259== Invalid read of size 4
==23259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23259== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23259== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23259== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23259== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23259== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23259== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23259== by 0x8062D5B: main (nginx.c:385)
==23259== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23259==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 5: certificate does not match host name (verify) ==23259==
==23259== Process terminating with default action of signal 11 (SIGSEGV)
==23259== Access not within mapped region at address 0x0
==23259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23259== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23259== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23259== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23259== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23259== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23259== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23259== by 0x8062D5B: main (nginx.c:385)
==23259== If you believe this happened as a result of a stack
==23259== overflow in your program's main thread (unlikely but
==23259== possible), you can try to increase the size of the
==23259== main thread stack using the --main-stacksize= flag.
==23259== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 5: certificate does not match host name (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:27 [alert] 23112\#0: worker process 23259 exited on signal 11" (req 0) 2020/10/27 05:08:27 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:27 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:27 [debug] 23112\#0: reap children
2020/10/27 05:08:27 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:27 [debug] 23112\#0: child: 1 23259 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) ==23280== Invalid read of size 4
==23280== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23280== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23280== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23280== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23280== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23280== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23280== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23280== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23280== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23280== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23280== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23280== by 0x8062D5B: main (nginx.c:385)
==23280== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23280==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 5: certificate does not match host name (verify) ==23280==
==23280== Process terminating with default action of signal 11 (SIGSEGV)
==23280== Access not within mapped region at address 0x0
==23280== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23280== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23280== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23280== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23280== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23280== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23280== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23280== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23280== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23280== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23280== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23280== by 0x8062D5B: main (nginx.c:385)
==23280== If you believe this happened as a result of a stack
==23280== overflow in your program's main thread (unlikely but
==23280== possible), you can try to increase the size of the
==23280== main thread stack using the --main-stacksize= flag.
==23280== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 5: certificate does not match host name (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:28 [alert] 23112\#0: worker process 23280 exited on signal 11" (req 1) 2020/10/27 05:08:28 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:28 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:28 [debug] 23112\#0: reap children
2020/10/27 05:08:28 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:28 [debug] 23112\#0: child: 1 23280 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 3: SNI, no verify ==23292== Invalid read of size 4
==23292== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23292== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23292== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23292== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23292== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23292== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23292== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23292== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23292== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23292== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23292== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23292== by 0x8062D5B: main (nginx.c:385)
==23292== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23292==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 3: SNI, no verify ==23292==
==23292== Process terminating with default action of signal 11 (SIGSEGV)
==23292== Access not within mapped region at address 0x0
==23292== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23292== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23292== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23292== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23292== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23292== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23292== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23292== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23292== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23292== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23292== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23292== by 0x8062D5B: main (nginx.c:385)
==23292== If you believe this happened as a result of a stack
==23292== overflow in your program's main thread (unlikely but
==23292== possible), you can try to increase the size of the
==23292== main thread stack using the --main-stacksize= flag.
==23292== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 3: SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 3: SNI, no verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 3: SNI, no verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 3: SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:31 [alert] 23112\#0: worker process 23292 exited on signal 11" (req 0) 2020/10/27 05:08:31 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:31 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:31 [debug] 23112\#0: reap children
2020/10/27 05:08:31 [debug] 23112\#0: child: 0 23292 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 3: SNI, no verify ==23313== Invalid read of size 4
==23313== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23313== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23313== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23313== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23313== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23313== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23313== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23313== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23313== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23313== by 0x8062D5B: main (nginx.c:385)
==23313== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23313==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 3: SNI, no verify ==23313==
==23313== Process terminating with default action of signal 11 (SIGSEGV)
==23313== Access not within mapped region at address 0x0
==23313== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23313== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23313== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23313== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23313== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23313== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23313== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23313== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23313== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23313== by 0x8062D5B: main (nginx.c:385)
==23313== If you believe this happened as a result of a stack
==23313== overflow in your program's main thread (unlikely but
==23313== possible), you can try to increase the size of the
==23313== main thread stack using the --main-stacksize= flag.
==23313== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 3: SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 3: SNI, no verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 3: SNI, no verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 3: SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:32 [alert] 23112\#0: worker process 23313 exited on signal 11" (req 1) 2020/10/27 05:08:32 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:32 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:32 [debug] 23112\#0: reap children
2020/10/27 05:08:32 [debug] 23112\#0: child: 0 23313 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) ==23325== Invalid read of size 4
==23325== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23325== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23325== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23325== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23325== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23325== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23325== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23325== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23325== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23325== by 0x8062D5B: main (nginx.c:385)
==23325== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23325==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) ==23325==
==23325== Process terminating with default action of signal 11 (SIGSEGV)
==23325== Access not within mapped region at address 0x0
==23325== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23325== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23325== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23325== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23325== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23325== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23325== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23325== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23325== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23325== by 0x8062D5B: main (nginx.c:385)
==23325== If you believe this happened as a result of a stack
==23325== overflow in your program's main thread (unlikely but
==23325== possible), you can try to increase the size of the
==23325== main thread stack using the --main-stacksize= flag.
==23325== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 20: unable to get local issuer certificate
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:35 [alert] 23112\#0: worker process 23325 exited on signal 11" (req 0) 2020/10/27 05:08:35 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:35 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:35 [debug] 23112\#0: reap children
2020/10/27 05:08:35 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:35 [debug] 23112\#0: child: 1 23325 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) ==23346== Invalid read of size 4
==23346== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23346== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23346== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23346== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23346== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23346== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23346== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23346== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23346== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23346== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23346== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23346== by 0x8062D5B: main (nginx.c:385)
==23346== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23346==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) ==23346==
==23346== Process terminating with default action of signal 11 (SIGSEGV)
==23346== Access not within mapped region at address 0x0
==23346== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23346== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23346== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23346== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23346== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23346== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23346== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23346== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23346== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23346== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23346== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23346== by 0x8062D5B: main (nginx.c:385)
==23346== If you believe this happened as a result of a stack
==23346== overflow in your program's main thread (unlikely but
==23346== possible), you can try to increase the size of the
==23346== main thread stack using the --main-stacksize= flag.
==23346== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 20: unable to get local issuer certificate
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:36 [alert] 23112\#0: worker process 23346 exited on signal 11" (req 1) 2020/10/27 05:08:36 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:36 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:36 [debug] 23112\#0: reap children
2020/10/27 05:08:36 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:36 [debug] 23112\#0: child: 1 23346 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) ==23358== Invalid read of size 4
==23358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23358== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23358== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23358== by 0x8062D5B: main (nginx.c:385)
==23358== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23358==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) ==23358==
==23358== Process terminating with default action of signal 11 (SIGSEGV)
==23358== Access not within mapped region at address 0x0
==23358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23358== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23358== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23358== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23358== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23358== by 0x8062D5B: main (nginx.c:385)
==23358== If you believe this happened as a result of a stack
==23358== overflow in your program's main thread (unlikely but
==23358== possible), you can try to increase the size of the
==23358== main thread stack using the --main-stacksize= flag.
==23358== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:39 [alert] 23112\#0: worker process 23358 exited on signal 11" (req 0) 2020/10/27 05:08:39 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:39 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:39 [debug] 23112\#0: reap children
2020/10/27 05:08:39 [debug] 23112\#0: child: 0 23358 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) ==23379== Invalid read of size 4
==23379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23379== by 0x8062D5B: main (nginx.c:385)
==23379== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) ==23379==
==23379== Process terminating with default action of signal 11 (SIGSEGV)
==23379== Access not within mapped region at address 0x0
==23379== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23379== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23379== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23379== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23379== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23379== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23379== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23379== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23379== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23379== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23379== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23379== by 0x8062D5B: main (nginx.c:385)
==23379== If you believe this happened as a result of a stack
==23379== overflow in your program's main thread (unlikely but
==23379== possible), you can try to increase the size of the
==23379== main thread stack using the --main-stacksize= flag.
==23379== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:40 [alert] 23112\#0: worker process 23379 exited on signal 11" (req 1) 2020/10/27 05:08:40 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:40 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:40 [debug] 23112\#0: reap children
2020/10/27 05:08:40 [debug] 23112\#0: child: 0 23379 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) ==23391== Invalid read of size 4
==23391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23391== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23391== by 0x8062D5B: main (nginx.c:385)
==23391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) ==23391==
==23391== Process terminating with default action of signal 11 (SIGSEGV)
==23391== Access not within mapped region at address 0x0
==23391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23391== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23391== by 0x8062D5B: main (nginx.c:385)
==23391== If you believe this happened as a result of a stack
==23391== overflow in your program's main thread (unlikely but
==23391== possible), you can try to increase the size of the
==23391== main thread stack using the --main-stacksize= flag.
==23391== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: true
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:44 [alert] 23112\#0: worker process 23391 exited on signal 11" (req 0) 2020/10/27 05:08:44 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:44 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:44 [debug] 23112\#0: reap children
2020/10/27 05:08:44 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:44 [debug] 23112\#0: child: 1 23391 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) ==23412== Invalid read of size 4
==23412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23412== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23412== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23412== by 0x8062D5B: main (nginx.c:385)
==23412== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23412==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) ==23412==
==23412== Process terminating with default action of signal 11 (SIGSEGV)
==23412== Access not within mapped region at address 0x0
==23412== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23412== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23412== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23412== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23412== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23412== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23412== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23412== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23412== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23412== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23412== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23412== by 0x8062D5B: main (nginx.c:385)
==23412== If you believe this happened as a result of a stack
==23412== overflow in your program's main thread (unlikely but
==23412== possible), you can try to increase the size of the
==23412== main thread stack using the --main-stacksize= flag.
==23412== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: true
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:46 [alert] 23112\#0: worker process 23412 exited on signal 11" (req 1) 2020/10/27 05:08:46 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:46 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:46 [debug] 23112\#0: reap children
2020/10/27 05:08:46 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:46 [debug] 23112\#0: child: 1 23412 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) ==23424== Invalid read of size 4
==23424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23424== by 0x8062D5B: main (nginx.c:385)
==23424== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23424==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) ==23424==
==23424== Process terminating with default action of signal 11 (SIGSEGV)
==23424== Access not within mapped region at address 0x0
==23424== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23424== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23424== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23424== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23424== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23424== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23424== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23424== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23424== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23424== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23424== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23424== by 0x8062D5B: main (nginx.c:385)
==23424== If you believe this happened as a result of a stack
==23424== overflow in your program's main thread (unlikely but
==23424== possible), you can try to increase the size of the
==23424== main thread stack using the --main-stacksize= flag.
==23424== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:50 [alert] 23112\#0: worker process 23424 exited on signal 11" (req 0) 2020/10/27 05:08:50 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:50 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:50 [debug] 23112\#0: reap children
2020/10/27 05:08:50 [debug] 23112\#0: child: 0 23424 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) ==23445== Invalid read of size 4
==23445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23445== by 0x8062D5B: main (nginx.c:385)
==23445== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23445==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) ==23445==
==23445== Process terminating with default action of signal 11 (SIGSEGV)
==23445== Access not within mapped region at address 0x0
==23445== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23445== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23445== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23445== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23445== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23445== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23445== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23445== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23445== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23445== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23445== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23445== by 0x8062D5B: main (nginx.c:385)
==23445== If you believe this happened as a result of a stack
==23445== overflow in your program's main thread (unlikely but
==23445== possible), you can try to increase the size of the
==23445== main thread stack using the --main-stacksize= flag.
==23445== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:51 [alert] 23112\#0: worker process 23445 exited on signal 11" (req 1) 2020/10/27 05:08:51 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:51 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:51 [debug] 23112\#0: reap children
2020/10/27 05:08:51 [debug] 23112\#0: child: 0 23445 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) ==23457== Invalid read of size 4
==23457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23457== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23457== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23457== by 0x8062D5B: main (nginx.c:385)
==23457== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23457==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) ==23457==
==23457== Process terminating with default action of signal 11 (SIGSEGV)
==23457== Access not within mapped region at address 0x0
==23457== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23457== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23457== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23457== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23457== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23457== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23457== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23457== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23457== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23457== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23457== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23457== by 0x8062D5B: main (nginx.c:385)
==23457== If you believe this happened as a result of a stack
==23457== overflow in your program's main thread (unlikely but
==23457== possible), you can try to increase the size of the
==23457== main thread stack using the --main-stacksize= flag.
==23457== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:55 [alert] 23112\#0: worker process 23457 exited on signal 11" (req 0) 2020/10/27 05:08:55 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:55 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:55 [debug] 23112\#0: reap children
2020/10/27 05:08:55 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:55 [debug] 23112\#0: child: 1 23457 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) ==23478== Invalid read of size 4
==23478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23478== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23478== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23478== by 0x8062D5B: main (nginx.c:385)
==23478== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23478==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) ==23478==
==23478== Process terminating with default action of signal 11 (SIGSEGV)
==23478== Access not within mapped region at address 0x0
==23478== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23478== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23478== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23478== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23478== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23478== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23478== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23478== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23478== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23478== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23478== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23478== by 0x8062D5B: main (nginx.c:385)
==23478== If you believe this happened as a result of a stack
==23478== overflow in your program's main thread (unlikely but
==23478== possible), you can try to increase the size of the
==23478== main thread stack using the --main-stacksize= flag.
==23478== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:56 [alert] 23112\#0: worker process 23478 exited on signal 11" (req 1) 2020/10/27 05:08:56 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:56 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:56 [debug] 23112\#0: reap children
2020/10/27 05:08:56 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:08:56 [debug] 23112\#0: child: 1 23478 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 14: default cipher ==23490== Invalid read of size 4
==23490== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23490== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23490== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23490== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23490== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23490== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23490== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23490== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23490== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23490== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23490== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23490== by 0x8062D5B: main (nginx.c:385)
==23490== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23490==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 14: default cipher ==23490==
==23490== Process terminating with default action of signal 11 (SIGSEGV)
==23490== Access not within mapped region at address 0x0
==23490== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23490== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23490== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23490== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23490== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23490== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23490== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23490== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23490== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23490== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23490== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23490== by 0x8062D5B: main (nginx.c:385)
==23490== If you believe this happened as a result of a stack
==23490== overflow in your program's main thread (unlikely but
==23490== possible), you can try to increase the size of the
==23490== main thread stack using the --main-stacksize= flag.
==23490== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 14: default cipher - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 14: default cipher - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 14: default cipher - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:08:59 [alert] 23112\#0: worker process 23490 exited on signal 11" (req 0) 2020/10/27 05:08:59 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:08:59 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:08:59 [debug] 23112\#0: reap children
2020/10/27 05:08:59 [debug] 23112\#0: child: 0 23490 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 14: default cipher ==23511== Invalid read of size 4
==23511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23511== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23511== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23511== by 0x8062D5B: main (nginx.c:385)
==23511== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23511==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 14: default cipher ==23511==
==23511== Process terminating with default action of signal 11 (SIGSEGV)
==23511== Access not within mapped region at address 0x0
==23511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23511== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23511== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23511== by 0x8062D5B: main (nginx.c:385)
==23511== If you believe this happened as a result of a stack
==23511== overflow in your program's main thread (unlikely but
==23511== possible), you can try to increase the size of the
==23511== main thread stack using the --main-stacksize= flag.
==23511== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 14: default cipher - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 14: default cipher - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 14: default cipher - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:00 [alert] 23112\#0: worker process 23511 exited on signal 11" (req 1) 2020/10/27 05:09:00 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:00 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:00 [debug] 23112\#0: reap children
2020/10/27 05:09:00 [debug] 23112\#0: child: 0 23511 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) ==23523== Invalid read of size 4
==23523== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23523== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23523== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23523== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23523== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23523== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23523== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23523== by 0x8062D5B: main (nginx.c:385)
==23523== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23523==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) ==23523==
==23523== Process terminating with default action of signal 11 (SIGSEGV)
==23523== Access not within mapped region at address 0x0
==23523== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23523== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23523== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23523== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23523== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23523== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23523== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23523== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23523== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23523== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23523== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23523== by 0x8062D5B: main (nginx.c:385)
==23523== If you believe this happened as a result of a stack
==23523== overflow in your program's main thread (unlikely but
==23523== possible), you can try to increase the size of the
==23523== main thread stack using the --main-stacksize= flag.
==23523== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:03 [alert] 23112\#0: worker process 23523 exited on signal 11" (req 0) 2020/10/27 05:09:03 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:03 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:03 [debug] 23112\#0: reap children
2020/10/27 05:09:03 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:03 [debug] 23112\#0: child: 1 23523 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) ==23544== Invalid read of size 4
==23544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23544== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23544== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23544== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23544== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23544== by 0x8062D5B: main (nginx.c:385)
==23544== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23544==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) ==23544==
==23544== Process terminating with default action of signal 11 (SIGSEGV)
==23544== Access not within mapped region at address 0x0
==23544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23544== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23544== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23544== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23544== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23544== by 0x8062D5B: main (nginx.c:385)
==23544== If you believe this happened as a result of a stack
==23544== overflow in your program's main thread (unlikely but
==23544== possible), you can try to increase the size of the
==23544== main thread stack using the --main-stacksize= flag.
==23544== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:04 [alert] 23112\#0: worker process 23544 exited on signal 11" (req 1) 2020/10/27 05:09:04 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:04 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:04 [debug] 23112\#0: reap children
2020/10/27 05:09:04 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:04 [debug] 23112\#0: child: 1 23544 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) ==23556== Invalid read of size 4
==23556== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23556== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23556== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23556== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23556== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23556== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23556== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23556== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23556== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23556== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23556== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23556== by 0x8062D5B: main (nginx.c:385)
==23556== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23556==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) ==23556==
==23556== Process terminating with default action of signal 11 (SIGSEGV)
==23556== Access not within mapped region at address 0x0
==23556== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23556== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23556== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23556== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23556== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23556== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23556== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23556== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23556== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23556== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23556== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23556== by 0x8062D5B: main (nginx.c:385)
==23556== If you believe this happened as a result of a stack
==23556== overflow in your program's main thread (unlikely but
==23556== possible), you can try to increase the size of the
==23556== main thread stack using the --main-stacksize= flag.
==23556== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:08 [alert] 23112\#0: worker process 23556 exited on signal 11" (req 0) 2020/10/27 05:09:08 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:08 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:08 [debug] 23112\#0: reap children
2020/10/27 05:09:08 [debug] 23112\#0: child: 0 23556 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) ==23577== Invalid read of size 4
==23577== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23577== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23577== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23577== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23577== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23577== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23577== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23577== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23577== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23577== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23577== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23577== by 0x8062D5B: main (nginx.c:385)
==23577== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23577==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) ==23577==
==23577== Process terminating with default action of signal 11 (SIGSEGV)
==23577== Access not within mapped region at address 0x0
==23577== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23577== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23577== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23577== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23577== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23577== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23577== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23577== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23577== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23577== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23577== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23577== by 0x8062D5B: main (nginx.c:385)
==23577== If you believe this happened as a result of a stack
==23577== overflow in your program's main thread (unlikely but
==23577== possible), you can try to increase the size of the
==23577== main thread stack using the --main-stacksize= flag.
==23577== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:10 [alert] 23112\#0: worker process 23577 exited on signal 11" (req 1) 2020/10/27 05:09:10 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:10 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:10 [debug] 23112\#0: reap children
2020/10/27 05:09:10 [debug] 23112\#0: child: 0 23577 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates ==23589== Invalid read of size 4
==23589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23589== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23589== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23589== by 0x8062D5B: main (nginx.c:385)
==23589== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23589==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates ==23589==
==23589== Process terminating with default action of signal 11 (SIGSEGV)
==23589== Access not within mapped region at address 0x0
==23589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23589== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23589== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23589== by 0x8062D5B: main (nginx.c:385)
==23589== If you believe this happened as a result of a stack
==23589== overflow in your program's main thread (unlikely but
==23589== possible), you can try to increase the size of the
==23589== main thread stack using the --main-stacksize= flag.
==23589== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:13 [alert] 23112\#0: worker process 23589 exited on signal 11" (req 0) 2020/10/27 05:09:13 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:13 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:13 [debug] 23112\#0: reap children
2020/10/27 05:09:13 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:13 [debug] 23112\#0: child: 1 23589 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates ==23610== Invalid read of size 4
==23610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23610== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23610== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23610== by 0x8062D5B: main (nginx.c:385)
==23610== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23610==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates ==23610==
==23610== Process terminating with default action of signal 11 (SIGSEGV)
==23610== Access not within mapped region at address 0x0
==23610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23610== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23610== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23610== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23610== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23610== by 0x8062D5B: main (nginx.c:385)
==23610== If you believe this happened as a result of a stack
==23610== overflow in your program's main thread (unlikely but
==23610== possible), you can try to increase the size of the
==23610== main thread stack using the --main-stacksize= flag.
==23610== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:14 [alert] 23112\#0: worker process 23610 exited on signal 11" (req 1) 2020/10/27 05:09:14 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:14 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:14 [debug] 23112\#0: reap children
2020/10/27 05:09:14 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:14 [debug] 23112\#0: child: 1 23610 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 15: explicit cipher configuration ==23622== Invalid read of size 4
==23622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23622== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23622== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23622== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23622== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23622== by 0x8062D5B: main (nginx.c:385)
==23622== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23622==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 15: explicit cipher configuration ==23622==
==23622== Process terminating with default action of signal 11 (SIGSEGV)
==23622== Access not within mapped region at address 0x0
==23622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23622== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23622== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23622== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23622== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23622== by 0x8062D5B: main (nginx.c:385)
==23622== If you believe this happened as a result of a stack
==23622== overflow in your program's main thread (unlikely but
==23622== possible), you can try to increase the size of the
==23622== main thread stack using the --main-stacksize= flag.
==23622== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 15: explicit cipher configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 15: explicit cipher configuration - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 15: explicit cipher configuration - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:18 [alert] 23112\#0: worker process 23622 exited on signal 11" (req 0) 2020/10/27 05:09:18 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:18 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:18 [debug] 23112\#0: reap children
2020/10/27 05:09:18 [debug] 23112\#0: child: 0 23622 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 15: explicit cipher configuration ==23643== Invalid read of size 4
==23643== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23643== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23643== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23643== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23643== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23643== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23643== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23643== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23643== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23643== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23643== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23643== by 0x8062D5B: main (nginx.c:385)
==23643== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23643==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 15: explicit cipher configuration ==23643==
==23643== Process terminating with default action of signal 11 (SIGSEGV)
==23643== Access not within mapped region at address 0x0
==23643== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23643== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23643== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23643== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23643== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23643== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23643== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23643== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23643== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23643== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23643== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23643== by 0x8062D5B: main (nginx.c:385)
==23643== If you believe this happened as a result of a stack
==23643== overflow in your program's main thread (unlikely but
==23643== possible), you can try to increase the size of the
==23643== main thread stack using the --main-stacksize= flag.
==23643== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 15: explicit cipher configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 15: explicit cipher configuration - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 15: explicit cipher configuration - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:19 [alert] 23112\#0: worker process 23643 exited on signal 11" (req 1) 2020/10/27 05:09:19 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:19 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:19 [debug] 23112\#0: reap children
2020/10/27 05:09:19 [debug] 23112\#0: child: 0 23643 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) ==23655== Invalid read of size 4
==23655== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23655== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23655== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23655== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23655== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23655== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23655== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23655== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23655== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23655== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23655== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23655== by 0x8062D5B: main (nginx.c:385)
==23655== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23655==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) ==23655==
==23655== Process terminating with default action of signal 11 (SIGSEGV)
==23655== Access not within mapped region at address 0x0
==23655== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23655== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23655== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23655== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23655== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23655== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23655== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23655== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23655== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23655== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23655== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23655== by 0x8062D5B: main (nginx.c:385)
==23655== If you believe this happened as a result of a stack
==23655== overflow in your program's main thread (unlikely but
==23655== possible), you can try to increase the size of the
==23655== main thread stack using the --main-stacksize= flag.
==23655== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 18: self signed certificate
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:23 [alert] 23112\#0: worker process 23655 exited on signal 11" (req 0) 2020/10/27 05:09:23 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:23 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:23 [debug] 23112\#0: reap children
2020/10/27 05:09:23 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:23 [debug] 23112\#0: child: 1 23655 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) ==23676== Invalid read of size 4
==23676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23676== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23676== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23676== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23676== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23676== by 0x8062D5B: main (nginx.c:385)
==23676== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23676==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) ==23676==
==23676== Process terminating with default action of signal 11 (SIGSEGV)
==23676== Access not within mapped region at address 0x0
==23676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23676== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23676== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23676== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23676== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23676== by 0x8062D5B: main (nginx.c:385)
==23676== If you believe this happened as a result of a stack
==23676== overflow in your program's main thread (unlikely but
==23676== possible), you can try to increase the size of the
==23676== main thread stack using the --main-stacksize= flag.
==23676== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 18: self signed certificate
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:24 [alert] 23112\#0: worker process 23676 exited on signal 11" (req 1) 2020/10/27 05:09:24 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:24 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:24 [debug] 23112\#0: reap children
2020/10/27 05:09:24 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:24 [debug] 23112\#0: child: 1 23676 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) ==23688== Invalid read of size 4
==23688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23688== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23688== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23688== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23688== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23688== by 0x8062D5B: main (nginx.c:385)
==23688== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23688==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) ==23688==
==23688== Process terminating with default action of signal 11 (SIGSEGV)
==23688== Access not within mapped region at address 0x0
==23688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23688== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23688== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23688== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23688== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23688== by 0x8062D5B: main (nginx.c:385)
==23688== If you believe this happened as a result of a stack
==23688== overflow in your program's main thread (unlikely but
==23688== possible), you can try to increase the size of the
==23688== main thread stack using the --main-stacksize= flag.
==23688== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:29 [alert] 23112\#0: worker process 23688 exited on signal 11" (req 0) 2020/10/27 05:09:29 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:29 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:29 [debug] 23112\#0: reap children
2020/10/27 05:09:29 [debug] 23112\#0: child: 0 23688 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) ==23709== Invalid read of size 4
==23709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23709== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23709== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23709== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23709== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23709== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23709== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23709== by 0x8062D5B: main (nginx.c:385)
==23709== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23709==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) ==23709==
==23709== Process terminating with default action of signal 11 (SIGSEGV)
==23709== Access not within mapped region at address 0x0
==23709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23709== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23709== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23709== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23709== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23709== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23709== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23709== by 0x8062D5B: main (nginx.c:385)
==23709== If you believe this happened as a result of a stack
==23709== overflow in your program's main thread (unlikely but
==23709== possible), you can try to increase the size of the
==23709== main thread stack using the --main-stacksize= flag.
==23709== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:30 [alert] 23112\#0: worker process 23709 exited on signal 11" (req 1) 2020/10/27 05:09:30 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:30 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:30 [debug] 23112\#0: reap children
2020/10/27 05:09:30 [debug] 23112\#0: child: 0 23709 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 1: www.google.com ==23721== Invalid read of size 4
==23721== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23721== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23721== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23721== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23721== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23721== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23721== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23721== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23721== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23721== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23721== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23721== by 0x8062D5B: main (nginx.c:385)
==23721== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23721==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 1: www.google.com ==23721==
==23721== Process terminating with default action of signal 11 (SIGSEGV)
==23721== Access not within mapped region at address 0x0
==23721== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23721== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23721== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23721== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23721== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23721== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23721== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23721== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23721== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23721== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23721== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23721== by 0x8062D5B: main (nginx.c:385)
==23721== If you believe this happened as a result of a stack
==23721== overflow in your program's main thread (unlikely but
==23721== possible), you can try to increase the size of the
==23721== main thread stack using the --main-stacksize= flag.
==23721== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 1: www.google.com - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 1: www.google.com - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 1: www.google.com - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 1: www.google.com - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:34 [alert] 23112\#0: worker process 23721 exited on signal 11" (req 0) 2020/10/27 05:09:34 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:34 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:34 [debug] 23112\#0: reap children
2020/10/27 05:09:34 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:34 [debug] 23112\#0: child: 1 23721 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 1: www.google.com ==23742== Invalid read of size 4
==23742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23742== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23742== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23742== by 0x8062D5B: main (nginx.c:385)
==23742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 1: www.google.com ==23742==
==23742== Process terminating with default action of signal 11 (SIGSEGV)
==23742== Access not within mapped region at address 0x0
==23742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23742== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23742== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23742== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23742== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23742== by 0x8062D5B: main (nginx.c:385)
==23742== If you believe this happened as a result of a stack
==23742== overflow in your program's main thread (unlikely but
==23742== possible), you can try to increase the size of the
==23742== main thread stack using the --main-stacksize= flag.
==23742== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 1: www.google.com - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 1: www.google.com - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 1: www.google.com - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 1: www.google.com - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:34 [alert] 23112\#0: worker process 23742 exited on signal 11" (req 1) 2020/10/27 05:09:34 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:34 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:34 [debug] 23112\#0: reap children
2020/10/27 05:09:34 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:34 [debug] 23112\#0: child: 1 23742 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 2: no SNI, no verify ==23754== Invalid read of size 4
==23754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23754== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23754== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23754== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23754== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23754== by 0x8062D5B: main (nginx.c:385)
==23754== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23754==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 2: no SNI, no verify ==23754==
==23754== Process terminating with default action of signal 11 (SIGSEGV)
==23754== Access not within mapped region at address 0x0
==23754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23754== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23754== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23754== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23754== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23754== by 0x8062D5B: main (nginx.c:385)
==23754== If you believe this happened as a result of a stack
==23754== overflow in your program's main thread (unlikely but
==23754== possible), you can try to increase the size of the
==23754== main thread stack using the --main-stacksize= flag.
==23754== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 2: no SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 2: no SNI, no verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent: ping
-received: pong
-close: 1 nil
'
129-ssl-socket.t TEST 2: no SNI, no verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 2: no SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:39 [alert] 23112\#0: worker process 23754 exited on signal 11" (req 0) 2020/10/27 05:09:39 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:39 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:39 [debug] 23112\#0: reap children
2020/10/27 05:09:39 [debug] 23112\#0: child: 0 23754 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 2: no SNI, no verify ==23775== Invalid read of size 4
==23775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23775== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23775== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23775== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23775== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23775== by 0x8062D5B: main (nginx.c:385)
==23775== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23775==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 2: no SNI, no verify ==23775==
==23775== Process terminating with default action of signal 11 (SIGSEGV)
==23775== Access not within mapped region at address 0x0
==23775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23775== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23775== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23775== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23775== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23775== by 0x8062D5B: main (nginx.c:385)
==23775== If you believe this happened as a result of a stack
==23775== overflow in your program's main thread (unlikely but
==23775== possible), you can try to increase the size of the
==23775== main thread stack using the --main-stacksize= flag.
==23775== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 2: no SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 2: no SNI, no verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent: ping
-received: pong
-close: 1 nil
'
129-ssl-socket.t TEST 2: no SNI, no verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 2: no SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:40 [alert] 23112\#0: worker process 23775 exited on signal 11" (req 1) 2020/10/27 05:09:40 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:40 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:40 [debug] 23112\#0: reap children
2020/10/27 05:09:40 [debug] 23112\#0: child: 0 23775 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) ==23787== Invalid read of size 4
==23787== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23787== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23787== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23787== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23787== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23787== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23787== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23787== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23787== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23787== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23787== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23787== by 0x8062D5B: main (nginx.c:385)
==23787== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23787==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) ==23787==
==23787== Process terminating with default action of signal 11 (SIGSEGV)
==23787== Access not within mapped region at address 0x0
==23787== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23787== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23787== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23787== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23787== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23787== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23787== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23787== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23787== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23787== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23787== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23787== by 0x8062D5B: main (nginx.c:385)
==23787== If you believe this happened as a result of a stack
==23787== overflow in your program's main thread (unlikely but
==23787== possible), you can try to increase the size of the
==23787== main thread stack using the --main-stacksize= flag.
==23787== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 80 bytes.
-received: HTTP/1.1 404 Not Found
-close: 1 nil
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:44 [alert] 23112\#0: worker process 23787 exited on signal 11" (req 0) 2020/10/27 05:09:44 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:44 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:44 [debug] 23112\#0: reap children
2020/10/27 05:09:44 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:44 [debug] 23112\#0: child: 1 23787 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) ==23808== Invalid read of size 4
==23808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23808== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23808== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23808== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23808== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23808== by 0x8062D5B: main (nginx.c:385)
==23808== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23808==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) ==23808==
==23808== Process terminating with default action of signal 11 (SIGSEGV)
==23808== Access not within mapped region at address 0x0
==23808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23808== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23808== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23808== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23808== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23808== by 0x8062D5B: main (nginx.c:385)
==23808== If you believe this happened as a result of a stack
==23808== overflow in your program's main thread (unlikely but
==23808== possible), you can try to increase the size of the
==23808== main thread stack using the --main-stacksize= flag.
==23808== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 80 bytes.
-received: HTTP/1.1 404 Not Found
-close: 1 nil
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:45 [alert] 23112\#0: worker process 23808 exited on signal 11" (req 1) 2020/10/27 05:09:45 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:45 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:45 [debug] 23112\#0: reap children
2020/10/27 05:09:45 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:45 [debug] 23112\#0: child: 1 23808 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify ==23820== Invalid read of size 4
==23820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23820== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23820== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23820== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23820== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23820== by 0x8062D5B: main (nginx.c:385)
==23820== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23820==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify ==23820==
==23820== Process terminating with default action of signal 11 (SIGSEGV)
==23820== Access not within mapped region at address 0x0
==23820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23820== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23820== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23820== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23820== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23820== by 0x8062D5B: main (nginx.c:385)
==23820== If you believe this happened as a result of a stack
==23820== overflow in your program's main thread (unlikely but
==23820== possible), you can try to increase the size of the
==23820== main thread stack using the --main-stacksize= flag.
==23820== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:48 [alert] 23112\#0: worker process 23820 exited on signal 11" (req 0) 2020/10/27 05:09:48 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:48 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:48 [debug] 23112\#0: reap children
2020/10/27 05:09:48 [debug] 23112\#0: child: 0 23820 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify ==23841== Invalid read of size 4
==23841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23841== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23841== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23841== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23841== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23841== by 0x8062D5B: main (nginx.c:385)
==23841== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23841==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify ==23841==
==23841== Process terminating with default action of signal 11 (SIGSEGV)
==23841== Access not within mapped region at address 0x0
==23841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23841== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23841== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23841== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23841== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23841== by 0x8062D5B: main (nginx.c:385)
==23841== If you believe this happened as a result of a stack
==23841== overflow in your program's main thread (unlikely but
==23841== possible), you can try to increase the size of the
==23841== main thread stack using the --main-stacksize= flag.
==23841== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:49 [alert] 23112\#0: worker process 23841 exited on signal 11" (req 1) 2020/10/27 05:09:49 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:49 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:49 [debug] 23112\#0: reap children
2020/10/27 05:09:49 [debug] 23112\#0: child: 0 23841 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) ==23853== Invalid read of size 4
==23853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23853== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23853== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23853== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23853== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23853== by 0x8062D5B: main (nginx.c:385)
==23853== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23853==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) ==23853==
==23853== Process terminating with default action of signal 11 (SIGSEGV)
==23853== Access not within mapped region at address 0x0
==23853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23853== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23853== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23853== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23853== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23853== by 0x8062D5B: main (nginx.c:385)
==23853== If you believe this happened as a result of a stack
==23853== overflow in your program's main thread (unlikely but
==23853== possible), you can try to increase the size of the
==23853== main thread stack using the --main-stacksize= flag.
==23853== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:53 [alert] 23112\#0: worker process 23853 exited on signal 11" (req 0) 2020/10/27 05:09:53 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:53 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:53 [debug] 23112\#0: reap children
2020/10/27 05:09:53 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:53 [debug] 23112\#0: child: 1 23853 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) ==23874== Invalid read of size 4
==23874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23874== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23874== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23874== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23874== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23874== by 0x8062D5B: main (nginx.c:385)
==23874== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23874==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) ==23874==
==23874== Process terminating with default action of signal 11 (SIGSEGV)
==23874== Access not within mapped region at address 0x0
==23874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23874== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23874== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23874== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23874== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23874== by 0x8062D5B: main (nginx.c:385)
==23874== If you believe this happened as a result of a stack
==23874== overflow in your program's main thread (unlikely but
==23874== possible), you can try to increase the size of the
==23874== main thread stack using the --main-stacksize= flag.
==23874== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:54 [alert] 23112\#0: worker process 23874 exited on signal 11" (req 1) 2020/10/27 05:09:54 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:54 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:54 [debug] 23112\#0: reap children
2020/10/27 05:09:54 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:09:54 [debug] 23112\#0: child: 1 23874 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake ==23886== Invalid read of size 4
==23886== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23886== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23886== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23886== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23886== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23886== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23886== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23886== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23886== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23886== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23886== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23886== by 0x8062D5B: main (nginx.c:385)
==23886== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23886==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake ==23886==
==23886== Process terminating with default action of signal 11 (SIGSEGV)
==23886== Access not within mapped region at address 0x0
==23886== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23886== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23886== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23886== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23886== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23886== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23886== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23886== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23886== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23886== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23886== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23886== by 0x8062D5B: main (nginx.c:385)
==23886== If you believe this happened as a result of a stack
==23886== overflow in your program's main thread (unlikely but
==23886== possible), you can try to increase the size of the
==23886== main thread stack using the --main-stacksize= flag.
==23886== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:57 [alert] 23112\#0: worker process 23886 exited on signal 11" (req 0) 2020/10/27 05:09:57 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:57 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:57 [debug] 23112\#0: reap children
2020/10/27 05:09:57 [debug] 23112\#0: child: 0 23886 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake ==23907== Invalid read of size 4
==23907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23907== by 0x8062D5B: main (nginx.c:385)
==23907== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23907==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake ==23907==
==23907== Process terminating with default action of signal 11 (SIGSEGV)
==23907== Access not within mapped region at address 0x0
==23907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23907== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23907== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23907== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23907== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23907== by 0x8062D5B: main (nginx.c:385)
==23907== If you believe this happened as a result of a stack
==23907== overflow in your program's main thread (unlikely but
==23907== possible), you can try to increase the size of the
==23907== main thread stack using the --main-stacksize= flag.
==23907== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:09:58 [alert] 23112\#0: worker process 23907 exited on signal 11" (req 1) 2020/10/27 05:09:58 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:09:58 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:09:58 [debug] 23112\#0: reap children
2020/10/27 05:09:58 [debug] 23112\#0: child: 0 23907 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 4: ssl session reuse ==23919== Invalid read of size 4
==23919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23919== by 0x8062D5B: main (nginx.c:385)
==23919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 4: ssl session reuse ==23919==
==23919== Process terminating with default action of signal 11 (SIGSEGV)
==23919== Access not within mapped region at address 0x0
==23919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23919== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23919== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23919== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23919== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23919== by 0x8062D5B: main (nginx.c:385)
==23919== If you believe this happened as a result of a stack
==23919== overflow in your program's main thread (unlikely but
==23919== possible), you can try to increase the size of the
==23919== main thread stack using the --main-stacksize= flag.
==23919== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 4: ssl session reuse - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 4: ssl session reuse - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 4: ssl session reuse - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl set session: \1
lua ssl save session: \1
lua ssl free session: \1
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:01 [alert] 23112\#0: worker process 23919 exited on signal 11" (req 0) 2020/10/27 05:10:01 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:01 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:01 [debug] 23112\#0: reap children
2020/10/27 05:10:01 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:01 [debug] 23112\#0: child: 1 23919 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 4: ssl session reuse ==23940== Invalid read of size 4
==23940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23940== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23940== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23940== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23940== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23940== by 0x8062D5B: main (nginx.c:385)
==23940== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23940==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 4: ssl session reuse ==23940==
==23940== Process terminating with default action of signal 11 (SIGSEGV)
==23940== Access not within mapped region at address 0x0
==23940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23940== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23940== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23940== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23940== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23940== by 0x8062D5B: main (nginx.c:385)
==23940== If you believe this happened as a result of a stack
==23940== overflow in your program's main thread (unlikely but
==23940== possible), you can try to increase the size of the
==23940== main thread stack using the --main-stacksize= flag.
==23940== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 4: ssl session reuse - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 4: ssl session reuse - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 4: ssl session reuse - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl set session: \1
lua ssl save session: \1
lua ssl free session: \1
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:02 [alert] 23112\#0: worker process 23940 exited on signal 11" (req 1) 2020/10/27 05:10:02 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:02 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:02 [debug] 23112\#0: reap children
2020/10/27 05:10:02 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:02 [debug] 23112\#0: child: 1 23940 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration ==23952== Invalid read of size 4
==23952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23952== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23952== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23952== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23952== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23952== by 0x8062D5B: main (nginx.c:385)
==23952== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23952==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 16: explicit ssl protocol configuration ==23952==
==23952== Process terminating with default action of signal 11 (SIGSEGV)
==23952== Access not within mapped region at address 0x0
==23952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23952== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23952== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23952== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23952== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23952== by 0x8062D5B: main (nginx.c:385)
==23952== If you believe this happened as a result of a stack
==23952== overflow in your program's main thread (unlikely but
==23952== possible), you can try to increase the size of the
==23952== main thread stack using the --main-stacksize= flag.
==23952== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 16: explicit ssl protocol configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:06 [alert] 23112\#0: worker process 23952 exited on signal 11" (req 0) 2020/10/27 05:10:06 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:06 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:06 [debug] 23112\#0: reap children
2020/10/27 05:10:06 [debug] 23112\#0: child: 0 23952 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration ==23973== Invalid read of size 4
==23973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23973== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23973== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23973== by 0x8062D5B: main (nginx.c:385)
==23973== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 16: explicit ssl protocol configuration ==23973==
==23973== Process terminating with default action of signal 11 (SIGSEGV)
==23973== Access not within mapped region at address 0x0
==23973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23973== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23973== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23973== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==23973== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==23973== by 0x8062D5B: main (nginx.c:385)
==23973== If you believe this happened as a result of a stack
==23973== overflow in your program's main thread (unlikely but
==23973== possible), you can try to increase the size of the
==23973== main thread stack using the --main-stacksize= flag.
==23973== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 16: explicit ssl protocol configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:07 [alert] 23112\#0: worker process 23973 exited on signal 11" (req 1) 2020/10/27 05:10:07 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:07 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:07 [debug] 23112\#0: reap children
2020/10/27 05:10:07 [debug] 23112\#0: child: 0 23973 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) ==23985== Invalid read of size 4
==23985== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23985== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23985== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23985== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23985== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23985== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23985== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23985== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23985== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23985== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23985== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23985== by 0x8062D5B: main (nginx.c:385)
==23985== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23985==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) ==23985==
==23985== Process terminating with default action of signal 11 (SIGSEGV)
==23985== Access not within mapped region at address 0x0
==23985== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23985== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23985== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23985== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23985== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23985== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23985== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23985== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23985== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23985== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23985== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23985== by 0x8062D5B: main (nginx.c:385)
==23985== If you believe this happened as a result of a stack
==23985== overflow in your program's main thread (unlikely but
==23985== possible), you can try to increase the size of the
==23985== main thread stack using the --main-stacksize= flag.
==23985== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - grep_error_log_out (req 0) ''
doesn't match '(?^:^stream lua ssl save session: ([0-9A-F]+)
stream lua ssl save session: \1
stream lua ssl save session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:10 [alert] 23112\#0: worker process 23985 exited on signal 11" (req 0) 2020/10/27 05:10:10 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:10 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:10 [debug] 23112\#0: reap children
2020/10/27 05:10:10 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:10 [debug] 23112\#0: child: 1 23985 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) ==24007== Invalid read of size 4
==24007== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24007== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24007== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24007== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24007== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24007== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24007== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24007== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24007== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24007== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24007== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24007== by 0x8062D5B: main (nginx.c:385)
==24007== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24007==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) ==24007==
==24007== Process terminating with default action of signal 11 (SIGSEGV)
==24007== Access not within mapped region at address 0x0
==24007== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24007== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24007== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24007== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24007== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24007== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24007== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24007== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24007== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24007== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24007== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24007== by 0x8062D5B: main (nginx.c:385)
==24007== If you believe this happened as a result of a stack
==24007== overflow in your program's main thread (unlikely but
==24007== possible), you can try to increase the size of the
==24007== main thread stack using the --main-stacksize= flag.
==24007== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - grep_error_log_out (req 1) ''
doesn't match '(?^:^stream lua ssl save session: ([0-9A-F]+)
stream lua ssl save session: \1
stream lua ssl save session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:11 [alert] 23112\#0: worker process 24007 exited on signal 11" (req 1) 2020/10/27 05:10:11 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:11 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:11 [debug] 23112\#0: reap children
2020/10/27 05:10:11 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:11 [debug] 23112\#0: child: 1 24007 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) ==24020== Invalid read of size 4
==24020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24020== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24020== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24020== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24020== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24020== by 0x8062D5B: main (nginx.c:385)
==24020== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24020==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) ==24020==
==24020== Process terminating with default action of signal 11 (SIGSEGV)
==24020== Access not within mapped region at address 0x0
==24020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24020== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24020== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24020== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24020== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24020== by 0x8062D5B: main (nginx.c:385)
==24020== If you believe this happened as a result of a stack
==24020== overflow in your program's main thread (unlikely but
==24020== possible), you can try to increase the size of the
==24020== main thread stack using the --main-stacksize= flag.
==24020== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:16 [alert] 23112\#0: worker process 24020 exited on signal 11" (req 0) 2020/10/27 05:10:16 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:16 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:16 [debug] 23112\#0: reap children
2020/10/27 05:10:16 [debug] 23112\#0: child: 0 24020 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) ==24042== Invalid read of size 4
==24042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24042== by 0x8062D5B: main (nginx.c:385)
==24042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) ==24042==
==24042== Process terminating with default action of signal 11 (SIGSEGV)
==24042== Access not within mapped region at address 0x0
==24042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24042== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24042== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24042== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24042== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24042== by 0x8062D5B: main (nginx.c:385)
==24042== If you believe this happened as a result of a stack
==24042== overflow in your program's main thread (unlikely but
==24042== possible), you can try to increase the size of the
==24042== main thread stack using the --main-stacksize= flag.
==24042== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:16 [alert] 23112\#0: worker process 24042 exited on signal 11" (req 1) 2020/10/27 05:10:16 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:16 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:16 [debug] 23112\#0: reap children
2020/10/27 05:10:16 [debug] 23112\#0: child: 0 24042 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) ==24055== Invalid read of size 4
==24055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24055== by 0x8062D5B: main (nginx.c:385)
==24055== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24055==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) ==24055==
==24055== Process terminating with default action of signal 11 (SIGSEGV)
==24055== Access not within mapped region at address 0x0
==24055== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24055== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24055== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24055== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24055== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24055== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24055== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24055== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24055== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24055== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24055== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24055== by 0x8062D5B: main (nginx.c:385)
==24055== If you believe this happened as a result of a stack
==24055== overflow in your program's main thread (unlikely but
==24055== possible), you can try to increase the size of the
==24055== main thread stack using the --main-stacksize= flag.
==24055== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:21 [alert] 23112\#0: worker process 24055 exited on signal 11" (req 0) 2020/10/27 05:10:21 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:21 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:21 [debug] 23112\#0: reap children
2020/10/27 05:10:21 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:21 [debug] 23112\#0: child: 1 24055 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) ==24076== Invalid read of size 4
==24076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24076== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24076== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24076== by 0x8062D5B: main (nginx.c:385)
==24076== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24076==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) ==24076==
==24076== Process terminating with default action of signal 11 (SIGSEGV)
==24076== Access not within mapped region at address 0x0
==24076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24076== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24076== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24076== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24076== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24076== by 0x8062D5B: main (nginx.c:385)
==24076== If you believe this happened as a result of a stack
==24076== overflow in your program's main thread (unlikely but
==24076== possible), you can try to increase the size of the
==24076== main thread stack using the --main-stacksize= flag.
==24076== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:22 [alert] 23112\#0: worker process 24076 exited on signal 11" (req 1) 2020/10/27 05:10:22 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:22 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:22 [debug] 23112\#0: reap children
2020/10/27 05:10:22 [debug] 23112\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:22 [debug] 23112\#0: child: 1 24076 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 25: multiple handshake calls ==24089== Invalid read of size 4
==24089== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24089== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24089== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24089== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24089== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24089== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24089== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24089== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24089== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24089== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24089== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24089== by 0x8062D5B: main (nginx.c:385)
==24089== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24089==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 25: multiple handshake calls ==24089==
==24089== Process terminating with default action of signal 11 (SIGSEGV)
==24089== Access not within mapped region at address 0x0
==24089== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24089== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24089== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24089== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24089== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24089== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24089== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24089== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24089== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24089== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24089== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24089== by 0x8062D5B: main (nginx.c:385)
==24089== If you believe this happened as a result of a stack
==24089== overflow in your program's main thread (unlikely but
==24089== possible), you can try to increase the size of the
==24089== main thread stack using the --main-stacksize= flag.
==24089== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 25: multiple handshake calls - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 25: multiple handshake calls - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 25: multiple handshake calls - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 25: multiple handshake calls - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:26 [alert] 23112\#0: worker process 24089 exited on signal 11" (req 0) 2020/10/27 05:10:26 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:26 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:26 [debug] 23112\#0: reap children
2020/10/27 05:10:26 [debug] 23112\#0: child: 0 24089 e:0 t:1 d:0 r:1 j:0
'
129-ssl-socket.t TEST 25: multiple handshake calls ==24110== Invalid read of size 4
==24110== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24110== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24110== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24110== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24110== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24110== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24110== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24110== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24110== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24110== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24110== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24110== by 0x8062D5B: main (nginx.c:385)
==24110== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24110==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
129-ssl-socket.t TEST 25: multiple handshake calls ==24110==
==24110== Process terminating with default action of signal 11 (SIGSEGV)
==24110== Access not within mapped region at address 0x0
==24110== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24110== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24110== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24110== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24110== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24110== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24110== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24110== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24110== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24110== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24110== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24110== by 0x8062D5B: main (nginx.c:385)
==24110== If you believe this happened as a result of a stack
==24110== overflow in your program's main thread (unlikely but
==24110== possible), you can try to increase the size of the
==24110== main thread stack using the --main-stacksize= flag.
==24110== The main thread stack size used in this run was 8388608.

129-ssl-socket.t TEST 25: multiple handshake calls - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 25: multiple handshake calls - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 25: multiple handshake calls - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 25: multiple handshake calls - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:27 [alert] 23112\#0: worker process 24110 exited on signal 11" (req 1) 2020/10/27 05:10:27 [debug] 23112\#0: shmtx forced unlock
2020/10/27 05:10:27 [debug] 23112\#0: wake up, sigio 0
2020/10/27 05:10:27 [debug] 23112\#0: reap children
2020/10/27 05:10:27 [debug] 23112\#0: child: 0 24110 e:0 t:1 d:0 r:1 j:0
'
130-internal-api.t TEST 1: req - Can't connect to 127.0.0.1:1984: Connection refused ==24122== Invalid read of size 4
==24122== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24122== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24122== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24122== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24122== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24122== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24122== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24122== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24122== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24122== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24122== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24122== by 0x8062D5B: main (nginx.c:385)
==24122== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24122==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
130-internal-api.t TEST 1: req - Can't connect to 127.0.0.1:1984: Connection refused ==24122==
==24122== Process terminating with default action of signal 11 (SIGSEGV)
==24122== Access not within mapped region at address 0x0
==24122== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24122== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24122== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24122== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24122== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24122== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24122== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24122== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24122== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24122== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24122== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24122== by 0x8062D5B: main (nginx.c:385)
==24122== If you believe this happened as a result of a stack
==24122== overflow in your program's main thread (unlikely but
==24122== possible), you can try to increase the size of the
==24122== main thread stack using the --main-stacksize= flag.
==24122== The main thread stack size used in this run was 8388608.

130-internal-api.t TEST 1: req - status code ok got: ''
expected: '200'
130-internal-api.t TEST 1: req - response_body_like - response is expected () ''
doesn't match '(?^s:^content req=0x[a-f0-9]{4,}
$)'
130-internal-api.t TEST 1: req - Can't connect to 127.0.0.1:1984: Connection refused ==24123== Invalid read of size 4
==24123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24123== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24123== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24123== by 0x8062D5B: main (nginx.c:385)
==24123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
130-internal-api.t TEST 1: req - Can't connect to 127.0.0.1:1984: Connection refused ==24123==
==24123== Process terminating with default action of signal 11 (SIGSEGV)
==24123== Access not within mapped region at address 0x0
==24123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24123== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24123== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24123== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24123== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24123== by 0x8062D5B: main (nginx.c:385)
==24123== If you believe this happened as a result of a stack
==24123== overflow in your program's main thread (unlikely but
==24123== possible), you can try to increase the size of the
==24123== main thread stack using the --main-stacksize= flag.
==24123== The main thread stack size used in this run was 8388608.

130-internal-api.t TEST 1: req - status code ok got: ''
expected: '200'
130-internal-api.t TEST 1: req - response_body_like - response is expected () ''
doesn't match '(?^s:^content req=0x[a-f0-9]{4,}
$)'
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue #481 - Can't connect to 127.0.0.1:1984: Connection refused ==24132== Invalid read of size 4
==24132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24132== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24132== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24132== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24132== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24132== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24132== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24132== by 0x8062D5B: main (nginx.c:385)
==24132== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24132==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue #481 - Can't connect to 127.0.0.1:1984: Connection refused ==24132==
==24132== Process terminating with default action of signal 11 (SIGSEGV)
==24132== Access not within mapped region at address 0x0
==24132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24132== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24132== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24132== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24132== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24132== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24132== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24132== by 0x8062D5B: main (nginx.c:385)
==24132== If you believe this happened as a result of a stack
==24132== overflow in your program's main thread (unlikely but
==24132== possible), you can try to increase the size of the
==24132== main thread stack using the --main-stacksize= flag.
==24132== The main thread stack size used in this run was 8388608.

131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received 4 bytes of response data.\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 0)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue #481 - Can't connect to 127.0.0.1:1984: Connection refused ==24133== Invalid read of size 4
==24133== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24133== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24133== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24133== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24133== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24133== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24133== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24133== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24133== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24133== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24133== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24133== by 0x8062D5B: main (nginx.c:385)
==24133== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24133==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue #481 - Can't connect to 127.0.0.1:1984: Connection refused ==24133==
==24133== Process terminating with default action of signal 11 (SIGSEGV)
==24133== Access not within mapped region at address 0x0
==24133== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24133== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24133== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24133== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24133== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24133== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24133== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24133== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24133== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24133== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24133== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24133== by 0x8062D5B: main (nginx.c:385)
==24133== If you believe this happened as a result of a stack
==24133== overflow in your program's main thread (unlikely but
==24133== possible), you can try to increase the size of the
==24133== main thread stack using the --main-stacksize= flag.
==24133== The main thread stack size used in this run was 8388608.

131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received 4 bytes of response data.\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 1)
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue #481 ==24141== Invalid read of size 4
==24141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24141== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24141== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24141== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24141== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24141== by 0x8062D5B: main (nginx.c:385)
==24141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue #481 ==24141==
==24141== Process terminating with default action of signal 11 (SIGSEGV)
==24141== Access not within mapped region at address 0x0
==24141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24141== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24141== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24141== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24141== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24141== by 0x8062D5B: main (nginx.c:385)
==24141== If you believe this happened as a result of a stack
==24141== overflow in your program's main thread (unlikely but
==24141== possible), you can try to increase the size of the
==24141== main thread stack using the --main-stacksize= flag.
==24141== The main thread stack size used in this run was 8388608.

131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 0)
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue #481 ==24163== Invalid read of size 4
==24163== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24163== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24163== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24163== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24163== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24163== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24163== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24163== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24163== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24163== by 0x8062D5B: main (nginx.c:385)
==24163== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24163==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue #481 ==24163==
==24163== Process terminating with default action of signal 11 (SIGSEGV)
==24163== Access not within mapped region at address 0x0
==24163== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24163== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24163== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24163== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24163== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24163== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==24163== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==24163== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24163== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24163== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24163== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24163== by 0x8062D5B: main (nginx.c:385)
==24163== If you believe this happened as a result of a stack
==24163== overflow in your program's main thread (unlikely but
==24163== possible), you can try to increase the size of the
==24163== main thread stack using the --main-stacksize= flag.
==24163== The main thread stack size used in this run was 8388608.

131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 1)
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - Can't connect to 127.0.0.1:1984: Connection refused ==24172== Invalid read of size 4
==24172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24172== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24172== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24172== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24172== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24172== by 0x8062D5B: main (nginx.c:385)
==24172== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24172==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - Can't connect to 127.0.0.1:1984: Connection refused ==24172==
==24172== Process terminating with default action of signal 11 (SIGSEGV)
==24172== Access not within mapped region at address 0x0
==24172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24172== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24172== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24172== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24172== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24172== by 0x8062D5B: main (nginx.c:385)
==24172== If you believe this happened as a result of a stack
==24172== overflow in your program's main thread (unlikely but
==24172== possible), you can try to increase the size of the
==24172== main thread stack using the --main-stacksize= flag.
==24172== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-"}1, 2)
-'{1, 2)
'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - Can't connect to 127.0.0.1:1984: Connection refused ==24173== Invalid read of size 4
==24173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24173== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24173== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24173== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24173== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24173== by 0x8062D5B: main (nginx.c:385)
==24173== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24173==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - Can't connect to 127.0.0.1:1984: Connection refused ==24173==
==24173== Process terminating with default action of signal 11 (SIGSEGV)
==24173== Access not within mapped region at address 0x0
==24173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24173== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24173== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24173== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24173== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24173== by 0x8062D5B: main (nginx.c:385)
==24173== If you believe this happened as a result of a stack
==24173== overflow in your program's main thread (unlikely but
==24173== possible), you can try to increase the size of the
==24173== main thread stack using the --main-stacksize= flag.
==24173== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-"}1, 2)
-'{1, 2)
'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - Can't connect to 127.0.0.1:1984: Connection refused ==24182== Invalid read of size 4
==24182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24182== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24182== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24182== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24182== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24182== by 0x8062D5B: main (nginx.c:385)
==24182== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24182==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - Can't connect to 127.0.0.1:1984: Connection refused ==24182==
==24182== Process terminating with default action of signal 11 (SIGSEGV)
==24182== Access not within mapped region at address 0x0
==24182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24182== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24182== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24182== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24182== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24182== by 0x8062D5B: main (nginx.c:385)
==24182== If you believe this happened as a result of a stack
==24182== overflow in your program's main thread (unlikely but
==24182== possible), you can try to increase the size of the
==24182== main thread stack using the --main-stacksize= flag.
==24182== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - Can't connect to 127.0.0.1:1984: Connection refused ==24183== Invalid read of size 4
==24183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24183== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24183== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24183== by 0x8062D5B: main (nginx.c:385)
==24183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - Can't connect to 127.0.0.1:1984: Connection refused ==24183==
==24183== Process terminating with default action of signal 11 (SIGSEGV)
==24183== Access not within mapped region at address 0x0
==24183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24183== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24183== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24183== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24183== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24183== by 0x8062D5B: main (nginx.c:385)
==24183== If you believe this happened as a result of a stack
==24183== overflow in your program's main thread (unlikely but
==24183== possible), you can try to increase the size of the
==24183== main thread stack using the --main-stacksize= flag.
==24183== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
132-lua-blocks.t TEST 8: all in one ==24195== Invalid read of size 4
==24195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24195== by 0x8062D5B: main (nginx.c:385)
==24195== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24195==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 8: all in one ==24195==
==24195== Process terminating with default action of signal 11 (SIGSEGV)
==24195== Access not within mapped region at address 0x0
==24195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24195== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24195== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24195== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24195== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24195== by 0x8062D5B: main (nginx.c:385)
==24195== If you believe this happened as a result of a stack
==24195== overflow in your program's main thread (unlikely but
==24195== possible), you can try to increase the size of the
==24195== main thread stack using the --main-stacksize= flag.
==24195== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 8: all in one - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 8: all in one - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-}content{
-glob: init by lua }here{, init worker }here{
'
132-lua-blocks.t TEST 8: all in one ==24216== Invalid read of size 4
==24216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24216== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24216== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24216== by 0x8062D5B: main (nginx.c:385)
==24216== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24216==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 8: all in one ==24216==
==24216== Process terminating with default action of signal 11 (SIGSEGV)
==24216== Access not within mapped region at address 0x0
==24216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24216== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24216== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24216== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24216== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24216== by 0x8062D5B: main (nginx.c:385)
==24216== If you believe this happened as a result of a stack
==24216== overflow in your program's main thread (unlikely but
==24216== possible), you can try to increase the size of the
==24216== main thread stack using the --main-stacksize= flag.
==24216== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 8: all in one - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 8: all in one - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-}content{
-glob: init by lua }here{, init worker }here{
'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==24225== Invalid read of size 4
==24225== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24225== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24225== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24225== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24225== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24225== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24225== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24225== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24225== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24225== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24225== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24225== by 0x8062D5B: main (nginx.c:385)
==24225== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24225==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==24225==
==24225== Process terminating with default action of signal 11 (SIGSEGV)
==24225== Access not within mapped region at address 0x0
==24225== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24225== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24225== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24225== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24225== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24225== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24225== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24225== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24225== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24225== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24225== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24225== by 0x8062D5B: main (nginx.c:385)
==24225== If you believe this happened as a result of a stack
==24225== overflow in your program's main thread (unlikely but
==24225== possible), you can try to increase the size of the
==24225== main thread stack using the --main-stacksize= flag.
==24225== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==24226== Invalid read of size 4
==24226== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24226== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24226== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24226== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24226== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24226== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24226== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24226== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24226== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24226== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24226== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24226== by 0x8062D5B: main (nginx.c:385)
==24226== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24226==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==24226==
==24226== Process terminating with default action of signal 11 (SIGSEGV)
==24226== Access not within mapped region at address 0x0
==24226== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24226== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24226== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24226== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24226== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24226== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24226== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24226== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24226== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24226== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24226== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24226== by 0x8062D5B: main (nginx.c:385)
==24226== If you believe this happened as a result of a stack
==24226== overflow in your program's main thread (unlikely but
==24226== possible), you can try to increase the size of the
==24226== main thread stack using the --main-stacksize= flag.
==24226== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) ==24238== Invalid read of size 4
==24238== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24238== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24238== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24238== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24238== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24238== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24238== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24238== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24238== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24238== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24238== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24238== by 0x8062D5B: main (nginx.c:385)
==24238== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24238==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) ==24238==
==24238== Process terminating with default action of signal 11 (SIGSEGV)
==24238== Access not within mapped region at address 0x0
==24238== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24238== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24238== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24238== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24238== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24238== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24238== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24238== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24238== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24238== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24238== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24238== by 0x8062D5B: main (nginx.c:385)
==24238== If you believe this happened as a result of a stack
==24238== overflow in your program's main thread (unlikely but
==24238== possible), you can try to increase the size of the
==24238== main thread stack using the --main-stacksize= flag.
==24238== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-}1, 2)
-{1, 2)
'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) ==24259== Invalid read of size 4
==24259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24259== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24259== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24259== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24259== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24259== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24259== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24259== by 0x8062D5B: main (nginx.c:385)
==24259== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24259==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) ==24259==
==24259== Process terminating with default action of signal 11 (SIGSEGV)
==24259== Access not within mapped region at address 0x0
==24259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24259== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24259== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24259== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24259== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24259== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24259== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24259== by 0x8062D5B: main (nginx.c:385)
==24259== If you believe this happened as a result of a stack
==24259== overflow in your program's main thread (unlikely but
==24259== possible), you can try to increase the size of the
==24259== main thread stack using the --main-stacksize= flag.
==24259== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-}1, 2)
-{1, 2)
'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) ==24279== Invalid read of size 4
==24279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24279== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24279== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24279== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24279== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24279== by 0x8062D5B: main (nginx.c:385)
==24279== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24279==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) ==24279==
==24279== Process terminating with default action of signal 11 (SIGSEGV)
==24279== Access not within mapped region at address 0x0
==24279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24279== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24279== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24279== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24279== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24279== by 0x8062D5B: main (nginx.c:385)
==24279== If you believe this happened as a result of a stack
==24279== overflow in your program's main thread (unlikely but
==24279== possible), you can try to increase the size of the
==24279== main thread stack using the --main-stacksize= flag.
==24279== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) ==24300== Invalid read of size 4
==24300== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24300== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24300== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24300== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24300== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24300== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24300== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24300== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24300== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24300== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24300== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24300== by 0x8062D5B: main (nginx.c:385)
==24300== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24300==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) ==24300==
==24300== Process terminating with default action of signal 11 (SIGSEGV)
==24300== Access not within mapped region at address 0x0
==24300== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24300== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24300== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24300== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24300== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24300== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24300== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24300== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24300== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24300== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24300== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24300== by 0x8062D5B: main (nginx.c:385)
==24300== If you believe this happened as a result of a stack
==24300== overflow in your program's main thread (unlikely but
==24300== possible), you can try to increase the size of the
==24300== main thread stack using the --main-stacksize= flag.
==24300== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - Can't connect to 127.0.0.1:1984: Connection refused ==24309== Invalid read of size 4
==24309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24309== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24309== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24309== by 0x8062D5B: main (nginx.c:385)
==24309== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24309==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - Can't connect to 127.0.0.1:1984: Connection refused ==24309==
==24309== Process terminating with default action of signal 11 (SIGSEGV)
==24309== Access not within mapped region at address 0x0
==24309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24309== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24309== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24309== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24309== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24309== by 0x8062D5B: main (nginx.c:385)
==24309== If you believe this happened as a result of a stack
==24309== overflow in your program's main thread (unlikely but
==24309== possible), you can try to increase the size of the
==24309== main thread stack using the --main-stacksize= flag.
==24309== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-a.dogs[1] = 32
-a.dogs[2] = 78
-a.dogs[3] = 96
-a.cat = kitty
'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - Can't connect to 127.0.0.1:1984: Connection refused ==24310== Invalid read of size 4
==24310== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24310== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24310== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24310== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24310== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24310== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24310== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24310== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24310== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24310== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24310== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24310== by 0x8062D5B: main (nginx.c:385)
==24310== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24310==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - Can't connect to 127.0.0.1:1984: Connection refused ==24310==
==24310== Process terminating with default action of signal 11 (SIGSEGV)
==24310== Access not within mapped region at address 0x0
==24310== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24310== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24310== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24310== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24310== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24310== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24310== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24310== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24310== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24310== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24310== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24310== by 0x8062D5B: main (nginx.c:385)
==24310== If you believe this happened as a result of a stack
==24310== overflow in your program's main thread (unlikely but
==24310== possible), you can try to increase the size of the
==24310== main thread stack using the --main-stacksize= flag.
==24310== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-a.dogs[1] = 32
-a.dogs[2] = 78
-a.dogs[3] = 96
-a.cat = kitty
'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - Can't connect to 127.0.0.1:1984: Connection refused ==24319== Invalid read of size 4
==24319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24319== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24319== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24319== by 0x8062D5B: main (nginx.c:385)
==24319== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24319==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - Can't connect to 127.0.0.1:1984: Connection refused ==24319==
==24319== Process terminating with default action of signal 11 (SIGSEGV)
==24319== Access not within mapped region at address 0x0
==24319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24319== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24319== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24319== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24319== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24319== by 0x8062D5B: main (nginx.c:385)
==24319== If you believe this happened as a result of a stack
==24319== overflow in your program's main thread (unlikely but
==24319== possible), you can try to increase the size of the
==24319== main thread stack using the --main-stacksize= flag.
==24319== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - Can't connect to 127.0.0.1:1984: Connection refused ==24320== Invalid read of size 4
==24320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24320== by 0x8062D5B: main (nginx.c:385)
==24320== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24320==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - Can't connect to 127.0.0.1:1984: Connection refused ==24320==
==24320== Process terminating with default action of signal 11 (SIGSEGV)
==24320== Access not within mapped region at address 0x0
==24320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24320== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24320== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24320== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24320== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24320== by 0x8062D5B: main (nginx.c:385)
==24320== If you believe this happened as a result of a stack
==24320== overflow in your program's main thread (unlikely but
==24320== possible), you can try to increase the size of the
==24320== main thread stack using the --main-stacksize= flag.
==24320== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) ==24332== Invalid read of size 4
==24332== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24332== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24332== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24332== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24332== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24332== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24332== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24332== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24332== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24332== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24332== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24332== by 0x8062D5B: main (nginx.c:385)
==24332== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24332==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 14: content_by_lua_block (compact) ==24332==
==24332== Process terminating with default action of signal 11 (SIGSEGV)
==24332== Access not within mapped region at address 0x0
==24332== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24332== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24332== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24332== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24332== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24332== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24332== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24332== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24332== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24332== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24332== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24332== by 0x8062D5B: main (nginx.c:385)
==24332== If you believe this happened as a result of a stack
==24332== overflow in your program's main thread (unlikely but
==24332== possible), you can try to increase the size of the
==24332== main thread stack using the --main-stacksize= flag.
==24332== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 14: content_by_lua_block (compact) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world!
'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) ==24353== Invalid read of size 4
==24353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24353== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24353== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24353== by 0x8062D5B: main (nginx.c:385)
==24353== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24353==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 14: content_by_lua_block (compact) ==24353==
==24353== Process terminating with default action of signal 11 (SIGSEGV)
==24353== Access not within mapped region at address 0x0
==24353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24353== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24353== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24353== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24353== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24353== by 0x8062D5B: main (nginx.c:385)
==24353== If you believe this happened as a result of a stack
==24353== overflow in your program's main thread (unlikely but
==24353== possible), you can try to increase the size of the
==24353== main thread stack using the --main-stacksize= flag.
==24353== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 14: content_by_lua_block (compact) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world!
'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub #596) ==24365== Invalid read of size 4
==24365== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24365== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24365== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24365== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24365== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24365== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24365== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24365== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24365== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24365== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24365== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24365== by 0x8062D5B: main (nginx.c:385)
==24365== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24365==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub #596) ==24365==
==24365== Process terminating with default action of signal 11 (SIGSEGV)
==24365== Access not within mapped region at address 0x0
==24365== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24365== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24365== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24365== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24365== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24365== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24365== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24365== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24365== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24365== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24365== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24365== by 0x8062D5B: main (nginx.c:385)
==24365== If you believe this happened as a result of a stack
==24365== overflow in your program's main thread (unlikely but
==24365== possible), you can try to increase the size of the
==24365== main thread stack using the --main-stacksize= flag.
==24365== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-ok--
-ok--
-ok--
-done
'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub #596) ==24386== Invalid read of size 4
==24386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24386== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24386== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24386== by 0x8062D5B: main (nginx.c:385)
==24386== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24386==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub #596) ==24386==
==24386== Process terminating with default action of signal 11 (SIGSEGV)
==24386== Access not within mapped region at address 0x0
==24386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24386== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24386== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24386== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24386== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24386== by 0x8062D5B: main (nginx.c:385)
==24386== If you believe this happened as a result of a stack
==24386== overflow in your program's main thread (unlikely but
==24386== possible), you can try to increase the size of the
==24386== main thread stack using the --main-stacksize= flag.
==24386== The main thread stack size used in this run was 8388608.

132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-ok--
-ok--
-ok--
-done
'
133-worker-count.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==24395== Invalid read of size 4
==24395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24395== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24395== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24395== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24395== by 0x8062D5B: main (nginx.c:385)
==24395== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24395==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
133-worker-count.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==24395==
==24395== Process terminating with default action of signal 11 (SIGSEGV)
==24395== Access not within mapped region at address 0x0
==24395== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24395== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24395== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24395== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24395== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24395== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24395== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24395== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24395== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24395== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24395== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24395== by 0x8062D5B: main (nginx.c:385)
==24395== If you believe this happened as a result of a stack
==24395== overflow in your program's main thread (unlikely but
==24395== possible), you can try to increase the size of the
==24395== main thread stack using the --main-stacksize= flag.
==24395== The main thread stack size used in this run was 8388608.

133-worker-count.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
133-worker-count.t TEST 1: content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "workers: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
133-worker-count.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==24396== Invalid read of size 4
==24396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24396== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24396== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24396== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24396== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24396== by 0x8062D5B: main (nginx.c:385)
==24396== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24396==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
133-worker-count.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==24396==
==24396== Process terminating with default action of signal 11 (SIGSEGV)
==24396== Access not within mapped region at address 0x0
==24396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24396== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24396== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24396== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24396== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24396== by 0x8062D5B: main (nginx.c:385)
==24396== If you believe this happened as a result of a stack
==24396== overflow in your program's main thread (unlikely but
==24396== possible), you can try to increase the size of the
==24396== main thread stack using the --main-stacksize= flag.
==24396== The main thread stack size used in this run was 8388608.

133-worker-count.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
133-worker-count.t TEST 1: content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "workers: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
134-worker-count-5.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24407== Invalid read of size 4
==24407== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24407== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24407== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24407== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24407== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24407== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24407== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24407== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24407== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24407== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24407== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24407== by 0x8062D5B: main (nginx.c:385)
==24407== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24407==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
134-worker-count-5.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24407==
==24407== Process terminating with default action of signal 11 (SIGSEGV)
==24407== Access not within mapped region at address 0x0
==24407== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24407== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24407== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24407== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24407== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24407== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24407== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24407== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24407== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24407== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24407== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24407== by 0x8062D5B: main (nginx.c:385)
==24407== If you believe this happened as a result of a stack
==24407== overflow in your program's main thread (unlikely but
==24407== possible), you can try to increase the size of the
==24407== main thread stack using the --main-stacksize= flag.
==24407== The main thread stack size used in this run was 8388608.

134-worker-count-5.t TEST 1: sanity - status code ok got: ''
expected: '200'
134-worker-count-5.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "worker count: 5\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
134-worker-count-5.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24408== Invalid read of size 4
==24408== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24408== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24408== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24408== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24408== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24408== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24408== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24408== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24408== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24408== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24408== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24408== by 0x8062D5B: main (nginx.c:385)
==24408== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24408==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
134-worker-count-5.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24408==
==24408== Process terminating with default action of signal 11 (SIGSEGV)
==24408== Access not within mapped region at address 0x0
==24408== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24408== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24408== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24408== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24408== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24408== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24408== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24408== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24408== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24408== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24408== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24408== by 0x8062D5B: main (nginx.c:385)
==24408== If you believe this happened as a result of a stack
==24408== overflow in your program's main thread (unlikely but
==24408== possible), you can try to increase the size of the
==24408== main thread stack using the --main-stacksize= flag.
==24408== The main thread stack size used in this run was 8388608.

134-worker-count-5.t TEST 1: sanity - status code ok got: ''
expected: '200'
134-worker-count-5.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "worker count: 5\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
135-worker-id.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24419== Invalid read of size 4
==24419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24419== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24419== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24419== by 0x8062D5B: main (nginx.c:385)
==24419== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24419==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
135-worker-id.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24419==
==24419== Process terminating with default action of signal 11 (SIGSEGV)
==24419== Access not within mapped region at address 0x0
==24419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24419== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24419== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24419== by 0x8062D5B: main (nginx.c:385)
==24419== If you believe this happened as a result of a stack
==24419== overflow in your program's main thread (unlikely but
==24419== possible), you can try to increase the size of the
==24419== main thread stack using the --main-stacksize= flag.
==24419== The main thread stack size used in this run was 8388608.

135-worker-id.t TEST 1: sanity - status code ok got: ''
expected: '200'
135-worker-id.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^worker id: [0-1]$)'
135-worker-id.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24420== Invalid read of size 4
==24420== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24420== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24420== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24420== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24420== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24420== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24420== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24420== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24420== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24420== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24420== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24420== by 0x8062D5B: main (nginx.c:385)
==24420== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24420==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
135-worker-id.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==24420==
==24420== Process terminating with default action of signal 11 (SIGSEGV)
==24420== Access not within mapped region at address 0x0
==24420== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24420== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24420== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24420== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24420== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24420== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24420== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24420== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24420== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24420== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24420== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24420== by 0x8062D5B: main (nginx.c:385)
==24420== If you believe this happened as a result of a stack
==24420== overflow in your program's main thread (unlikely but
==24420== possible), you can try to increase the size of the
==24420== main thread stack using the --main-stacksize= flag.
==24420== The main thread stack size used in this run was 8388608.

135-worker-id.t TEST 1: sanity - status code ok got: ''
expected: '200'
135-worker-id.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^worker id: [0-1]$)'
136-timer-counts.t TEST 2: running count with no pending timers - Can't connect to 127.0.0.1:1984: Connection refused ==24430== Invalid read of size 4
==24430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24430== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24430== by 0x8062D5B: main (nginx.c:385)
==24430== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24430==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
136-timer-counts.t TEST 2: running count with no pending timers - Can't connect to 127.0.0.1:1984: Connection refused ==24430==
==24430== Process terminating with default action of signal 11 (SIGSEGV)
==24430== Access not within mapped region at address 0x0
==24430== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24430== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24430== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24430== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24430== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24430== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24430== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24430== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24430== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24430== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24430== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24430== by 0x8062D5B: main (nginx.c:385)
==24430== If you believe this happened as a result of a stack
==24430== overflow in your program's main thread (unlikely but
==24430== possible), you can try to increase the size of the
==24430== main thread stack using the --main-stacksize= flag.
==24430== The main thread stack size used in this run was 8388608.

136-timer-counts.t TEST 2: running count with no pending timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 2: running count with no pending timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "0\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 1: running count with no running timers ==24442== Invalid read of size 4
==24442== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24442== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24442== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24442== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24442== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24442== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24442== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24442== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24442== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24442== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24442== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24442== by 0x8062D5B: main (nginx.c:385)
==24442== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24442==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
136-timer-counts.t TEST 1: running count with no running timers ==24442==
==24442== Process terminating with default action of signal 11 (SIGSEGV)
==24442== Access not within mapped region at address 0x0
==24442== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24442== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24442== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24442== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24442== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24442== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24442== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24442== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24442== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24442== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24442== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24442== by 0x8062D5B: main (nginx.c:385)
==24442== If you believe this happened as a result of a stack
==24442== overflow in your program's main thread (unlikely but
==24442== possible), you can try to increase the size of the
==24442== main thread stack using the --main-stacksize= flag.
==24442== The main thread stack size used in this run was 8388608.

136-timer-counts.t TEST 1: running count with no running timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 1: running count with no running timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "0\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 3: pending count with one pending timer ==24473== Invalid read of size 4
==24473== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24473== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24473== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24473== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24473== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24473== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24473== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24473== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24473== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24473== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24473== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24473== by 0x8062D5B: main (nginx.c:385)
==24473== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24473==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
136-timer-counts.t TEST 3: pending count with one pending timer ==24473==
==24473== Process terminating with default action of signal 11 (SIGSEGV)
==24473== Access not within mapped region at address 0x0
==24473== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24473== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24473== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24473== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24473== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24473== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24473== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24473== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24473== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24473== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24473== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24473== by 0x8062D5B: main (nginx.c:385)
==24473== If you believe this happened as a result of a stack
==24473== overflow in your program's main thread (unlikely but
==24473== possible), you can try to increase the size of the
==24473== main thread stack using the --main-stacksize= flag.
==24473== The main thread stack size used in this run was 8388608.

136-timer-counts.t TEST 3: pending count with one pending timer - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 3: pending count with one pending timer - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 5: one running timer ==24506== Invalid read of size 4
==24506== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24506== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24506== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24506== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24506== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24506== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24506== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24506== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24506== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24506== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24506== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24506== by 0x8062D5B: main (nginx.c:385)
==24506== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24506==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
136-timer-counts.t TEST 5: one running timer ==24506==
==24506== Process terminating with default action of signal 11 (SIGSEGV)
==24506== Access not within mapped region at address 0x0
==24506== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24506== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24506== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24506== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24506== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24506== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24506== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24506== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24506== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24506== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24506== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24506== by 0x8062D5B: main (nginx.c:385)
==24506== If you believe this happened as a result of a stack
==24506== overflow in your program's main thread (unlikely but
==24506== possible), you can try to increase the size of the
==24506== main thread stack using the --main-stacksize= flag.
==24506== The main thread stack size used in this run was 8388608.

136-timer-counts.t TEST 5: one running timer - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 5: one running timer - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 6: 3 running timers ==24538== Invalid read of size 4
==24538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24538== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24538== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24538== by 0x8062D5B: main (nginx.c:385)
==24538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
136-timer-counts.t TEST 6: 3 running timers ==24538==
==24538== Process terminating with default action of signal 11 (SIGSEGV)
==24538== Access not within mapped region at address 0x0
==24538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24538== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24538== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24538== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24538== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24538== by 0x8062D5B: main (nginx.c:385)
==24538== If you believe this happened as a result of a stack
==24538== overflow in your program's main thread (unlikely but
==24538== possible), you can try to increase the size of the
==24538== main thread stack using the --main-stacksize= flag.
==24538== The main thread stack size used in this run was 8388608.

136-timer-counts.t TEST 6: 3 running timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 6: 3 running timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 4: pending count with 3 pending timers ==24570== Invalid read of size 4
==24570== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24570== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24570== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24570== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24570== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24570== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24570== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24570== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24570== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24570== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24570== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24570== by 0x8062D5B: main (nginx.c:385)
==24570== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24570==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
136-timer-counts.t TEST 4: pending count with 3 pending timers ==24570==
==24570== Process terminating with default action of signal 11 (SIGSEGV)
==24570== Access not within mapped region at address 0x0
==24570== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24570== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24570== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24570== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24570== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24570== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24570== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24570== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24570== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24570== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24570== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24570== by 0x8062D5B: main (nginx.c:385)
==24570== If you believe this happened as a result of a stack
==24570== overflow in your program's main thread (unlikely but
==24570== possible), you can try to increase the size of the
==24570== main thread stack using the --main-stacksize= flag.
==24570== The main thread stack size used in this run was 8388608.

136-timer-counts.t TEST 4: pending count with 3 pending timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 4: pending count with 3 pending timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
138-balancer.t TEST 2: exit 403 - Can't connect to 127.0.0.1:1984: Connection refused ==24599== Invalid read of size 4
==24599== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24599== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24599== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24599== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24599== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24599== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24599== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24599== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24599== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24599== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24599== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24599== by 0x8062D5B: main (nginx.c:385)
==24599== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24599==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 2: exit 403 - Can't connect to 127.0.0.1:1984: Connection refused ==24599==
==24599== Process terminating with default action of signal 11 (SIGSEGV)
==24599== Access not within mapped region at address 0x0
==24599== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24599== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24599== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24599== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24599== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24599== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24599== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24599== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24599== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24599== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24599== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24599== by 0x8062D5B: main (nginx.c:385)
==24599== If you believe this happened as a result of a stack
==24599== overflow in your program's main thread (unlikely but
==24599== possible), you can try to increase the size of the
==24599== main thread stack using the --main-stacksize= flag.
==24599== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 2: exit 403 - status code ok got: ''
expected: '200'
138-balancer.t TEST 2: exit 403 - Can't connect to 127.0.0.1:1984: Connection refused ==24600== Invalid read of size 4
==24600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24600== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24600== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24600== by 0x8062D5B: main (nginx.c:385)
==24600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 2: exit 403 - Can't connect to 127.0.0.1:1984: Connection refused ==24600==
==24600== Process terminating with default action of signal 11 (SIGSEGV)
==24600== Access not within mapped region at address 0x0
==24600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24600== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24600== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24600== by 0x8062D5B: main (nginx.c:385)
==24600== If you believe this happened as a result of a stack
==24600== overflow in your program's main thread (unlikely but
==24600== possible), you can try to increase the size of the
==24600== main thread stack using the --main-stacksize= flag.
==24600== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 2: exit 403 - status code ok got: ''
expected: '200'
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit ==24612== Invalid read of size 4
==24612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24612== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24612== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24612== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24612== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24612== by 0x8062D5B: main (nginx.c:385)
==24612== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24612==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit ==24612==
==24612== Process terminating with default action of signal 11 (SIGSEGV)
==24612== Access not within mapped region at address 0x0
==24612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24612== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24612== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24612== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24612== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24612== by 0x8062D5B: main (nginx.c:385)
==24612== If you believe this happened as a result of a stack
==24612== overflow in your program's main thread (unlikely but
==24612== possible), you can try to increase the size of the
==24612== main thread stack using the --main-stacksize= flag.
==24612== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - status code ok got: ''
expected: '200'
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit ==24633== Invalid read of size 4
==24633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24633== by 0x8062D5B: main (nginx.c:385)
==24633== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24633==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit ==24633==
==24633== Process terminating with default action of signal 11 (SIGSEGV)
==24633== Access not within mapped region at address 0x0
==24633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24633== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24633== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24633== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24633== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24633== by 0x8062D5B: main (nginx.c:385)
==24633== If you believe this happened as a result of a stack
==24633== overflow in your program's main thread (unlikely but
==24633== possible), you can try to increase the size of the
==24633== main thread stack using the --main-stacksize= flag.
==24633== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - status code ok got: ''
expected: '200'
138-balancer.t TEST 3: exit OK ==24645== Invalid read of size 4
==24645== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24645== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24645== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24645== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24645== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24645== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24645== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24645== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24645== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24645== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24645== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24645== by 0x8062D5B: main (nginx.c:385)
==24645== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24645==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 3: exit OK ==24645==
==24645== Process terminating with default action of signal 11 (SIGSEGV)
==24645== Access not within mapped region at address 0x0
==24645== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24645== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24645== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24645== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24645== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24645== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24645== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24645== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24645== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24645== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24645== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24645== by 0x8062D5B: main (nginx.c:385)
==24645== If you believe this happened as a result of a stack
==24645== overflow in your program's main thread (unlikely but
==24645== possible), you can try to increase the size of the
==24645== main thread stack using the --main-stacksize= flag.
==24645== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 3: exit OK - status code ok got: ''
expected: '200'
138-balancer.t TEST 3: exit OK ==24666== Invalid read of size 4
==24666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24666== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24666== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24666== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24666== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24666== by 0x8062D5B: main (nginx.c:385)
==24666== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24666==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 3: exit OK ==24666==
==24666== Process terminating with default action of signal 11 (SIGSEGV)
==24666== Access not within mapped region at address 0x0
==24666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24666== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24666== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24666== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24666== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24666== by 0x8062D5B: main (nginx.c:385)
==24666== If you believe this happened as a result of a stack
==24666== overflow in your program's main thread (unlikely but
==24666== possible), you can try to increase the size of the
==24666== main thread stack using the --main-stacksize= flag.
==24666== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 3: exit OK - status code ok got: ''
expected: '200'
138-balancer.t TEST 6: cosockets are disabled ==24678== Invalid read of size 4
==24678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24678== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24678== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24678== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24678== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24678== by 0x8062D5B: main (nginx.c:385)
==24678== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24678==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 6: cosockets are disabled ==24678==
==24678== Process terminating with default action of signal 11 (SIGSEGV)
==24678== Access not within mapped region at address 0x0
==24678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24678== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24678== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24678== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24678== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24678== by 0x8062D5B: main (nginx.c:385)
==24678== If you believe this happened as a result of a stack
==24678== overflow in your program's main thread (unlikely but
==24678== possible), you can try to increase the size of the
==24678== main thread stack using the --main-stacksize= flag.
==24678== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 6: cosockets are disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 6: cosockets are disabled ==24699== Invalid read of size 4
==24699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24699== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24699== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24699== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24699== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24699== by 0x8062D5B: main (nginx.c:385)
==24699== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24699==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 6: cosockets are disabled ==24699==
==24699== Process terminating with default action of signal 11 (SIGSEGV)
==24699== Access not within mapped region at address 0x0
==24699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24699== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24699== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24699== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24699== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24699== by 0x8062D5B: main (nginx.c:385)
==24699== If you believe this happened as a result of a stack
==24699== overflow in your program's main thread (unlikely but
==24699== possible), you can try to increase the size of the
==24699== main thread stack using the --main-stacksize= flag.
==24699== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 6: cosockets are disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 5: simple logging (by_lua_file) ==24711== Invalid read of size 4
==24711== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24711== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24711== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24711== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24711== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24711== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24711== by 0x8062D5B: main (nginx.c:385)
==24711== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 5: simple logging (by_lua_file) ==24711==
==24711== Process terminating with default action of signal 11 (SIGSEGV)
==24711== Access not within mapped region at address 0x0
==24711== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24711== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24711== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24711== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24711== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24711== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24711== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24711== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24711== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24711== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24711== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24711== by 0x8062D5B: main (nginx.c:385)
==24711== If you believe this happened as a result of a stack
==24711== overflow in your program's main thread (unlikely but
==24711== possible), you can try to increase the size of the
==24711== main thread stack using the --main-stacksize= flag.
==24711== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 5: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
138-balancer.t TEST 5: simple logging (by_lua_file) ==24732== Invalid read of size 4
==24732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24732== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24732== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24732== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24732== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24732== by 0x8062D5B: main (nginx.c:385)
==24732== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24732==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 5: simple logging (by_lua_file) ==24732==
==24732== Process terminating with default action of signal 11 (SIGSEGV)
==24732== Access not within mapped region at address 0x0
==24732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24732== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24732== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24732== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24732== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24732== by 0x8062D5B: main (nginx.c:385)
==24732== If you believe this happened as a result of a stack
==24732== overflow in your program's main thread (unlikely but
==24732== possible), you can try to increase the size of the
==24732== main thread stack using the --main-stacksize= flag.
==24732== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 5: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix ==24745== Invalid read of size 4
==24745== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24745== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24745== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24745== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24745== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24745== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24745== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24745== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24745== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24745== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24745== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24745== by 0x8062D5B: main (nginx.c:385)
==24745== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24745==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 11: set_more_tries bugfix ==24745==
==24745== Process terminating with default action of signal 11 (SIGSEGV)
==24745== Access not within mapped region at address 0x0
==24745== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24745== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24745== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24745== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24745== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24745== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24745== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24745== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24745== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24745== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24745== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24745== by 0x8062D5B: main (nginx.c:385)
==24745== If you believe this happened as a result of a stack
==24745== overflow in your program's main thread (unlikely but
==24745== possible), you can try to increase the size of the
==24745== main thread stack using the --main-stacksize= flag.
==24745== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 11: set_more_tries bugfix - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:12:39 [alert] 24598\#0: worker process 24745 exited on signal 11" (req 0) 2020/10/27 05:12:39 [debug] 24598\#0: shmtx forced unlock
2020/10/27 05:12:39 [debug] 24598\#0: wake up, sigio 0
2020/10/27 05:12:39 [debug] 24598\#0: reap children
2020/10/27 05:12:39 [debug] 24598\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:12:39 [debug] 24598\#0: child: 1 24745 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:12:39 [debug] 24598\#0: channel 3:4
2020/10/27 05:12:39 [notice] 24598\#0: start worker process 24766
'
138-balancer.t TEST 11: set_more_tries bugfix ==24766== Invalid read of size 4
==24766== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24766== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24766== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24766== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24766== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24766== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24766== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24766== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24766== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24766== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24766== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24766== by 0x8062D5B: main (nginx.c:385)
==24766== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24766==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 11: set_more_tries bugfix ==24766==
==24766== Process terminating with default action of signal 11 (SIGSEGV)
==24766== Access not within mapped region at address 0x0
==24766== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24766== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24766== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24766== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24766== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24766== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24766== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24766== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24766== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24766== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24766== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24766== by 0x8062D5B: main (nginx.c:385)
==24766== If you believe this happened as a result of a stack
==24766== overflow in your program's main thread (unlikely but
==24766== possible), you can try to increase the size of the
==24766== main thread stack using the --main-stacksize= flag.
==24766== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 11: set_more_tries bugfix - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:12:39 [alert] 24598\#0: worker process 24766 exited on signal 11" (req 1) 2020/10/27 05:12:39 [debug] 24598\#0: shmtx forced unlock
2020/10/27 05:12:39 [debug] 24598\#0: wake up, sigio 0
2020/10/27 05:12:39 [debug] 24598\#0: reap children
2020/10/27 05:12:39 [debug] 24598\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:12:39 [debug] 24598\#0: child: 1 24766 e:0 t:1 d:0 r:1 j:0
'
138-balancer.t TEST 1: simple logging ==24778== Invalid read of size 4
==24778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24778== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24778== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24778== by 0x8062D5B: main (nginx.c:385)
==24778== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24778==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 1: simple logging ==24778==
==24778== Process terminating with default action of signal 11 (SIGSEGV)
==24778== Access not within mapped region at address 0x0
==24778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24778== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24778== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24778== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24778== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24778== by 0x8062D5B: main (nginx.c:385)
==24778== If you believe this happened as a result of a stack
==24778== overflow in your program's main thread (unlikely but
==24778== possible), you can try to increase the size of the
==24778== main thread stack using the --main-stacksize= flag.
==24778== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 1: simple logging - status code ok got: ''
expected: '200'
138-balancer.t TEST 1: simple logging ==24799== Invalid read of size 4
==24799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24799== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24799== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24799== by 0x8062D5B: main (nginx.c:385)
==24799== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24799==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 1: simple logging ==24799==
==24799== Process terminating with default action of signal 11 (SIGSEGV)
==24799== Access not within mapped region at address 0x0
==24799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24799== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24799== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24799== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24799== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24799== by 0x8062D5B: main (nginx.c:385)
==24799== If you believe this happened as a result of a stack
==24799== overflow in your program's main thread (unlikely but
==24799== possible), you can try to increase the size of the
==24799== main thread stack using the --main-stacksize= flag.
==24799== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 1: simple logging - status code ok got: ''
expected: '200'
138-balancer.t TEST 4: ngx.var works ==24811== Invalid read of size 4
==24811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24811== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24811== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24811== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24811== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24811== by 0x8062D5B: main (nginx.c:385)
==24811== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 4: ngx.var works ==24811==
==24811== Process terminating with default action of signal 11 (SIGSEGV)
==24811== Access not within mapped region at address 0x0
==24811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24811== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24811== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24811== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24811== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24811== by 0x8062D5B: main (nginx.c:385)
==24811== If you believe this happened as a result of a stack
==24811== overflow in your program's main thread (unlikely but
==24811== possible), you can try to increase the size of the
==24811== main thread stack using the --main-stacksize= flag.
==24811== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 4: ngx.var works - status code ok got: ''
expected: '200'
138-balancer.t TEST 4: ngx.var works ==24832== Invalid read of size 4
==24832== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24832== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24832== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24832== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24832== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24832== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24832== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24832== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24832== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24832== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24832== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24832== by 0x8062D5B: main (nginx.c:385)
==24832== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24832==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 4: ngx.var works ==24832==
==24832== Process terminating with default action of signal 11 (SIGSEGV)
==24832== Access not within mapped region at address 0x0
==24832== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24832== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24832== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24832== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24832== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24832== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24832== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24832== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24832== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24832== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24832== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24832== by 0x8062D5B: main (nginx.c:385)
==24832== If you believe this happened as a result of a stack
==24832== overflow in your program's main thread (unlikely but
==24832== possible), you can try to increase the size of the
==24832== main thread stack using the --main-stacksize= flag.
==24832== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 4: ngx.var works - status code ok got: ''
expected: '200'
138-balancer.t TEST 7: ngx.sleep is disabled ==24844== Invalid read of size 4
==24844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24844== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24844== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24844== by 0x8062D5B: main (nginx.c:385)
==24844== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24844==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 7: ngx.sleep is disabled ==24844==
==24844== Process terminating with default action of signal 11 (SIGSEGV)
==24844== Access not within mapped region at address 0x0
==24844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24844== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24844== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24844== by 0x8062D5B: main (nginx.c:385)
==24844== If you believe this happened as a result of a stack
==24844== overflow in your program's main thread (unlikely but
==24844== possible), you can try to increase the size of the
==24844== main thread stack using the --main-stacksize= flag.
==24844== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 7: ngx.sleep is disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 7: ngx.sleep is disabled ==24865== Invalid read of size 4
==24865== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24865== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24865== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24865== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24865== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24865== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24865== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24865== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24865== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24865== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24865== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24865== by 0x8062D5B: main (nginx.c:385)
==24865== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24865==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 7: ngx.sleep is disabled ==24865==
==24865== Process terminating with default action of signal 11 (SIGSEGV)
==24865== Access not within mapped region at address 0x0
==24865== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24865== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24865== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24865== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24865== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24865== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24865== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24865== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24865== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24865== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24865== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24865== by 0x8062D5B: main (nginx.c:385)
==24865== If you believe this happened as a result of a stack
==24865== overflow in your program's main thread (unlikely but
==24865== possible), you can try to increase the size of the
==24865== main thread stack using the --main-stacksize= flag.
==24865== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 7: ngx.sleep is disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 8: get_phase ==24877== Invalid read of size 4
==24877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24877== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24877== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24877== by 0x8062D5B: main (nginx.c:385)
==24877== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24877==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 8: get_phase ==24877==
==24877== Process terminating with default action of signal 11 (SIGSEGV)
==24877== Access not within mapped region at address 0x0
==24877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24877== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24877== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24877== by 0x8062D5B: main (nginx.c:385)
==24877== If you believe this happened as a result of a stack
==24877== overflow in your program's main thread (unlikely but
==24877== possible), you can try to increase the size of the
==24877== main thread stack using the --main-stacksize= flag.
==24877== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 8: get_phase - status code ok got: ''
expected: '200'
138-balancer.t TEST 8: get_phase ==24898== Invalid read of size 4
==24898== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24898== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24898== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24898== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24898== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24898== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24898== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24898== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24898== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24898== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24898== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24898== by 0x8062D5B: main (nginx.c:385)
==24898== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24898==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 8: get_phase ==24898==
==24898== Process terminating with default action of signal 11 (SIGSEGV)
==24898== Access not within mapped region at address 0x0
==24898== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24898== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24898== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24898== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24898== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24898== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24898== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24898== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24898== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24898== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24898== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24898== by 0x8062D5B: main (nginx.c:385)
==24898== If you believe this happened as a result of a stack
==24898== overflow in your program's main thread (unlikely but
==24898== possible), you can try to increase the size of the
==24898== main thread stack using the --main-stacksize= flag.
==24898== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 8: get_phase - status code ok got: ''
expected: '200'
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github #816 ==24910== Invalid read of size 4
==24910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24910== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24910== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24910== by 0x8062D5B: main (nginx.c:385)
==24910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github #816 ==24910==
==24910== Process terminating with default action of signal 11 (SIGSEGV)
==24910== Access not within mapped region at address 0x0
==24910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24910== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24910== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24910== by 0x8062D5B: main (nginx.c:385)
==24910== If you believe this happened as a result of a stack
==24910== overflow in your program's main thread (unlikely but
==24910== possible), you can try to increase the size of the
==24910== main thread stack using the --main-stacksize= flag.
==24910== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - status code ok got: ''
expected: '200'
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github #816 ==24931== Invalid read of size 4
==24931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24931== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24931== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24931== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24931== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24931== by 0x8062D5B: main (nginx.c:385)
==24931== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24931==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github #816 ==24931==
==24931== Process terminating with default action of signal 11 (SIGSEGV)
==24931== Access not within mapped region at address 0x0
==24931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24931== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24931== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24931== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24931== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24931== by 0x8062D5B: main (nginx.c:385)
==24931== If you believe this happened as a result of a stack
==24931== overflow in your program's main thread (unlikely but
==24931== possible), you can try to increase the size of the
==24931== main thread stack using the --main-stacksize= flag.
==24931== The main thread stack size used in this run was 8388608.

138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==24941== Invalid read of size 4
==24941== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24941== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24941== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24941== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24941== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24941== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24941== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24941== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24941== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24941== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24941== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24941== by 0x8062D5B: main (nginx.c:385)
==24941== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24941==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==24941==
==24941== Process terminating with default action of signal 11 (SIGSEGV)
==24941== Access not within mapped region at address 0x0
==24941== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24941== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24941== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24941== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24941== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24941== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24941== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24941== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24941== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24941== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24941== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==24941== by 0x8062D5B: main (nginx.c:385)
==24941== If you believe this happened as a result of a stack
==24941== overflow in your program's main thread (unlikely but
==24941== possible), you can try to increase the size of the
==24941== main thread stack using the --main-stacksize= flag.
==24941== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 18: check the count of running timers - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:03 [alert] 24940\#0: worker process 24941 exited on signal 11" (req 0) 2020/10/27 05:13:03 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:03 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:03 [debug] 24940\#0: reap children
2020/10/27 05:13:03 [debug] 24940\#0: child: 0 24941 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:03 [debug] 24940\#0: channel 3:10
2020/10/27 05:13:03 [notice] 24940\#0: start worker process 24942
'
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==24942== Invalid read of size 4
==24942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24942== by 0x8062D5B: main (nginx.c:385)
==24942== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24942==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==24942==
==24942== Process terminating with default action of signal 11 (SIGSEGV)
==24942== Access not within mapped region at address 0x0
==24942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24942== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24942== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24942== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24942== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24942== by 0x8062D5B: main (nginx.c:385)
==24942== If you believe this happened as a result of a stack
==24942== overflow in your program's main thread (unlikely but
==24942== possible), you can try to increase the size of the
==24942== main thread stack using the --main-stacksize= flag.
==24942== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 18: check the count of running timers - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:05 [alert] 24940\#0: worker process 24942 exited on signal 11" (req 1) 2020/10/27 05:13:05 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:05 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:05 [debug] 24940\#0: reap children
2020/10/27 05:13:05 [debug] 24940\#0: child: 0 24942 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:05 [debug] 24940\#0: channel 3:10
2020/10/27 05:13:05 [notice] 24940\#0: start worker process 24943
'
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==24943== Invalid read of size 4
==24943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24943== by 0x8062D5B: main (nginx.c:385)
==24943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==24943==
==24943== Process terminating with default action of signal 11 (SIGSEGV)
==24943== Access not within mapped region at address 0x0
==24943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24943== by 0x8062D5B: main (nginx.c:385)
==24943== If you believe this happened as a result of a stack
==24943== overflow in your program's main thread (unlikely but
==24943== possible), you can try to increase the size of the
==24943== main thread stack using the --main-stacksize= flag.
==24943== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 18: check the count of running timers - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:06 [alert] 24940\#0: worker process 24943 exited on signal 11" (req 2) 2020/10/27 05:13:06 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:06 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:06 [debug] 24940\#0: reap children
2020/10/27 05:13:06 [debug] 24940\#0: child: 0 24943 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:06 [debug] 24940\#0: channel 3:10
2020/10/27 05:13:06 [notice] 24940\#0: start worker process 24944
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield ==24955== Invalid read of size 4
==24955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24955== by 0x8062D5B: main (nginx.c:385)
==24955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield ==24955==
==24955== Process terminating with default action of signal 11 (SIGSEGV)
==24955== Access not within mapped region at address 0x0
==24955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24955== by 0x8062D5B: main (nginx.c:385)
==24955== If you believe this happened as a result of a stack
==24955== overflow in your program's main thread (unlikely but
==24955== possible), you can try to increase the size of the
==24955== main thread stack using the --main-stacksize= flag.
==24955== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:09 [alert] 24940\#0: worker process 24955 exited on signal 11" (req 0) 2020/10/27 05:13:09 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:09 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:09 [debug] 24940\#0: reap children
2020/10/27 05:13:09 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:09 [debug] 24940\#0: child: 1 24955 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:09 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:09 [notice] 24940\#0: start worker process 24976
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield ==24976== Invalid read of size 4
==24976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24976== by 0x8062D5B: main (nginx.c:385)
==24976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield ==24976==
==24976== Process terminating with default action of signal 11 (SIGSEGV)
==24976== Access not within mapped region at address 0x0
==24976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24976== by 0x8062D5B: main (nginx.c:385)
==24976== If you believe this happened as a result of a stack
==24976== overflow in your program's main thread (unlikely but
==24976== possible), you can try to increase the size of the
==24976== main thread stack using the --main-stacksize= flag.
==24976== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:10 [alert] 24940\#0: worker process 24976 exited on signal 11" (req 1) 2020/10/27 05:13:10 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:10 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:10 [debug] 24940\#0: reap children
2020/10/27 05:13:10 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:10 [debug] 24940\#0: child: 1 24976 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:10 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:10 [notice] 24940\#0: start worker process 24977
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield ==24977== Invalid read of size 4
==24977== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24977== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24977== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24977== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24977== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24977== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24977== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24977== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24977== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24977== by 0x8062D5B: main (nginx.c:385)
==24977== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24977==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield ==24977==
==24977== Process terminating with default action of signal 11 (SIGSEGV)
==24977== Access not within mapped region at address 0x0
==24977== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24977== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24977== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24977== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24977== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24977== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24977== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24977== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==24977== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==24977== by 0x8062D5B: main (nginx.c:385)
==24977== If you believe this happened as a result of a stack
==24977== overflow in your program's main thread (unlikely but
==24977== possible), you can try to increase the size of the
==24977== main thread stack using the --main-stacksize= flag.
==24977== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:11 [alert] 24940\#0: worker process 24977 exited on signal 11" (req 2) 2020/10/27 05:13:11 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:11 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:11 [debug] 24940\#0: reap children
2020/10/27 05:13:11 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:11 [debug] 24940\#0: child: 1 24977 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:11 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:11 [notice] 24940\#0: start worker process 24978
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield ==24989== Invalid read of size 4
==24989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24989== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24989== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24989== by 0x8062D5B: main (nginx.c:385)
==24989== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24989==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield ==24989==
==24989== Process terminating with default action of signal 11 (SIGSEGV)
==24989== Access not within mapped region at address 0x0
==24989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==24989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==24989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==24989== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==24989== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==24989== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==24989== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==24989== by 0x8062D5B: main (nginx.c:385)
==24989== If you believe this happened as a result of a stack
==24989== overflow in your program's main thread (unlikely but
==24989== possible), you can try to increase the size of the
==24989== main thread stack using the --main-stacksize= flag.
==24989== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:15 [alert] 24940\#0: worker process 24989 exited on signal 11" (req 0) 2020/10/27 05:13:15 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:15 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:15 [debug] 24940\#0: reap children
2020/10/27 05:13:15 [debug] 24940\#0: child: 0 24989 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:15 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:15 [notice] 24940\#0: start worker process 25010
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield ==25010== Invalid read of size 4
==25010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25010== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25010== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25010== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25010== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25010== by 0x8062D5B: main (nginx.c:385)
==25010== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25010==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield ==25010==
==25010== Process terminating with default action of signal 11 (SIGSEGV)
==25010== Access not within mapped region at address 0x0
==25010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25010== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25010== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25010== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25010== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25010== by 0x8062D5B: main (nginx.c:385)
==25010== If you believe this happened as a result of a stack
==25010== overflow in your program's main thread (unlikely but
==25010== possible), you can try to increase the size of the
==25010== main thread stack using the --main-stacksize= flag.
==25010== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:16 [alert] 24940\#0: worker process 25010 exited on signal 11" (req 1) 2020/10/27 05:13:16 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:16 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:16 [debug] 24940\#0: reap children
2020/10/27 05:13:16 [debug] 24940\#0: child: 0 25010 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:16 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:16 [notice] 24940\#0: start worker process 25011
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield ==25011== Invalid read of size 4
==25011== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25011== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25011== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25011== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25011== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25011== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25011== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25011== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25011== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25011== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25011== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25011== by 0x8062D5B: main (nginx.c:385)
==25011== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25011==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield ==25011==
==25011== Process terminating with default action of signal 11 (SIGSEGV)
==25011== Access not within mapped region at address 0x0
==25011== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25011== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25011== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25011== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25011== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25011== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25011== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25011== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25011== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25011== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25011== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25011== by 0x8062D5B: main (nginx.c:385)
==25011== If you believe this happened as a result of a stack
==25011== overflow in your program's main thread (unlikely but
==25011== possible), you can try to increase the size of the
==25011== main thread stack using the --main-stacksize= flag.
==25011== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:18 [alert] 24940\#0: worker process 25011 exited on signal 11" (req 2) 2020/10/27 05:13:18 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:18 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:18 [debug] 24940\#0: reap children
2020/10/27 05:13:18 [debug] 24940\#0: child: 0 25011 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:18 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:18 [notice] 24940\#0: start worker process 25012
'
139-ssl-cert-by.t TEST 10: lua exception - yield ==25023== Invalid read of size 4
==25023== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25023== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25023== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25023== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25023== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25023== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25023== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25023== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25023== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25023== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25023== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25023== by 0x8062D5B: main (nginx.c:385)
==25023== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25023==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 10: lua exception - yield ==25023==
==25023== Process terminating with default action of signal 11 (SIGSEGV)
==25023== Access not within mapped region at address 0x0
==25023== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25023== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25023== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25023== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25023== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25023== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25023== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25023== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25023== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25023== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25023== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25023== by 0x8062D5B: main (nginx.c:385)
==25023== If you believe this happened as a result of a stack
==25023== overflow in your program's main thread (unlikely but
==25023== possible), you can try to increase the size of the
==25023== main thread stack using the --main-stacksize= flag.
==25023== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 10: lua exception - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 10: lua exception - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:21 [alert] 24940\#0: worker process 25023 exited on signal 11" (req 0) 2020/10/27 05:13:21 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:21 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:21 [debug] 24940\#0: reap children
2020/10/27 05:13:21 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:21 [debug] 24940\#0: child: 1 25023 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:21 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:21 [notice] 24940\#0: start worker process 25044
'
139-ssl-cert-by.t TEST 10: lua exception - yield ==25044== Invalid read of size 4
==25044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25044== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25044== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25044== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25044== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25044== by 0x8062D5B: main (nginx.c:385)
==25044== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25044==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 10: lua exception - yield ==25044==
==25044== Process terminating with default action of signal 11 (SIGSEGV)
==25044== Access not within mapped region at address 0x0
==25044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25044== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25044== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25044== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25044== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25044== by 0x8062D5B: main (nginx.c:385)
==25044== If you believe this happened as a result of a stack
==25044== overflow in your program's main thread (unlikely but
==25044== possible), you can try to increase the size of the
==25044== main thread stack using the --main-stacksize= flag.
==25044== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 10: lua exception - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 10: lua exception - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:22 [alert] 24940\#0: worker process 25044 exited on signal 11" (req 1) 2020/10/27 05:13:22 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:22 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:22 [debug] 24940\#0: reap children
2020/10/27 05:13:22 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:22 [debug] 24940\#0: child: 1 25044 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 10: lua exception - yield ==25045== Invalid read of size 4
==25045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25045== by 0x8062D5B: main (nginx.c:385)
==25045== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25045==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 10: lua exception - yield ==25045==
==25045== Process terminating with default action of signal 11 (SIGSEGV)
==25045== Access not within mapped region at address 0x0
==25045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25045== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25045== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25045== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25045== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25045== by 0x8062D5B: main (nginx.c:385)
==25045== If you believe this happened as a result of a stack
==25045== overflow in your program's main thread (unlikely but
==25045== possible), you can try to increase the size of the
==25045== main thread stack using the --main-stacksize= flag.
==25045== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 10: lua exception - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 10: lua exception - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:22 [alert] 24940\#0: worker process 25045 exited on signal 11" (req 2) 2020/10/27 05:13:22 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:22 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:22 [debug] 24940\#0: reap children
2020/10/27 05:13:22 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:22 [debug] 24940\#0: child: 1 25045 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 14: coroutine API ==25057== Invalid read of size 4
==25057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25057== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25057== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25057== by 0x8062D5B: main (nginx.c:385)
==25057== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25057==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 14: coroutine API ==25057==
==25057== Process terminating with default action of signal 11 (SIGSEGV)
==25057== Access not within mapped region at address 0x0
==25057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25057== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25057== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25057== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25057== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25057== by 0x8062D5B: main (nginx.c:385)
==25057== If you believe this happened as a result of a stack
==25057== overflow in your program's main thread (unlikely but
==25057== possible), you can try to increase the size of the
==25057== main thread stack using the --main-stacksize= flag.
==25057== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 14: coroutine API - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:26 [alert] 24940\#0: worker process 25057 exited on signal 11" (req 0) 2020/10/27 05:13:26 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:26 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:26 [debug] 24940\#0: reap children
2020/10/27 05:13:26 [debug] 24940\#0: child: 0 25057 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:26 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:26 [notice] 24940\#0: start worker process 25078
'
139-ssl-cert-by.t TEST 14: coroutine API ==25078== Invalid read of size 4
==25078== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25078== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25078== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25078== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25078== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25078== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25078== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25078== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25078== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25078== by 0x8062D5B: main (nginx.c:385)
==25078== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25078==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 14: coroutine API ==25078==
==25078== Process terminating with default action of signal 11 (SIGSEGV)
==25078== Access not within mapped region at address 0x0
==25078== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25078== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25078== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25078== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25078== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25078== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25078== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25078== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25078== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25078== by 0x8062D5B: main (nginx.c:385)
==25078== If you believe this happened as a result of a stack
==25078== overflow in your program's main thread (unlikely but
==25078== possible), you can try to increase the size of the
==25078== main thread stack using the --main-stacksize= flag.
==25078== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 14: coroutine API - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:28 [alert] 24940\#0: worker process 25078 exited on signal 11" (req 1) 2020/10/27 05:13:28 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:28 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:28 [debug] 24940\#0: reap children
2020/10/27 05:13:28 [debug] 24940\#0: child: 0 25078 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 14: coroutine API ==25079== Invalid read of size 4
==25079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25079== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25079== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25079== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25079== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25079== by 0x8062D5B: main (nginx.c:385)
==25079== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25079==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 14: coroutine API ==25079==
==25079== Process terminating with default action of signal 11 (SIGSEGV)
==25079== Access not within mapped region at address 0x0
==25079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25079== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25079== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25079== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25079== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25079== by 0x8062D5B: main (nginx.c:385)
==25079== If you believe this happened as a result of a stack
==25079== overflow in your program's main thread (unlikely but
==25079== possible), you can try to increase the size of the
==25079== main thread stack using the --main-stacksize= flag.
==25079== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 14: coroutine API - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:29 [alert] 24940\#0: worker process 25079 exited on signal 11" (req 2) 2020/10/27 05:13:29 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:29 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:29 [debug] 24940\#0: reap children
2020/10/27 05:13:29 [debug] 24940\#0: child: 0 25079 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 4: cosocket ==25091== Invalid read of size 4
==25091== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25091== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25091== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25091== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25091== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25091== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25091== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25091== by 0x8062D5B: main (nginx.c:385)
==25091== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25091==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 4: cosocket ==25091==
==25091== Process terminating with default action of signal 11 (SIGSEGV)
==25091== Access not within mapped region at address 0x0
==25091== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25091== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25091== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25091== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25091== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25091== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25091== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25091== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25091== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25091== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25091== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25091== by 0x8062D5B: main (nginx.c:385)
==25091== If you believe this happened as a result of a stack
==25091== overflow in your program's main thread (unlikely but
==25091== possible), you can try to increase the size of the
==25091== main thread stack using the --main-stacksize= flag.
==25091== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 4: cosocket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:33 [alert] 24940\#0: worker process 25091 exited on signal 11" (req 0) 2020/10/27 05:13:33 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:33 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:33 [debug] 24940\#0: reap children
2020/10/27 05:13:33 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:33 [debug] 24940\#0: child: 1 25091 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:33 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:33 [notice] 24940\#0: start worker process 25112
'
139-ssl-cert-by.t TEST 4: cosocket ==25112== Invalid read of size 4
==25112== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25112== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25112== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25112== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25112== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25112== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25112== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25112== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25112== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25112== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25112== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25112== by 0x8062D5B: main (nginx.c:385)
==25112== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25112==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 4: cosocket ==25112==
==25112== Process terminating with default action of signal 11 (SIGSEGV)
==25112== Access not within mapped region at address 0x0
==25112== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25112== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25112== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25112== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25112== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25112== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25112== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25112== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25112== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25112== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25112== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25112== by 0x8062D5B: main (nginx.c:385)
==25112== If you believe this happened as a result of a stack
==25112== overflow in your program's main thread (unlikely but
==25112== possible), you can try to increase the size of the
==25112== main thread stack using the --main-stacksize= flag.
==25112== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 4: cosocket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:33 [alert] 24940\#0: worker process 25112 exited on signal 11" (req 1) 2020/10/27 05:13:33 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:33 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:33 [debug] 24940\#0: reap children
2020/10/27 05:13:33 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:33 [debug] 24940\#0: child: 1 25112 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 4: cosocket ==25113== Invalid read of size 4
==25113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25113== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25113== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25113== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25113== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25113== by 0x8062D5B: main (nginx.c:385)
==25113== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25113==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 4: cosocket ==25113==
==25113== Process terminating with default action of signal 11 (SIGSEGV)
==25113== Access not within mapped region at address 0x0
==25113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25113== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25113== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25113== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25113== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25113== by 0x8062D5B: main (nginx.c:385)
==25113== If you believe this happened as a result of a stack
==25113== overflow in your program's main thread (unlikely but
==25113== possible), you can try to increase the size of the
==25113== main thread stack using the --main-stacksize= flag.
==25113== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 4: cosocket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:34 [alert] 24940\#0: worker process 25113 exited on signal 11" (req 2) 2020/10/27 05:13:34 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:34 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:34 [debug] 24940\#0: reap children
2020/10/27 05:13:34 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:34 [debug] 24940\#0: child: 1 25113 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield ==25125== Invalid read of size 4
==25125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25125== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25125== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25125== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25125== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25125== by 0x8062D5B: main (nginx.c:385)
==25125== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25125==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield ==25125==
==25125== Process terminating with default action of signal 11 (SIGSEGV)
==25125== Access not within mapped region at address 0x0
==25125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25125== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25125== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25125== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25125== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25125== by 0x8062D5B: main (nginx.c:385)
==25125== If you believe this happened as a result of a stack
==25125== overflow in your program's main thread (unlikely but
==25125== possible), you can try to increase the size of the
==25125== main thread stack using the --main-stacksize= flag.
==25125== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:37 [alert] 24940\#0: worker process 25125 exited on signal 11" (req 0) 2020/10/27 05:13:37 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:37 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:37 [debug] 24940\#0: reap children
2020/10/27 05:13:37 [debug] 24940\#0: child: 0 25125 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:37 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:37 [notice] 24940\#0: start worker process 25146
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield ==25146== Invalid read of size 4
==25146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25146== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25146== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25146== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25146== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25146== by 0x8062D5B: main (nginx.c:385)
==25146== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25146==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield ==25146==
==25146== Process terminating with default action of signal 11 (SIGSEGV)
==25146== Access not within mapped region at address 0x0
==25146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25146== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25146== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25146== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25146== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25146== by 0x8062D5B: main (nginx.c:385)
==25146== If you believe this happened as a result of a stack
==25146== overflow in your program's main thread (unlikely but
==25146== possible), you can try to increase the size of the
==25146== main thread stack using the --main-stacksize= flag.
==25146== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:38 [alert] 24940\#0: worker process 25146 exited on signal 11" (req 1) 2020/10/27 05:13:38 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:38 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:38 [debug] 24940\#0: reap children
2020/10/27 05:13:38 [debug] 24940\#0: child: 0 25146 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield ==25147== Invalid read of size 4
==25147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25147== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25147== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25147== by 0x8062D5B: main (nginx.c:385)
==25147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield ==25147==
==25147== Process terminating with default action of signal 11 (SIGSEGV)
==25147== Access not within mapped region at address 0x0
==25147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25147== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25147== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25147== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25147== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25147== by 0x8062D5B: main (nginx.c:385)
==25147== If you believe this happened as a result of a stack
==25147== overflow in your program's main thread (unlikely but
==25147== possible), you can try to increase the size of the
==25147== main thread stack using the --main-stacksize= flag.
==25147== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:39 [alert] 24940\#0: worker process 25147 exited on signal 11" (req 2) 2020/10/27 05:13:39 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:39 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:39 [debug] 24940\#0: reap children
2020/10/27 05:13:39 [debug] 24940\#0: child: 0 25147 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 2: sleep ==25159== Invalid read of size 4
==25159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25159== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25159== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25159== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25159== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25159== by 0x8062D5B: main (nginx.c:385)
==25159== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25159==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 2: sleep ==25159==
==25159== Process terminating with default action of signal 11 (SIGSEGV)
==25159== Access not within mapped region at address 0x0
==25159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25159== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25159== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25159== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25159== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25159== by 0x8062D5B: main (nginx.c:385)
==25159== If you believe this happened as a result of a stack
==25159== overflow in your program's main thread (unlikely but
==25159== possible), you can try to increase the size of the
==25159== main thread stack using the --main-stacksize= flag.
==25159== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 2: sleep - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:43 [alert] 24940\#0: worker process 25159 exited on signal 11" (req 0) 2020/10/27 05:13:43 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:43 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:43 [debug] 24940\#0: reap children
2020/10/27 05:13:43 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:43 [debug] 24940\#0: child: 1 25159 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 2: sleep ==25180== Invalid read of size 4
==25180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25180== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25180== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25180== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25180== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25180== by 0x8062D5B: main (nginx.c:385)
==25180== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25180==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 2: sleep ==25180==
==25180== Process terminating with default action of signal 11 (SIGSEGV)
==25180== Access not within mapped region at address 0x0
==25180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25180== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25180== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25180== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25180== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25180== by 0x8062D5B: main (nginx.c:385)
==25180== If you believe this happened as a result of a stack
==25180== overflow in your program's main thread (unlikely but
==25180== possible), you can try to increase the size of the
==25180== main thread stack using the --main-stacksize= flag.
==25180== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 2: sleep - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:43 [alert] 24940\#0: worker process 25180 exited on signal 11" (req 1) 2020/10/27 05:13:43 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:43 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:43 [debug] 24940\#0: reap children
2020/10/27 05:13:43 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:43 [debug] 24940\#0: child: 1 25180 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 2: sleep ==25181== Invalid read of size 4
==25181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25181== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25181== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25181== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25181== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25181== by 0x8062D5B: main (nginx.c:385)
==25181== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25181==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 2: sleep ==25181==
==25181== Process terminating with default action of signal 11 (SIGSEGV)
==25181== Access not within mapped region at address 0x0
==25181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25181== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25181== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25181== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25181== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25181== by 0x8062D5B: main (nginx.c:385)
==25181== If you believe this happened as a result of a stack
==25181== overflow in your program's main thread (unlikely but
==25181== possible), you can try to increase the size of the
==25181== main thread stack using the --main-stacksize= flag.
==25181== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 2: sleep - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:44 [alert] 24940\#0: worker process 25181 exited on signal 11" (req 2) 2020/10/27 05:13:44 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:44 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:44 [debug] 24940\#0: reap children
2020/10/27 05:13:44 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:44 [debug] 24940\#0: child: 1 25181 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely ==25193== Invalid read of size 4
==25193== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25193== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25193== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25193== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25193== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25193== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25193== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25193== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25193== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25193== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25193== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25193== by 0x8062D5B: main (nginx.c:385)
==25193== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25193==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 12: connection aborted prematurely ==25193==
==25193== Process terminating with default action of signal 11 (SIGSEGV)
==25193== Access not within mapped region at address 0x0
==25193== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25193== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25193== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25193== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25193== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25193== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25193== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25193== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25193== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25193== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25193== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25193== by 0x8062D5B: main (nginx.c:385)
==25193== If you believe this happened as a result of a stack
==25193== overflow in your program's main thread (unlikely but
==25193== possible), you can try to increase the size of the
==25193== main thread stack using the --main-stacksize= flag.
==25193== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 12: connection aborted prematurely - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:47 [alert] 24940\#0: worker process 25193 exited on signal 11" (req 0) 2020/10/27 05:13:47 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:47 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:47 [debug] 24940\#0: reap children
2020/10/27 05:13:47 [debug] 24940\#0: child: 0 25193 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:47 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:47 [notice] 24940\#0: start worker process 25214
2020/10/27 05:13:47 [debug] 24940\#0: sigsuspend
2020/10/27 05:13:47 [debug] 25214\#0: malloc: 04B521E0:12
2020/10/27 05:13:47 [debug] 25214\#0: malloc: 051831B0:8
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely ==25214== Invalid read of size 4
==25214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25214== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25214== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25214== by 0x8062D5B: main (nginx.c:385)
==25214== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25214==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 12: connection aborted prematurely ==25214==
==25214== Process terminating with default action of signal 11 (SIGSEGV)
==25214== Access not within mapped region at address 0x0
==25214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25214== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25214== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25214== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25214== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25214== by 0x8062D5B: main (nginx.c:385)
==25214== If you believe this happened as a result of a stack
==25214== overflow in your program's main thread (unlikely but
==25214== possible), you can try to increase the size of the
==25214== main thread stack using the --main-stacksize= flag.
==25214== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 12: connection aborted prematurely - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:49 [alert] 24940\#0: worker process 25214 exited on signal 11" (req 1) 2020/10/27 05:13:49 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:49 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:49 [debug] 24940\#0: reap children
2020/10/27 05:13:49 [debug] 24940\#0: child: 0 25214 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:49 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:49 [notice] 24940\#0: start worker process 25215
2020/10/27 05:13:49 [debug] 24940\#0: sigsuspend
2020/10/27 05:13:49 [debug] 25215\#0: malloc: 04B521E0:12
2020/10/27 05:13:49 [debug] 25215\#0: malloc: 051831B0:8
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely ==25215== Invalid read of size 4
==25215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25215== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25215== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25215== by 0x8062D5B: main (nginx.c:385)
==25215== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25215==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 12: connection aborted prematurely ==25215==
==25215== Process terminating with default action of signal 11 (SIGSEGV)
==25215== Access not within mapped region at address 0x0
==25215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25215== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25215== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25215== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25215== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25215== by 0x8062D5B: main (nginx.c:385)
==25215== If you believe this happened as a result of a stack
==25215== overflow in your program's main thread (unlikely but
==25215== possible), you can try to increase the size of the
==25215== main thread stack using the --main-stacksize= flag.
==25215== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 12: connection aborted prematurely - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:50 [alert] 24940\#0: worker process 25215 exited on signal 11" (req 2) 2020/10/27 05:13:50 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:50 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:50 [debug] 24940\#0: reap children
2020/10/27 05:13:50 [debug] 24940\#0: child: 0 25215 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:50 [debug] 24940\#0: channel 3:4
2020/10/27 05:13:50 [notice] 24940\#0: start worker process 25216
2020/10/27 05:13:50 [debug] 24940\#0: sigsuspend
2020/10/27 05:13:50 [debug] 25216\#0: malloc: 04B521E0:12
2020/10/27 05:13:50 [debug] 25216\#0: malloc: 051831B0:8
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield ==25227== Invalid read of size 4
==25227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25227== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25227== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25227== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25227== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25227== by 0x8062D5B: main (nginx.c:385)
==25227== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25227==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield ==25227==
==25227== Process terminating with default action of signal 11 (SIGSEGV)
==25227== Access not within mapped region at address 0x0
==25227== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25227== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25227== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25227== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25227== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25227== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25227== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25227== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25227== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25227== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25227== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25227== by 0x8062D5B: main (nginx.c:385)
==25227== If you believe this happened as a result of a stack
==25227== overflow in your program's main thread (unlikely but
==25227== possible), you can try to increase the size of the
==25227== main thread stack using the --main-stacksize= flag.
==25227== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:54 [alert] 24940\#0: worker process 25227 exited on signal 11" (req 0) 2020/10/27 05:13:54 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:54 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:54 [debug] 24940\#0: reap children
2020/10/27 05:13:54 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:54 [debug] 24940\#0: child: 1 25227 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield ==25248== Invalid read of size 4
==25248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25248== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25248== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25248== by 0x8062D5B: main (nginx.c:385)
==25248== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25248==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield ==25248==
==25248== Process terminating with default action of signal 11 (SIGSEGV)
==25248== Access not within mapped region at address 0x0
==25248== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25248== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25248== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25248== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25248== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25248== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25248== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25248== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25248== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25248== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25248== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25248== by 0x8062D5B: main (nginx.c:385)
==25248== If you believe this happened as a result of a stack
==25248== overflow in your program's main thread (unlikely but
==25248== possible), you can try to increase the size of the
==25248== main thread stack using the --main-stacksize= flag.
==25248== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:55 [alert] 24940\#0: worker process 25248 exited on signal 11" (req 1) 2020/10/27 05:13:55 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:55 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:55 [debug] 24940\#0: reap children
2020/10/27 05:13:55 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:55 [debug] 24940\#0: child: 1 25248 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield ==25249== Invalid read of size 4
==25249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25249== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25249== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25249== by 0x8062D5B: main (nginx.c:385)
==25249== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25249==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield ==25249==
==25249== Process terminating with default action of signal 11 (SIGSEGV)
==25249== Access not within mapped region at address 0x0
==25249== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25249== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25249== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25249== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25249== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25249== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25249== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25249== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25249== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25249== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25249== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25249== by 0x8062D5B: main (nginx.c:385)
==25249== If you believe this happened as a result of a stack
==25249== overflow in your program's main thread (unlikely but
==25249== possible), you can try to increase the size of the
==25249== main thread stack using the --main-stacksize= flag.
==25249== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:56 [alert] 24940\#0: worker process 25249 exited on signal 11" (req 2) 2020/10/27 05:13:56 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:13:56 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:13:56 [debug] 24940\#0: reap children
2020/10/27 05:13:56 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:56 [debug] 24940\#0: child: 1 25249 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) ==25261== Invalid read of size 4
==25261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25261== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25261== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25261== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25261== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25261== by 0x8062D5B: main (nginx.c:385)
==25261== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25261==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 17: simple logging (syslog) ==25261==
==25261== Process terminating with default action of signal 11 (SIGSEGV)
==25261== Access not within mapped region at address 0x0
==25261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25261== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25261== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25261== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25261== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25261== by 0x8062D5B: main (nginx.c:385)
==25261== If you believe this happened as a result of a stack
==25261== overflow in your program's main thread (unlikely but
==25261== possible), you can try to increase the size of the
==25261== main thread stack using the --main-stacksize= flag.
==25261== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 17: simple logging (syslog) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:00 [alert] 24940\#0: worker process 25261 exited on signal 11" (req 0) 2020/10/27 05:14:00 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:00 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:00 [debug] 24940\#0: reap children
2020/10/27 05:14:00 [debug] 24940\#0: child: 0 25261 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) ==25282== Invalid read of size 4
==25282== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25282== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25282== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25282== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25282== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25282== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25282== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25282== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25282== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25282== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25282== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25282== by 0x8062D5B: main (nginx.c:385)
==25282== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25282==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 17: simple logging (syslog) ==25282==
==25282== Process terminating with default action of signal 11 (SIGSEGV)
==25282== Access not within mapped region at address 0x0
==25282== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25282== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25282== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25282== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25282== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25282== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25282== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25282== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25282== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25282== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25282== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25282== by 0x8062D5B: main (nginx.c:385)
==25282== If you believe this happened as a result of a stack
==25282== overflow in your program's main thread (unlikely but
==25282== possible), you can try to increase the size of the
==25282== main thread stack using the --main-stacksize= flag.
==25282== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 17: simple logging (syslog) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:01 [alert] 24940\#0: worker process 25282 exited on signal 11" (req 1) 2020/10/27 05:14:01 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:01 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:01 [debug] 24940\#0: reap children
2020/10/27 05:14:01 [debug] 24940\#0: child: 0 25282 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) ==25283== Invalid read of size 4
==25283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25283== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25283== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25283== by 0x8062D5B: main (nginx.c:385)
==25283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 17: simple logging (syslog) ==25283==
==25283== Process terminating with default action of signal 11 (SIGSEGV)
==25283== Access not within mapped region at address 0x0
==25283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25283== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25283== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25283== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25283== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25283== by 0x8062D5B: main (nginx.c:385)
==25283== If you believe this happened as a result of a stack
==25283== overflow in your program's main thread (unlikely but
==25283== possible), you can try to increase the size of the
==25283== main thread stack using the --main-stacksize= flag.
==25283== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 17: simple logging (syslog) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:03 [alert] 24940\#0: worker process 25283 exited on signal 11" (req 2) 2020/10/27 05:14:03 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:03 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:03 [debug] 24940\#0: reap children
2020/10/27 05:14:03 [debug] 24940\#0: child: 0 25283 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding ==25295== Invalid read of size 4
==25295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25295== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25295== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25295== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25295== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25295== by 0x8062D5B: main (nginx.c:385)
==25295== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25295==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding ==25295==
==25295== Process terminating with default action of signal 11 (SIGSEGV)
==25295== Access not within mapped region at address 0x0
==25295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25295== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25295== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25295== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25295== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25295== by 0x8062D5B: main (nginx.c:385)
==25295== If you believe this happened as a result of a stack
==25295== overflow in your program's main thread (unlikely but
==25295== possible), you can try to increase the size of the
==25295== main thread stack using the --main-stacksize= flag.
==25295== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:06 [alert] 24940\#0: worker process 25295 exited on signal 11" (req 0) 2020/10/27 05:14:06 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:06 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:06 [debug] 24940\#0: reap children
2020/10/27 05:14:06 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:06 [debug] 24940\#0: child: 1 25295 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding ==25316== Invalid read of size 4
==25316== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25316== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25316== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25316== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25316== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25316== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25316== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25316== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25316== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25316== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25316== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25316== by 0x8062D5B: main (nginx.c:385)
==25316== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25316==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding ==25316==
==25316== Process terminating with default action of signal 11 (SIGSEGV)
==25316== Access not within mapped region at address 0x0
==25316== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25316== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25316== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25316== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25316== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25316== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25316== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25316== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25316== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25316== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25316== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25316== by 0x8062D5B: main (nginx.c:385)
==25316== If you believe this happened as a result of a stack
==25316== overflow in your program's main thread (unlikely but
==25316== possible), you can try to increase the size of the
==25316== main thread stack using the --main-stacksize= flag.
==25316== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:07 [alert] 24940\#0: worker process 25316 exited on signal 11" (req 1) 2020/10/27 05:14:07 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:07 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:07 [debug] 24940\#0: reap children
2020/10/27 05:14:07 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:07 [debug] 24940\#0: child: 1 25316 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding ==25317== Invalid read of size 4
==25317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25317== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25317== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25317== by 0x8062D5B: main (nginx.c:385)
==25317== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25317==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding ==25317==
==25317== Process terminating with default action of signal 11 (SIGSEGV)
==25317== Access not within mapped region at address 0x0
==25317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25317== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25317== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25317== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25317== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25317== by 0x8062D5B: main (nginx.c:385)
==25317== If you believe this happened as a result of a stack
==25317== overflow in your program's main thread (unlikely but
==25317== possible), you can try to increase the size of the
==25317== main thread stack using the --main-stacksize= flag.
==25317== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:08 [alert] 24940\#0: worker process 25317 exited on signal 11" (req 2) 2020/10/27 05:14:08 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:08 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:08 [debug] 24940\#0: reap children
2020/10/27 05:14:08 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:08 [debug] 24940\#0: child: 1 25317 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket ==25329== Invalid read of size 4
==25329== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25329== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25329== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25329== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25329== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25329== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25329== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25329== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25329== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25329== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25329== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25329== by 0x8062D5B: main (nginx.c:385)
==25329== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25329==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket ==25329==
==25329== Process terminating with default action of signal 11 (SIGSEGV)
==25329== Access not within mapped region at address 0x0
==25329== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25329== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25329== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25329== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25329== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25329== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25329== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25329== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25329== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25329== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25329== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25329== by 0x8062D5B: main (nginx.c:385)
==25329== If you believe this happened as a result of a stack
==25329== overflow in your program's main thread (unlikely but
==25329== possible), you can try to increase the size of the
==25329== main thread stack using the --main-stacksize= flag.
==25329== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:12 [alert] 24940\#0: worker process 25329 exited on signal 11" (req 0) 2020/10/27 05:14:12 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:12 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:12 [debug] 24940\#0: reap children
2020/10/27 05:14:12 [debug] 24940\#0: child: 0 25329 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket ==25350== Invalid read of size 4
==25350== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25350== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25350== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25350== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25350== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25350== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25350== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25350== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25350== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25350== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25350== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25350== by 0x8062D5B: main (nginx.c:385)
==25350== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25350==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket ==25350==
==25350== Process terminating with default action of signal 11 (SIGSEGV)
==25350== Access not within mapped region at address 0x0
==25350== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25350== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25350== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25350== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25350== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25350== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25350== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25350== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25350== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25350== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25350== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25350== by 0x8062D5B: main (nginx.c:385)
==25350== If you believe this happened as a result of a stack
==25350== overflow in your program's main thread (unlikely but
==25350== possible), you can try to increase the size of the
==25350== main thread stack using the --main-stacksize= flag.
==25350== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:14 [alert] 24940\#0: worker process 25350 exited on signal 11" (req 1) 2020/10/27 05:14:14 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:14 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:14 [debug] 24940\#0: reap children
2020/10/27 05:14:14 [debug] 24940\#0: child: 0 25350 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket ==25351== Invalid read of size 4
==25351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25351== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25351== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25351== by 0x8062D5B: main (nginx.c:385)
==25351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket ==25351==
==25351== Process terminating with default action of signal 11 (SIGSEGV)
==25351== Access not within mapped region at address 0x0
==25351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25351== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25351== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25351== by 0x8062D5B: main (nginx.c:385)
==25351== If you believe this happened as a result of a stack
==25351== overflow in your program's main thread (unlikely but
==25351== possible), you can try to increase the size of the
==25351== main thread stack using the --main-stacksize= flag.
==25351== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:15 [alert] 24940\#0: worker process 25351 exited on signal 11" (req 2) 2020/10/27 05:14:15 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:15 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:15 [debug] 24940\#0: reap children
2020/10/27 05:14:15 [debug] 24940\#0: child: 0 25351 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) ==25363== Invalid read of size 4
==25363== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25363== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25363== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25363== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25363== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25363== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25363== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25363== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25363== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25363== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25363== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25363== by 0x8062D5B: main (nginx.c:385)
==25363== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25363==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) ==25363==
==25363== Process terminating with default action of signal 11 (SIGSEGV)
==25363== Access not within mapped region at address 0x0
==25363== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25363== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25363== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25363== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25363== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25363== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25363== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25363== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25363== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25363== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25363== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25363== by 0x8062D5B: main (nginx.c:385)
==25363== If you believe this happened as a result of a stack
==25363== overflow in your program's main thread (unlikely but
==25363== possible), you can try to increase the size of the
==25363== main thread stack using the --main-stacksize= flag.
==25363== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:20 [alert] 24940\#0: worker process 25363 exited on signal 11" (req 0) 2020/10/27 05:14:20 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:20 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:20 [debug] 24940\#0: reap children
2020/10/27 05:14:20 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:20 [debug] 24940\#0: child: 1 25363 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) ==25384== Invalid read of size 4
==25384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25384== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25384== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25384== by 0x8062D5B: main (nginx.c:385)
==25384== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25384==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) ==25384==
==25384== Process terminating with default action of signal 11 (SIGSEGV)
==25384== Access not within mapped region at address 0x0
==25384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25384== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25384== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25384== by 0x8062D5B: main (nginx.c:385)
==25384== If you believe this happened as a result of a stack
==25384== overflow in your program's main thread (unlikely but
==25384== possible), you can try to increase the size of the
==25384== main thread stack using the --main-stacksize= flag.
==25384== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:21 [alert] 24940\#0: worker process 25384 exited on signal 11" (req 1) 2020/10/27 05:14:21 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:21 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:21 [debug] 24940\#0: reap children
2020/10/27 05:14:21 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:21 [debug] 24940\#0: child: 1 25384 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) ==25385== Invalid read of size 4
==25385== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25385== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25385== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25385== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25385== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25385== by 0x8062D5B: main (nginx.c:385)
==25385== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25385==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) ==25385==
==25385== Process terminating with default action of signal 11 (SIGSEGV)
==25385== Access not within mapped region at address 0x0
==25385== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25385== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25385== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25385== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25385== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25385== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25385== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25385== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25385== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25385== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25385== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25385== by 0x8062D5B: main (nginx.c:385)
==25385== If you believe this happened as a result of a stack
==25385== overflow in your program's main thread (unlikely but
==25385== possible), you can try to increase the size of the
==25385== main thread stack using the --main-stacksize= flag.
==25385== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:23 [alert] 24940\#0: worker process 25385 exited on signal 11" (req 2) 2020/10/27 05:14:23 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:23 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:23 [debug] 24940\#0: reap children
2020/10/27 05:14:23 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:23 [debug] 24940\#0: child: 1 25385 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 11: get phase ==25398== Invalid read of size 4
==25398== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25398== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25398== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25398== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25398== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25398== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25398== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25398== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25398== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25398== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25398== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25398== by 0x8062D5B: main (nginx.c:385)
==25398== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25398==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 11: get phase ==25398==
==25398== Process terminating with default action of signal 11 (SIGSEGV)
==25398== Access not within mapped region at address 0x0
==25398== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25398== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25398== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25398== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25398== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25398== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25398== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25398== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25398== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25398== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25398== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25398== by 0x8062D5B: main (nginx.c:385)
==25398== If you believe this happened as a result of a stack
==25398== overflow in your program's main thread (unlikely but
==25398== possible), you can try to increase the size of the
==25398== main thread stack using the --main-stacksize= flag.
==25398== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 11: get phase - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
139-ssl-cert-by.t TEST 11: get phase - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:27 [alert] 24940\#0: worker process 25398 exited on signal 11" (req 0) 2020/10/27 05:14:27 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:27 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:27 [debug] 24940\#0: reap children
2020/10/27 05:14:27 [debug] 24940\#0: child: 0 25398 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 11: get phase ==25419== Invalid read of size 4
==25419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25419== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25419== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25419== by 0x8062D5B: main (nginx.c:385)
==25419== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25419==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 11: get phase ==25419==
==25419== Process terminating with default action of signal 11 (SIGSEGV)
==25419== Access not within mapped region at address 0x0
==25419== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25419== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25419== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25419== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25419== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25419== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25419== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25419== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25419== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25419== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25419== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25419== by 0x8062D5B: main (nginx.c:385)
==25419== If you believe this happened as a result of a stack
==25419== overflow in your program's main thread (unlikely but
==25419== possible), you can try to increase the size of the
==25419== main thread stack using the --main-stacksize= flag.
==25419== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 11: get phase - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
139-ssl-cert-by.t TEST 11: get phase - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:28 [alert] 24940\#0: worker process 25419 exited on signal 11" (req 1) 2020/10/27 05:14:28 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:28 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:28 [debug] 24940\#0: reap children
2020/10/27 05:14:28 [debug] 24940\#0: child: 0 25419 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 11: get phase ==25420== Invalid read of size 4
==25420== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25420== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25420== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25420== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25420== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25420== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25420== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25420== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25420== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25420== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25420== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25420== by 0x8062D5B: main (nginx.c:385)
==25420== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25420==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 11: get phase ==25420==
==25420== Process terminating with default action of signal 11 (SIGSEGV)
==25420== Access not within mapped region at address 0x0
==25420== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25420== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25420== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25420== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25420== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25420== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25420== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25420== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25420== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25420== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25420== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25420== by 0x8062D5B: main (nginx.c:385)
==25420== If you believe this happened as a result of a stack
==25420== overflow in your program's main thread (unlikely but
==25420== possible), you can try to increase the size of the
==25420== main thread stack using the --main-stacksize= flag.
==25420== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 11: get phase - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
139-ssl-cert-by.t TEST 11: get phase - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:30 [alert] 24940\#0: worker process 25420 exited on signal 11" (req 2) 2020/10/27 05:14:30 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:30 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:30 [debug] 24940\#0: reap children
2020/10/27 05:14:30 [debug] 24940\#0: child: 0 25420 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 ==25432== Invalid read of size 4
==25432== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25432== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25432== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25432== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25432== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25432== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25432== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25432== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25432== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25432== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25432== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25432== by 0x8062D5B: main (nginx.c:385)
==25432== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25432==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 ==25432==
==25432== Process terminating with default action of signal 11 (SIGSEGV)
==25432== Access not within mapped region at address 0x0
==25432== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25432== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25432== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25432== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25432== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25432== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25432== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25432== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25432== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25432== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25432== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25432== by 0x8062D5B: main (nginx.c:385)
==25432== If you believe this happened as a result of a stack
==25432== overflow in your program's main thread (unlikely but
==25432== possible), you can try to increase the size of the
==25432== main thread stack using the --main-stacksize= flag.
==25432== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:34 [alert] 24940\#0: worker process 25432 exited on signal 11" (req 0) 2020/10/27 05:14:34 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:34 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:34 [debug] 24940\#0: reap children
2020/10/27 05:14:34 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:34 [debug] 24940\#0: child: 1 25432 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 ==25453== Invalid read of size 4
==25453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25453== by 0x8062D5B: main (nginx.c:385)
==25453== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25453==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 ==25453==
==25453== Process terminating with default action of signal 11 (SIGSEGV)
==25453== Access not within mapped region at address 0x0
==25453== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25453== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25453== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25453== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25453== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25453== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25453== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25453== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25453== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25453== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25453== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25453== by 0x8062D5B: main (nginx.c:385)
==25453== If you believe this happened as a result of a stack
==25453== overflow in your program's main thread (unlikely but
==25453== possible), you can try to increase the size of the
==25453== main thread stack using the --main-stacksize= flag.
==25453== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:36 [alert] 24940\#0: worker process 25453 exited on signal 11" (req 1) 2020/10/27 05:14:36 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:36 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:36 [debug] 24940\#0: reap children
2020/10/27 05:14:36 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:36 [debug] 24940\#0: child: 1 25453 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 ==25454== Invalid read of size 4
==25454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25454== by 0x8062D5B: main (nginx.c:385)
==25454== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25454==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 ==25454==
==25454== Process terminating with default action of signal 11 (SIGSEGV)
==25454== Access not within mapped region at address 0x0
==25454== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25454== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25454== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25454== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25454== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25454== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25454== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25454== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25454== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25454== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25454== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25454== by 0x8062D5B: main (nginx.c:385)
==25454== If you believe this happened as a result of a stack
==25454== overflow in your program's main thread (unlikely but
==25454== possible), you can try to increase the size of the
==25454== main thread stack using the --main-stacksize= flag.
==25454== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:37 [alert] 24940\#0: worker process 25454 exited on signal 11" (req 2) 2020/10/27 05:14:37 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:37 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:37 [debug] 24940\#0: reap children
2020/10/27 05:14:37 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:37 [debug] 24940\#0: child: 1 25454 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 3: timer ==25466== Invalid read of size 4
==25466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25466== by 0x8062D5B: main (nginx.c:385)
==25466== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 3: timer ==25466==
==25466== Process terminating with default action of signal 11 (SIGSEGV)
==25466== Access not within mapped region at address 0x0
==25466== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25466== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25466== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25466== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25466== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25466== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25466== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25466== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25466== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25466== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25466== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25466== by 0x8062D5B: main (nginx.c:385)
==25466== If you believe this happened as a result of a stack
==25466== overflow in your program's main thread (unlikely but
==25466== possible), you can try to increase the size of the
==25466== main thread stack using the --main-stacksize= flag.
==25466== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 3: timer - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:42 [alert] 24940\#0: worker process 25466 exited on signal 11" (req 0) 2020/10/27 05:14:42 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:42 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:42 [debug] 24940\#0: reap children
2020/10/27 05:14:42 [debug] 24940\#0: child: 0 25466 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 3: timer ==25487== Invalid read of size 4
==25487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25487== by 0x8062D5B: main (nginx.c:385)
==25487== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25487==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 3: timer ==25487==
==25487== Process terminating with default action of signal 11 (SIGSEGV)
==25487== Access not within mapped region at address 0x0
==25487== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25487== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25487== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25487== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25487== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25487== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25487== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25487== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25487== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25487== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25487== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25487== by 0x8062D5B: main (nginx.c:385)
==25487== If you believe this happened as a result of a stack
==25487== overflow in your program's main thread (unlikely but
==25487== possible), you can try to increase the size of the
==25487== main thread stack using the --main-stacksize= flag.
==25487== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 3: timer - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:43 [alert] 24940\#0: worker process 25487 exited on signal 11" (req 1) 2020/10/27 05:14:43 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:43 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:43 [debug] 24940\#0: reap children
2020/10/27 05:14:43 [debug] 24940\#0: child: 0 25487 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 3: timer ==25488== Invalid read of size 4
==25488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25488== by 0x8062D5B: main (nginx.c:385)
==25488== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25488==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 3: timer ==25488==
==25488== Process terminating with default action of signal 11 (SIGSEGV)
==25488== Access not within mapped region at address 0x0
==25488== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25488== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25488== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25488== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25488== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25488== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25488== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25488== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25488== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25488== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25488== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25488== by 0x8062D5B: main (nginx.c:385)
==25488== If you believe this happened as a result of a stack
==25488== overflow in your program's main thread (unlikely but
==25488== possible), you can try to increase the size of the
==25488== main thread stack using the --main-stacksize= flag.
==25488== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 3: timer - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:45 [alert] 24940\#0: worker process 25488 exited on signal 11" (req 2) 2020/10/27 05:14:45 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:45 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:45 [debug] 24940\#0: reap children
2020/10/27 05:14:45 [debug] 24940\#0: child: 0 25488 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 9: lua exception - no yield ==25500== Invalid read of size 4
==25500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25500== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25500== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25500== by 0x8062D5B: main (nginx.c:385)
==25500== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25500==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 9: lua exception - no yield ==25500==
==25500== Process terminating with default action of signal 11 (SIGSEGV)
==25500== Access not within mapped region at address 0x0
==25500== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25500== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25500== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25500== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25500== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25500== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25500== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25500== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25500== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25500== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25500== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25500== by 0x8062D5B: main (nginx.c:385)
==25500== If you believe this happened as a result of a stack
==25500== overflow in your program's main thread (unlikely but
==25500== possible), you can try to increase the size of the
==25500== main thread stack using the --main-stacksize= flag.
==25500== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 9: lua exception - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 9: lua exception - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:48 [alert] 24940\#0: worker process 25500 exited on signal 11" (req 0) 2020/10/27 05:14:48 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:48 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:48 [debug] 24940\#0: reap children
2020/10/27 05:14:48 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:48 [debug] 24940\#0: child: 1 25500 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 9: lua exception - no yield ==25521== Invalid read of size 4
==25521== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25521== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25521== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25521== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25521== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25521== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25521== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25521== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25521== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25521== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25521== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25521== by 0x8062D5B: main (nginx.c:385)
==25521== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25521==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 9: lua exception - no yield ==25521==
==25521== Process terminating with default action of signal 11 (SIGSEGV)
==25521== Access not within mapped region at address 0x0
==25521== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25521== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25521== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25521== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25521== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25521== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25521== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25521== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25521== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25521== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25521== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25521== by 0x8062D5B: main (nginx.c:385)
==25521== If you believe this happened as a result of a stack
==25521== overflow in your program's main thread (unlikely but
==25521== possible), you can try to increase the size of the
==25521== main thread stack using the --main-stacksize= flag.
==25521== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 9: lua exception - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 9: lua exception - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:49 [alert] 24940\#0: worker process 25521 exited on signal 11" (req 1) 2020/10/27 05:14:49 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:49 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:49 [debug] 24940\#0: reap children
2020/10/27 05:14:49 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:49 [debug] 24940\#0: child: 1 25521 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 9: lua exception - no yield ==25522== Invalid read of size 4
==25522== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25522== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25522== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25522== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25522== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25522== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25522== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25522== by 0x8062D5B: main (nginx.c:385)
==25522== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25522==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 9: lua exception - no yield ==25522==
==25522== Process terminating with default action of signal 11 (SIGSEGV)
==25522== Access not within mapped region at address 0x0
==25522== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25522== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25522== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25522== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25522== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25522== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25522== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25522== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25522== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25522== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25522== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25522== by 0x8062D5B: main (nginx.c:385)
==25522== If you believe this happened as a result of a stack
==25522== overflow in your program's main thread (unlikely but
==25522== possible), you can try to increase the size of the
==25522== main thread stack using the --main-stacksize= flag.
==25522== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 9: lua exception - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 9: lua exception - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:50 [alert] 24940\#0: worker process 25522 exited on signal 11" (req 2) 2020/10/27 05:14:50 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:50 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:50 [debug] 24940\#0: reap children
2020/10/27 05:14:50 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:14:50 [debug] 24940\#0: child: 1 25522 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 1: simple logging ==25534== Invalid read of size 4
==25534== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25534== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25534== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25534== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25534== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25534== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25534== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25534== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25534== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25534== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25534== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25534== by 0x8062D5B: main (nginx.c:385)
==25534== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25534==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 1: simple logging ==25534==
==25534== Process terminating with default action of signal 11 (SIGSEGV)
==25534== Access not within mapped region at address 0x0
==25534== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25534== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25534== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25534== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25534== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25534== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25534== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25534== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25534== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25534== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25534== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25534== by 0x8062D5B: main (nginx.c:385)
==25534== If you believe this happened as a result of a stack
==25534== overflow in your program's main thread (unlikely but
==25534== possible), you can try to increase the size of the
==25534== main thread stack using the --main-stacksize= flag.
==25534== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 1: simple logging - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:54 [alert] 24940\#0: worker process 25534 exited on signal 11" (req 0) 2020/10/27 05:14:54 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:54 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:54 [debug] 24940\#0: reap children
2020/10/27 05:14:54 [debug] 24940\#0: child: 0 25534 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 1: simple logging ==25555== Invalid read of size 4
==25555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25555== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25555== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25555== by 0x8062D5B: main (nginx.c:385)
==25555== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25555==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 1: simple logging ==25555==
==25555== Process terminating with default action of signal 11 (SIGSEGV)
==25555== Access not within mapped region at address 0x0
==25555== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25555== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25555== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25555== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25555== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25555== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25555== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25555== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25555== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25555== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25555== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25555== by 0x8062D5B: main (nginx.c:385)
==25555== If you believe this happened as a result of a stack
==25555== overflow in your program's main thread (unlikely but
==25555== possible), you can try to increase the size of the
==25555== main thread stack using the --main-stacksize= flag.
==25555== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 1: simple logging - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:56 [alert] 24940\#0: worker process 25555 exited on signal 11" (req 1) 2020/10/27 05:14:56 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:56 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:56 [debug] 24940\#0: reap children
2020/10/27 05:14:56 [debug] 24940\#0: child: 0 25555 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 1: simple logging ==25556== Invalid read of size 4
==25556== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25556== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25556== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25556== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25556== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25556== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25556== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25556== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25556== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25556== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25556== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25556== by 0x8062D5B: main (nginx.c:385)
==25556== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25556==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 1: simple logging ==25556==
==25556== Process terminating with default action of signal 11 (SIGSEGV)
==25556== Access not within mapped region at address 0x0
==25556== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25556== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25556== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25556== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25556== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25556== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25556== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25556== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25556== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25556== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25556== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25556== by 0x8062D5B: main (nginx.c:385)
==25556== If you believe this happened as a result of a stack
==25556== overflow in your program's main thread (unlikely but
==25556== possible), you can try to increase the size of the
==25556== main thread stack using the --main-stacksize= flag.
==25556== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 1: simple logging - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:14:57 [alert] 24940\#0: worker process 25556 exited on signal 11" (req 2) 2020/10/27 05:14:57 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:14:57 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:14:57 [debug] 24940\#0: reap children
2020/10/27 05:14:57 [debug] 24940\#0: child: 0 25556 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level ==25568== Invalid read of size 4
==25568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25568== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25568== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25568== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25568== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25568== by 0x8062D5B: main (nginx.c:385)
==25568== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25568==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level ==25568==
==25568== Process terminating with default action of signal 11 (SIGSEGV)
==25568== Access not within mapped region at address 0x0
==25568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25568== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25568== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25568== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25568== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25568== by 0x8062D5B: main (nginx.c:385)
==25568== If you believe this happened as a result of a stack
==25568== overflow in your program's main thread (unlikely but
==25568== possible), you can try to increase the size of the
==25568== main thread stack using the --main-stacksize= flag.
==25568== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:02 [alert] 24940\#0: worker process 25568 exited on signal 11" (req 0) 2020/10/27 05:15:02 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:15:02 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:15:02 [debug] 24940\#0: reap children
2020/10/27 05:15:02 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:02 [debug] 24940\#0: child: 1 25568 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level ==25589== Invalid read of size 4
==25589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25589== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25589== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25589== by 0x8062D5B: main (nginx.c:385)
==25589== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25589==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level ==25589==
==25589== Process terminating with default action of signal 11 (SIGSEGV)
==25589== Access not within mapped region at address 0x0
==25589== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25589== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25589== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25589== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25589== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25589== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25589== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25589== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25589== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25589== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25589== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25589== by 0x8062D5B: main (nginx.c:385)
==25589== If you believe this happened as a result of a stack
==25589== overflow in your program's main thread (unlikely but
==25589== possible), you can try to increase the size of the
==25589== main thread stack using the --main-stacksize= flag.
==25589== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:03 [alert] 24940\#0: worker process 25589 exited on signal 11" (req 1) 2020/10/27 05:15:03 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:15:03 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:15:03 [debug] 24940\#0: reap children
2020/10/27 05:15:03 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:03 [debug] 24940\#0: child: 1 25589 e:0 t:1 d:0 r:1 j:0
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level ==25590== Invalid read of size 4
==25590== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25590== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25590== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25590== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25590== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25590== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25590== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25590== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25590== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25590== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25590== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25590== by 0x8062D5B: main (nginx.c:385)
==25590== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25590==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level ==25590==
==25590== Process terminating with default action of signal 11 (SIGSEGV)
==25590== Access not within mapped region at address 0x0
==25590== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25590== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25590== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25590== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25590== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25590== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25590== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25590== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25590== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25590== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25590== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25590== by 0x8062D5B: main (nginx.c:385)
==25590== If you believe this happened as a result of a stack
==25590== overflow in your program's main thread (unlikely but
==25590== possible), you can try to increase the size of the
==25590== main thread stack using the --main-stacksize= flag.
==25590== The main thread stack size used in this run was 8388608.

139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:05 [alert] 24940\#0: worker process 25590 exited on signal 11" (req 2) 2020/10/27 05:15:05 [debug] 24940\#0: shmtx forced unlock
2020/10/27 05:15:05 [debug] 24940\#0: wake up, sigio 0
2020/10/27 05:15:05 [debug] 24940\#0: reap children
2020/10/27 05:15:05 [debug] 24940\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:05 [debug] 24940\#0: child: 1 25590 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==25600== Invalid read of size 4
==25600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25600== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25600== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==25600== by 0x8062D5B: main (nginx.c:385)
==25600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==25600==
==25600== Process terminating with default action of signal 11 (SIGSEGV)
==25600== Access not within mapped region at address 0x0
==25600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25600== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25600== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25600== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25600== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==25600== by 0x8062D5B: main (nginx.c:385)
==25600== If you believe this happened as a result of a stack
==25600== overflow in your program's main thread (unlikely but
==25600== possible), you can try to increase the size of the
==25600== main thread stack using the --main-stacksize= flag.
==25600== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 2: ECDSA cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:11 [alert] 25599\#0: worker process 25600 exited on signal 11" (req 0) 2020/10/27 05:15:11 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:11 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:11 [debug] 25599\#0: reap children
2020/10/27 05:15:11 [debug] 25599\#0: child: 0 25600 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:11 [debug] 25599\#0: channel 3:10
2020/10/27 05:15:11 [notice] 25599\#0: start worker process 25601
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==25601== Invalid read of size 4
==25601== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25601== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25601== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25601== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25601== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25601== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25601== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25601== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25601== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25601== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25601== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25601== by 0x8062D5B: main (nginx.c:385)
==25601== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25601==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==25601==
==25601== Process terminating with default action of signal 11 (SIGSEGV)
==25601== Access not within mapped region at address 0x0
==25601== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25601== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25601== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25601== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25601== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25601== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25601== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25601== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25601== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25601== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25601== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25601== by 0x8062D5B: main (nginx.c:385)
==25601== If you believe this happened as a result of a stack
==25601== overflow in your program's main thread (unlikely but
==25601== possible), you can try to increase the size of the
==25601== main thread stack using the --main-stacksize= flag.
==25601== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 2: ECDSA cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:12 [alert] 25599\#0: worker process 25601 exited on signal 11" (req 1) 2020/10/27 05:15:12 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:12 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:12 [debug] 25599\#0: reap children
2020/10/27 05:15:12 [debug] 25599\#0: child: 0 25601 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:12 [debug] 25599\#0: channel 3:10
2020/10/27 05:15:12 [notice] 25599\#0: start worker process 25602
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==25602== Invalid read of size 4
==25602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25602== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25602== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25602== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25602== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25602== by 0x8062D5B: main (nginx.c:385)
==25602== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25602==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==25602==
==25602== Process terminating with default action of signal 11 (SIGSEGV)
==25602== Access not within mapped region at address 0x0
==25602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25602== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25602== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25602== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25602== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25602== by 0x8062D5B: main (nginx.c:385)
==25602== If you believe this happened as a result of a stack
==25602== overflow in your program's main thread (unlikely but
==25602== possible), you can try to increase the size of the
==25602== main thread stack using the --main-stacksize= flag.
==25602== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 2: ECDSA cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:14 [alert] 25599\#0: worker process 25602 exited on signal 11" (req 2) 2020/10/27 05:15:14 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:14 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:14 [debug] 25599\#0: reap children
2020/10/27 05:15:14 [debug] 25599\#0: child: 0 25602 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:14 [debug] 25599\#0: channel 3:10
2020/10/27 05:15:14 [notice] 25599\#0: start worker process 25603
'
140-ssl-c-api.t TEST 7: verify client without CA certificates ==25615== Invalid read of size 4
==25615== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25615== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25615== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25615== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25615== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25615== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25615== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25615== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25615== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25615== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25615== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25615== by 0x8062D5B: main (nginx.c:385)
==25615== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25615==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 7: verify client without CA certificates ==25615==
==25615== Process terminating with default action of signal 11 (SIGSEGV)
==25615== Access not within mapped region at address 0x0
==25615== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25615== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25615== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25615== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25615== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25615== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25615== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25615== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25615== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25615== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25615== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25615== by 0x8062D5B: main (nginx.c:385)
==25615== If you believe this happened as a result of a stack
==25615== overflow in your program's main thread (unlikely but
==25615== possible), you can try to increase the size of the
==25615== main thread stack using the --main-stacksize= flag.
==25615== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 7: verify client without CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 7: verify client without CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'FAILED:self signed certificate
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:18 [alert] 25599\#0: worker process 25615 exited on signal 11" (req 0) 2020/10/27 05:15:18 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:18 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:18 [debug] 25599\#0: reap children
2020/10/27 05:15:18 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:18 [debug] 25599\#0: child: 1 25615 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:18 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:18 [notice] 25599\#0: start worker process 25636
'
140-ssl-c-api.t TEST 7: verify client without CA certificates ==25636== Invalid read of size 4
==25636== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25636== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25636== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25636== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25636== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25636== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25636== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25636== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25636== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25636== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25636== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25636== by 0x8062D5B: main (nginx.c:385)
==25636== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25636==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 7: verify client without CA certificates ==25636==
==25636== Process terminating with default action of signal 11 (SIGSEGV)
==25636== Access not within mapped region at address 0x0
==25636== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25636== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25636== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25636== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25636== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25636== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25636== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25636== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25636== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25636== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25636== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25636== by 0x8062D5B: main (nginx.c:385)
==25636== If you believe this happened as a result of a stack
==25636== overflow in your program's main thread (unlikely but
==25636== possible), you can try to increase the size of the
==25636== main thread stack using the --main-stacksize= flag.
==25636== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 7: verify client without CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 7: verify client without CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'FAILED:self signed certificate
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:20 [alert] 25599\#0: worker process 25636 exited on signal 11" (req 1) 2020/10/27 05:15:20 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:20 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:20 [debug] 25599\#0: reap children
2020/10/27 05:15:20 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:20 [debug] 25599\#0: child: 1 25636 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:20 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:20 [notice] 25599\#0: start worker process 25637
'
140-ssl-c-api.t TEST 7: verify client without CA certificates ==25637== Invalid read of size 4
==25637== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25637== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25637== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25637== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25637== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25637== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25637== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25637== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25637== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25637== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25637== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25637== by 0x8062D5B: main (nginx.c:385)
==25637== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25637==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 7: verify client without CA certificates ==25637==
==25637== Process terminating with default action of signal 11 (SIGSEGV)
==25637== Access not within mapped region at address 0x0
==25637== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25637== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25637== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25637== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25637== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25637== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25637== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25637== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25637== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25637== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25637== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25637== by 0x8062D5B: main (nginx.c:385)
==25637== If you believe this happened as a result of a stack
==25637== overflow in your program's main thread (unlikely but
==25637== possible), you can try to increase the size of the
==25637== main thread stack using the --main-stacksize= flag.
==25637== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 7: verify client without CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 7: verify client without CA certificates - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'FAILED:self signed certificate
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:22 [alert] 25599\#0: worker process 25637 exited on signal 11" (req 2) 2020/10/27 05:15:22 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:22 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:22 [debug] 25599\#0: reap children
2020/10/27 05:15:22 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:22 [debug] 25599\#0: child: 1 25637 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:22 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:22 [notice] 25599\#0: start worker process 25638
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata ==25650== Invalid read of size 4
==25650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25650== by 0x8062D5B: main (nginx.c:385)
==25650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 4: simple cert + private key cdata ==25650==
==25650== Process terminating with default action of signal 11 (SIGSEGV)
==25650== Access not within mapped region at address 0x0
==25650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25650== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25650== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25650== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25650== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25650== by 0x8062D5B: main (nginx.c:385)
==25650== If you believe this happened as a result of a stack
==25650== overflow in your program's main thread (unlikely but
==25650== possible), you can try to increase the size of the
==25650== main thread stack using the --main-stacksize= flag.
==25650== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 4: simple cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:26 [alert] 25599\#0: worker process 25650 exited on signal 11" (req 0) 2020/10/27 05:15:26 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:26 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:26 [debug] 25599\#0: reap children
2020/10/27 05:15:26 [debug] 25599\#0: child: 0 25650 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:26 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:26 [notice] 25599\#0: start worker process 25671
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata ==25671== Invalid read of size 4
==25671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25671== by 0x8062D5B: main (nginx.c:385)
==25671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 4: simple cert + private key cdata ==25671==
==25671== Process terminating with default action of signal 11 (SIGSEGV)
==25671== Access not within mapped region at address 0x0
==25671== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25671== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25671== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25671== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25671== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25671== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25671== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25671== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25671== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25671== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25671== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25671== by 0x8062D5B: main (nginx.c:385)
==25671== If you believe this happened as a result of a stack
==25671== overflow in your program's main thread (unlikely but
==25671== possible), you can try to increase the size of the
==25671== main thread stack using the --main-stacksize= flag.
==25671== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 4: simple cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:28 [alert] 25599\#0: worker process 25671 exited on signal 11" (req 1) 2020/10/27 05:15:28 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:28 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:28 [debug] 25599\#0: reap children
2020/10/27 05:15:28 [debug] 25599\#0: child: 0 25671 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:28 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:28 [notice] 25599\#0: start worker process 25672
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata ==25672== Invalid read of size 4
==25672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25672== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25672== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25672== by 0x8062D5B: main (nginx.c:385)
==25672== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25672==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 4: simple cert + private key cdata ==25672==
==25672== Process terminating with default action of signal 11 (SIGSEGV)
==25672== Access not within mapped region at address 0x0
==25672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25672== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25672== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25672== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25672== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25672== by 0x8062D5B: main (nginx.c:385)
==25672== If you believe this happened as a result of a stack
==25672== overflow in your program's main thread (unlikely but
==25672== possible), you can try to increase the size of the
==25672== main thread stack using the --main-stacksize= flag.
==25672== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 4: simple cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:29 [alert] 25599\#0: worker process 25672 exited on signal 11" (req 2) 2020/10/27 05:15:29 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:29 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:29 [debug] 25599\#0: reap children
2020/10/27 05:15:29 [debug] 25599\#0: child: 0 25672 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 6: verify client with CA certificates ==25685== Invalid read of size 4
==25685== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25685== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25685== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25685== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25685== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25685== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25685== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25685== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25685== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25685== by 0x8062D5B: main (nginx.c:385)
==25685== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25685==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 6: verify client with CA certificates ==25685==
==25685== Process terminating with default action of signal 11 (SIGSEGV)
==25685== Access not within mapped region at address 0x0
==25685== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25685== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25685== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25685== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25685== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25685== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25685== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25685== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25685== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25685== by 0x8062D5B: main (nginx.c:385)
==25685== If you believe this happened as a result of a stack
==25685== overflow in your program's main thread (unlikely but
==25685== possible), you can try to increase the size of the
==25685== main thread stack using the --main-stacksize= flag.
==25685== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 6: verify client with CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 6: verify client with CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'SUCCESS
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:34 [alert] 25599\#0: worker process 25685 exited on signal 11" (req 0) 2020/10/27 05:15:34 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:34 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:34 [debug] 25599\#0: reap children
2020/10/27 05:15:34 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:34 [debug] 25599\#0: child: 1 25685 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:34 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:34 [notice] 25599\#0: start worker process 25706
'
140-ssl-c-api.t TEST 6: verify client with CA certificates ==25706== Invalid read of size 4
==25706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25706== by 0x8062D5B: main (nginx.c:385)
==25706== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25706==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 6: verify client with CA certificates ==25706==
==25706== Process terminating with default action of signal 11 (SIGSEGV)
==25706== Access not within mapped region at address 0x0
==25706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25706== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25706== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25706== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25706== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25706== by 0x8062D5B: main (nginx.c:385)
==25706== If you believe this happened as a result of a stack
==25706== overflow in your program's main thread (unlikely but
==25706== possible), you can try to increase the size of the
==25706== main thread stack using the --main-stacksize= flag.
==25706== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 6: verify client with CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 6: verify client with CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'SUCCESS
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:36 [alert] 25599\#0: worker process 25706 exited on signal 11" (req 1) 2020/10/27 05:15:36 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:36 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:36 [debug] 25599\#0: reap children
2020/10/27 05:15:36 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:36 [debug] 25599\#0: child: 1 25706 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 6: verify client with CA certificates ==25707== Invalid read of size 4
==25707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25707== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25707== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25707== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25707== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25707== by 0x8062D5B: main (nginx.c:385)
==25707== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25707==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 6: verify client with CA certificates ==25707==
==25707== Process terminating with default action of signal 11 (SIGSEGV)
==25707== Access not within mapped region at address 0x0
==25707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25707== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25707== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25707== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25707== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25707== by 0x8062D5B: main (nginx.c:385)
==25707== If you believe this happened as a result of a stack
==25707== overflow in your program's main thread (unlikely but
==25707== possible), you can try to increase the size of the
==25707== main thread stack using the --main-stacksize= flag.
==25707== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 6: verify client with CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 6: verify client with CA certificates - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'SUCCESS
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:38 [alert] 25599\#0: worker process 25707 exited on signal 11" (req 2) 2020/10/27 05:15:38 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:38 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:38 [debug] 25599\#0: reap children
2020/10/27 05:15:38 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:38 [debug] 25599\#0: child: 1 25707 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate ==25720== Invalid read of size 4
==25720== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25720== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25720== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25720== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25720== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25720== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25720== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25720== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25720== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25720== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25720== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25720== by 0x8062D5B: main (nginx.c:385)
==25720== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25720==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 8: verify client but client provides no certificate ==25720==
==25720== Process terminating with default action of signal 11 (SIGSEGV)
==25720== Access not within mapped region at address 0x0
==25720== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25720== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25720== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25720== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25720== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25720== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25720== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25720== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25720== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25720== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25720== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25720== by 0x8062D5B: main (nginx.c:385)
==25720== If you believe this happened as a result of a stack
==25720== overflow in your program's main thread (unlikely but
==25720== possible), you can try to increase the size of the
==25720== main thread stack using the --main-stacksize= flag.
==25720== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 8: verify client but client provides no certificate - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'NONE
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:42 [alert] 25599\#0: worker process 25720 exited on signal 11" (req 0) 2020/10/27 05:15:42 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:42 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:42 [debug] 25599\#0: reap children
2020/10/27 05:15:42 [debug] 25599\#0: child: 0 25720 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:42 [debug] 25599\#0: channel 3:4
2020/10/27 05:15:42 [notice] 25599\#0: start worker process 25759
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate ==25759== Invalid read of size 4
==25759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25759== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25759== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25759== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25759== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25759== by 0x8062D5B: main (nginx.c:385)
==25759== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25759==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 8: verify client but client provides no certificate ==25759==
==25759== Process terminating with default action of signal 11 (SIGSEGV)
==25759== Access not within mapped region at address 0x0
==25759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25759== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25759== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25759== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25759== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25759== by 0x8062D5B: main (nginx.c:385)
==25759== If you believe this happened as a result of a stack
==25759== overflow in your program's main thread (unlikely but
==25759== possible), you can try to increase the size of the
==25759== main thread stack using the --main-stacksize= flag.
==25759== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 8: verify client but client provides no certificate - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'NONE
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:44 [alert] 25599\#0: worker process 25759 exited on signal 11" (req 1) 2020/10/27 05:15:44 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:44 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:44 [debug] 25599\#0: reap children
2020/10/27 05:15:44 [debug] 25599\#0: child: 0 25759 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate ==25761== Invalid read of size 4
==25761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25761== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25761== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25761== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25761== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25761== by 0x8062D5B: main (nginx.c:385)
==25761== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25761==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 8: verify client but client provides no certificate ==25761==
==25761== Process terminating with default action of signal 11 (SIGSEGV)
==25761== Access not within mapped region at address 0x0
==25761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25761== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25761== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25761== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25761== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25761== by 0x8062D5B: main (nginx.c:385)
==25761== If you believe this happened as a result of a stack
==25761== overflow in your program's main thread (unlikely but
==25761== possible), you can try to increase the size of the
==25761== main thread stack using the --main-stacksize= flag.
==25761== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 8: verify client but client provides no certificate - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'NONE
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:46 [alert] 25599\#0: worker process 25761 exited on signal 11" (req 2) 2020/10/27 05:15:46 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:46 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:46 [debug] 25599\#0: reap children
2020/10/27 05:15:46 [debug] 25599\#0: child: 0 25761 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 1: simple cert + private key ==25774== Invalid read of size 4
==25774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25774== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25774== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25774== by 0x8062D5B: main (nginx.c:385)
==25774== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25774==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 1: simple cert + private key ==25774==
==25774== Process terminating with default action of signal 11 (SIGSEGV)
==25774== Access not within mapped region at address 0x0
==25774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25774== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25774== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25774== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25774== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25774== by 0x8062D5B: main (nginx.c:385)
==25774== If you believe this happened as a result of a stack
==25774== overflow in your program's main thread (unlikely but
==25774== possible), you can try to increase the size of the
==25774== main thread stack using the --main-stacksize= flag.
==25774== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 1: simple cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:50 [alert] 25599\#0: worker process 25774 exited on signal 11" (req 0) 2020/10/27 05:15:50 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:50 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:50 [debug] 25599\#0: reap children
2020/10/27 05:15:50 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:50 [debug] 25599\#0: child: 1 25774 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:50 [debug] 25599\#0: channel 3:4
'
140-ssl-c-api.t TEST 1: simple cert + private key ==25795== Invalid read of size 4
==25795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25795== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25795== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25795== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25795== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25795== by 0x8062D5B: main (nginx.c:385)
==25795== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25795==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 1: simple cert + private key ==25795==
==25795== Process terminating with default action of signal 11 (SIGSEGV)
==25795== Access not within mapped region at address 0x0
==25795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25795== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25795== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25795== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25795== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25795== by 0x8062D5B: main (nginx.c:385)
==25795== If you believe this happened as a result of a stack
==25795== overflow in your program's main thread (unlikely but
==25795== possible), you can try to increase the size of the
==25795== main thread stack using the --main-stacksize= flag.
==25795== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 1: simple cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:51 [alert] 25599\#0: worker process 25795 exited on signal 11" (req 1) 2020/10/27 05:15:51 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:51 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:51 [debug] 25599\#0: reap children
2020/10/27 05:15:51 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:51 [debug] 25599\#0: child: 1 25795 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 1: simple cert + private key ==25796== Invalid read of size 4
==25796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25796== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25796== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25796== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25796== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25796== by 0x8062D5B: main (nginx.c:385)
==25796== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25796==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 1: simple cert + private key ==25796==
==25796== Process terminating with default action of signal 11 (SIGSEGV)
==25796== Access not within mapped region at address 0x0
==25796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25796== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25796== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25796== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25796== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25796== by 0x8062D5B: main (nginx.c:385)
==25796== If you believe this happened as a result of a stack
==25796== overflow in your program's main thread (unlikely but
==25796== possible), you can try to increase the size of the
==25796== main thread stack using the --main-stacksize= flag.
==25796== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 1: simple cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:53 [alert] 25599\#0: worker process 25796 exited on signal 11" (req 2) 2020/10/27 05:15:53 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:53 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:53 [debug] 25599\#0: reap children
2020/10/27 05:15:53 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:53 [debug] 25599\#0: child: 1 25796 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors ==25809== Invalid read of size 4
==25809== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25809== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25809== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25809== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25809== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25809== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25809== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25809== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25809== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25809== by 0x8062D5B: main (nginx.c:385)
==25809== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25809==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors ==25809==
==25809== Process terminating with default action of signal 11 (SIGSEGV)
==25809== Access not within mapped region at address 0x0
==25809== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25809== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25809== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25809== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25809== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25809== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25809== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25809== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25809== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25809== by 0x8062D5B: main (nginx.c:385)
==25809== If you believe this happened as a result of a stack
==25809== overflow in your program's main thread (unlikely but
==25809== possible), you can try to increase the size of the
==25809== main thread stack using the --main-stacksize= flag.
==25809== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:57 [alert] 25599\#0: worker process 25809 exited on signal 11" (req 0) 2020/10/27 05:15:57 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:57 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:57 [debug] 25599\#0: reap children
2020/10/27 05:15:57 [debug] 25599\#0: child: 0 25809 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors ==25830== Invalid read of size 4
==25830== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25830== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25830== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25830== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25830== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25830== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25830== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25830== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25830== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25830== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25830== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25830== by 0x8062D5B: main (nginx.c:385)
==25830== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25830==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors ==25830==
==25830== Process terminating with default action of signal 11 (SIGSEGV)
==25830== Access not within mapped region at address 0x0
==25830== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25830== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25830== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25830== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25830== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25830== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25830== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25830== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25830== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25830== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25830== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25830== by 0x8062D5B: main (nginx.c:385)
==25830== If you believe this happened as a result of a stack
==25830== overflow in your program's main thread (unlikely but
==25830== possible), you can try to increase the size of the
==25830== main thread stack using the --main-stacksize= flag.
==25830== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:58 [alert] 25599\#0: worker process 25830 exited on signal 11" (req 1) 2020/10/27 05:15:58 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:15:58 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:15:58 [debug] 25599\#0: reap children
2020/10/27 05:15:58 [debug] 25599\#0: child: 0 25830 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors ==25831== Invalid read of size 4
==25831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25831== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25831== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25831== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25831== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25831== by 0x8062D5B: main (nginx.c:385)
==25831== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25831==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors ==25831==
==25831== Process terminating with default action of signal 11 (SIGSEGV)
==25831== Access not within mapped region at address 0x0
==25831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25831== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25831== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25831== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25831== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25831== by 0x8062D5B: main (nginx.c:385)
==25831== If you believe this happened as a result of a stack
==25831== overflow in your program's main thread (unlikely but
==25831== possible), you can try to increase the size of the
==25831== main thread stack using the --main-stacksize= flag.
==25831== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:16:00 [alert] 25599\#0: worker process 25831 exited on signal 11" (req 2) 2020/10/27 05:16:00 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:16:00 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:16:00 [debug] 25599\#0: reap children
2020/10/27 05:16:00 [debug] 25599\#0: child: 0 25831 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata ==25844== Invalid read of size 4
==25844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25844== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25844== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25844== by 0x8062D5B: main (nginx.c:385)
==25844== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25844==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata ==25844==
==25844== Process terminating with default action of signal 11 (SIGSEGV)
==25844== Access not within mapped region at address 0x0
==25844== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25844== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25844== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25844== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25844== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25844== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25844== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25844== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25844== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25844== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25844== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25844== by 0x8062D5B: main (nginx.c:385)
==25844== If you believe this happened as a result of a stack
==25844== overflow in your program's main thread (unlikely but
==25844== possible), you can try to increase the size of the
==25844== main thread stack using the --main-stacksize= flag.
==25844== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:16:04 [alert] 25599\#0: worker process 25844 exited on signal 11" (req 0) 2020/10/27 05:16:04 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:16:04 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:16:04 [debug] 25599\#0: reap children
2020/10/27 05:16:04 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:16:04 [debug] 25599\#0: child: 1 25844 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata ==25865== Invalid read of size 4
==25865== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25865== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25865== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25865== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25865== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25865== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25865== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25865== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25865== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25865== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25865== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25865== by 0x8062D5B: main (nginx.c:385)
==25865== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25865==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata ==25865==
==25865== Process terminating with default action of signal 11 (SIGSEGV)
==25865== Access not within mapped region at address 0x0
==25865== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25865== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25865== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25865== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25865== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25865== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25865== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25865== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25865== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25865== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25865== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25865== by 0x8062D5B: main (nginx.c:385)
==25865== If you believe this happened as a result of a stack
==25865== overflow in your program's main thread (unlikely but
==25865== possible), you can try to increase the size of the
==25865== main thread stack using the --main-stacksize= flag.
==25865== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:16:05 [alert] 25599\#0: worker process 25865 exited on signal 11" (req 1) 2020/10/27 05:16:05 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:16:05 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:16:05 [debug] 25599\#0: reap children
2020/10/27 05:16:05 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:16:05 [debug] 25599\#0: child: 1 25865 e:0 t:1 d:0 r:1 j:0
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata ==25866== Invalid read of size 4
==25866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25866== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25866== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25866== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25866== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25866== by 0x8062D5B: main (nginx.c:385)
==25866== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25866==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata ==25866==
==25866== Process terminating with default action of signal 11 (SIGSEGV)
==25866== Access not within mapped region at address 0x0
==25866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25866== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25866== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25866== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25866== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25866== by 0x8062D5B: main (nginx.c:385)
==25866== If you believe this happened as a result of a stack
==25866== overflow in your program's main thread (unlikely but
==25866== possible), you can try to increase the size of the
==25866== main thread stack using the --main-stacksize= flag.
==25866== The main thread stack size used in this run was 8388608.

140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:16:07 [alert] 25599\#0: worker process 25866 exited on signal 11" (req 2) 2020/10/27 05:16:07 [debug] 25599\#0: shmtx forced unlock
2020/10/27 05:16:07 [debug] 25599\#0: wake up, sigio 0
2020/10/27 05:16:07 [debug] 25599\#0: reap children
2020/10/27 05:16:07 [debug] 25599\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:16:07 [debug] 25599\#0: child: 1 25866 e:0 t:1 d:0 r:1 j:0
'
141-add-variable.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==25876== Invalid read of size 4
==25876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25876== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25876== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==25876== by 0x8062D5B: main (nginx.c:385)
==25876== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25876==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==25876==
==25876== Process terminating with default action of signal 11 (SIGSEGV)
==25876== Access not within mapped region at address 0x0
==25876== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25876== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25876== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25876== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25876== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25876== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25876== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25876== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25876== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25876== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25876== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==25876== by 0x8062D5B: main (nginx.c:385)
==25876== If you believe this happened as a result of a stack
==25876== overflow in your program's main thread (unlikely but
==25876== possible), you can try to increase the size of the
==25876== main thread stack using the --main-stacksize= flag.
==25876== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 1: sanity - status code ok got: ''
expected: '200'
141-add-variable.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-bar
'
141-add-variable.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==25877== Invalid read of size 4
==25877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25877== by 0x8062D5B: main (nginx.c:385)
==25877== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25877==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==25877==
==25877== Process terminating with default action of signal 11 (SIGSEGV)
==25877== Access not within mapped region at address 0x0
==25877== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25877== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25877== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25877== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25877== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25877== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25877== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25877== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25877== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25877== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25877== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25877== by 0x8062D5B: main (nginx.c:385)
==25877== If you believe this happened as a result of a stack
==25877== overflow in your program's main thread (unlikely but
==25877== possible), you can try to increase the size of the
==25877== main thread stack using the --main-stacksize= flag.
==25877== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 1: sanity - status code ok got: ''
expected: '200'
141-add-variable.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-nil
-bar
'
141-add-variable.t TEST 2: works with C code ==25889== Invalid read of size 4
==25889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25889== by 0x8062D5B: main (nginx.c:385)
==25889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 2: works with C code ==25889==
==25889== Process terminating with default action of signal 11 (SIGSEGV)
==25889== Access not within mapped region at address 0x0
==25889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25889== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25889== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25889== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25889== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25889== by 0x8062D5B: main (nginx.c:385)
==25889== If you believe this happened as a result of a stack
==25889== overflow in your program's main thread (unlikely but
==25889== possible), you can try to increase the size of the
==25889== main thread stack using the --main-stacksize= flag.
==25889== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 2: works with C code - status code ok got: ''
expected: '200'
141-add-variable.t TEST 2: works with C code - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 2: works with C code ==25910== Invalid read of size 4
==25910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25910== by 0x8062D5B: main (nginx.c:385)
==25910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 2: works with C code ==25910==
==25910== Process terminating with default action of signal 11 (SIGSEGV)
==25910== Access not within mapped region at address 0x0
==25910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25910== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25910== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25910== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25910== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25910== by 0x8062D5B: main (nginx.c:385)
==25910== If you believe this happened as a result of a stack
==25910== overflow in your program's main thread (unlikely but
==25910== possible), you can try to increase the size of the
==25910== main thread stack using the --main-stacksize= flag.
==25910== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 2: works with C code - status code ok got: ''
expected: '200'
141-add-variable.t TEST 2: works with C code - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 3: multiple add with same name works ==25922== Invalid read of size 4
==25922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25922== by 0x8062D5B: main (nginx.c:385)
==25922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25922==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 3: multiple add with same name works ==25922==
==25922== Process terminating with default action of signal 11 (SIGSEGV)
==25922== Access not within mapped region at address 0x0
==25922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25922== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25922== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25922== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25922== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25922== by 0x8062D5B: main (nginx.c:385)
==25922== If you believe this happened as a result of a stack
==25922== overflow in your program's main thread (unlikely but
==25922== possible), you can try to increase the size of the
==25922== main thread stack using the --main-stacksize= flag.
==25922== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 3: multiple add with same name works - status code ok got: ''
expected: '200'
141-add-variable.t TEST 3: multiple add with same name works - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 3: multiple add with same name works ==25943== Invalid read of size 4
==25943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25943== by 0x8062D5B: main (nginx.c:385)
==25943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 3: multiple add with same name works ==25943==
==25943== Process terminating with default action of signal 11 (SIGSEGV)
==25943== Access not within mapped region at address 0x0
==25943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25943== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25943== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25943== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25943== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25943== by 0x8062D5B: main (nginx.c:385)
==25943== If you believe this happened as a result of a stack
==25943== overflow in your program's main thread (unlikely but
==25943== possible), you can try to increase the size of the
==25943== main thread stack using the --main-stacksize= flag.
==25943== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 3: multiple add with same name works - status code ok got: ''
expected: '200'
141-add-variable.t TEST 3: multiple add with same name works - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 4: accessible in log phase ==25955== Invalid read of size 4
==25955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25955== by 0x8062D5B: main (nginx.c:385)
==25955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 4: accessible in log phase ==25955==
==25955== Process terminating with default action of signal 11 (SIGSEGV)
==25955== Access not within mapped region at address 0x0
==25955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25955== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25955== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25955== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==25955== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==25955== by 0x8062D5B: main (nginx.c:385)
==25955== If you believe this happened as a result of a stack
==25955== overflow in your program's main thread (unlikely but
==25955== possible), you can try to increase the size of the
==25955== main thread stack using the --main-stacksize= flag.
==25955== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 4: accessible in log phase - status code ok got: ''
expected: '200'
141-add-variable.t TEST 4: accessible in log phase - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 4: accessible in log phase ==25976== Invalid read of size 4
==25976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25976== by 0x8062D5B: main (nginx.c:385)
==25976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
141-add-variable.t TEST 4: accessible in log phase ==25976==
==25976== Process terminating with default action of signal 11 (SIGSEGV)
==25976== Access not within mapped region at address 0x0
==25976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==25976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==25976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==25976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==25976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==25976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==25976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==25976== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==25976== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==25976== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==25976== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==25976== by 0x8062D5B: main (nginx.c:385)
==25976== If you believe this happened as a result of a stack
==25976== overflow in your program's main thread (unlikely but
==25976== possible), you can try to increase the size of the
==25976== main thread stack using the --main-stacksize= flag.
==25976== The main thread stack size used in this run was 8388608.

141-add-variable.t TEST 4: accessible in log phase - status code ok got: ''
expected: '200'
141-add-variable.t TEST 4: accessible in log phase - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bar
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - Can't connect to 127.0.0.1:1984: Connection refused ==26118== Invalid read of size 4
==26118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26118== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==26118== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==26118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26118== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26118== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26118== by 0x8062D5B: main (nginx.c:385)
==26118== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26118==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
156-slow-network.t TEST 1: receiveany returns anything once socket receives - Can't connect to 127.0.0.1:1984: Connection refused ==26118==
==26118== Process terminating with default action of signal 11 (SIGSEGV)
==26118== Access not within mapped region at address 0x0
==26118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26118== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==26118== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==26118== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26118== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26118== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26118== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26118== by 0x8062D5B: main (nginx.c:385)
==26118== If you believe this happened as a result of a stack
==26118== overflow in your program's main thread (unlikely but
==26118== possible), you can try to increase the size of the
==26118== main thread stack using the --main-stacksize= flag.
==26118== The main thread stack size used in this run was 8388608.

156-slow-network.t TEST 1: receiveany returns anything once socket receives - status code ok got: ''
expected: '200'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-1
-h
-e
-l
-l
-o
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - grep_error_log_out (req 0) @@ -1,7 +1 @@
lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - Can't connect to 127.0.0.1:1984: Connection refused ==26119== Invalid read of size 4
==26119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26119== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==26119== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==26119== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26119== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26119== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26119== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26119== by 0x8062D5B: main (nginx.c:385)
==26119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26119==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
156-slow-network.t TEST 1: receiveany returns anything once socket receives - Can't connect to 127.0.0.1:1984: Connection refused ==26119==
==26119== Process terminating with default action of signal 11 (SIGSEGV)
==26119== Access not within mapped region at address 0x0
==26119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26119== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==26119== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==26119== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26119== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26119== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26119== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26119== by 0x8062D5B: main (nginx.c:385)
==26119== If you believe this happened as a result of a stack
==26119== overflow in your program's main thread (unlikely but
==26119== possible), you can try to increase the size of the
==26119== main thread stack using the --main-stacksize= flag.
==26119== The main thread stack size used in this run was 8388608.

156-slow-network.t TEST 1: receiveany returns anything once socket receives - status code ok got: ''
expected: '200'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-1
-h
-e
-l
-l
-o
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - grep_error_log_out (req 1) @@ -1,7 +1 @@
lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
'
157-socket-keepalive-hup.t TEST 1: exiting - Can't connect to 127.0.0.1:1984: Connection refused ==26128== Invalid read of size 4
==26128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26128== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26128== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26128== by 0x8062D5B: main (nginx.c:385)
==26128== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26128==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
157-socket-keepalive-hup.t TEST 1: exiting - Can't connect to 127.0.0.1:1984: Connection refused ==26128==
==26128== Process terminating with default action of signal 11 (SIGSEGV)
==26128== Access not within mapped region at address 0x0
==26128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26128== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26128== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26128== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26128== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26128== by 0x8062D5B: main (nginx.c:385)
==26128== If you believe this happened as a result of a stack
==26128== overflow in your program's main thread (unlikely but
==26128== possible), you can try to increase the size of the
==26128== main thread stack using the --main-stacksize= flag.
==26128== The main thread stack size used in this run was 8388608.

157-socket-keepalive-hup.t TEST 1: exiting - status code ok got: ''
expected: '200'
157-socket-keepalive-hup.t TEST 1: exiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
157-socket-keepalive-hup.t TEST 1: exiting - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "setkeepalive successfully" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "lua tcp socket set keepalive while process exiting, closing connection" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - Can't connect to 127.0.0.1:1984: Connection refused ==26130== Invalid read of size 4
==26130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26130== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26130== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26130== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26130== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26130== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26130== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26130== by 0x8062D5B: main (nginx.c:385)
==26130== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26130==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
157-socket-keepalive-hup.t TEST 1: exiting - Can't connect to 127.0.0.1:1984: Connection refused ==26130==
==26130== Process terminating with default action of signal 11 (SIGSEGV)
==26130== Access not within mapped region at address 0x0
==26130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26130== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26130== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26130== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26130== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26130== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26130== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26130== by 0x8062D5B: main (nginx.c:385)
==26130== If you believe this happened as a result of a stack
==26130== overflow in your program's main thread (unlikely but
==26130== possible), you can try to increase the size of the
==26130== main thread stack using the --main-stacksize= flag.
==26130== The main thread stack size used in this run was 8388608.

157-socket-keepalive-hup.t TEST 1: exiting - status code ok got: ''
expected: '200'
157-socket-keepalive-hup.t TEST 1: exiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
157-socket-keepalive-hup.t TEST 1: exiting - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "setkeepalive successfully" should match a line in error.log (req 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "lua tcp socket set keepalive while process exiting, closing connection" should match a line in error.log (req 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:16:53 [alert] 26127\#0: worker process 26128 exited on signal 11" (req 1) 2020/10/27 05:16:53 [debug] 26127\#0: shmtx forced unlock
2020/10/27 05:16:53 [debug] 26130\#0: *4 reusable connection: 0
2020/10/27 05:16:53 [debug] 26130\#0: *4 malloc: 05084A60:24
2020/10/27 05:16:53 [debug] 26127\#0: wake up, sigio 0
2020/10/27 05:16:53 [debug] 26130\#0: *4 malloc: 05084AA8:784
2020/10/27 05:16:53 [debug] 26127\#0: reap children
2020/10/27 05:16:53 [debug] 26130\#0: *4 malloc: 05084DE8:8
2020/10/27 05:16:53 [debug] 26130\#0: *4 malloc: 05084E20:480
2020/10/27 05:16:53 [debug] 26130\#0: *4 malloc: 05085030:8
'
158-global-var.t TEST 3: preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==26140== Invalid read of size 4
==26140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26140== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26140== by 0x8062D5B: main (nginx.c:385)
==26140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 3: preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==26140==
==26140== Process terminating with default action of signal 11 (SIGSEGV)
==26140== Access not within mapped region at address 0x0
==26140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26140== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26140== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26140== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26140== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26140== by 0x8062D5B: main (nginx.c:385)
==26140== If you believe this happened as a result of a stack
==26140== overflow in your program's main thread (unlikely but
==26140== possible), you can try to increase the size of the
==26140== main thread stack using the --main-stacksize= flag.
==26140== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 3: preread_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 3: preread_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 3: preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==26141== Invalid read of size 4
==26141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26141== by 0x8062D5B: main (nginx.c:385)
==26141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 3: preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==26141==
==26141== Process terminating with default action of signal 11 (SIGSEGV)
==26141== Access not within mapped region at address 0x0
==26141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26141== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26141== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26141== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26141== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26141== by 0x8062D5B: main (nginx.c:385)
==26141== If you believe this happened as a result of a stack
==26141== overflow in your program's main thread (unlikely but
==26141== possible), you can try to increase the size of the
==26141== main thread stack using the --main-stacksize= flag.
==26141== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 3: preread_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 3: preread_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 3: preread_by_lua - grep_error_log_out (req 1) got: '[warn] 26141#0: *6 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
preread_by_lua(nginx.conf:29):3: in main chunk
'
expected: 'old foo: 1
'
158-global-var.t TEST 4: content_by_lua ==26153== Invalid read of size 4
==26153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26153== by 0x8062D5B: main (nginx.c:385)
==26153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 4: content_by_lua ==26153==
==26153== Process terminating with default action of signal 11 (SIGSEGV)
==26153== Access not within mapped region at address 0x0
==26153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26153== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26153== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26153== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26153== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26153== by 0x8062D5B: main (nginx.c:385)
==26153== If you believe this happened as a result of a stack
==26153== overflow in your program's main thread (unlikely but
==26153== possible), you can try to increase the size of the
==26153== main thread stack using the --main-stacksize= flag.
==26153== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 4: content_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 4: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 4: content_by_lua ==26174== Invalid read of size 4
==26174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26174== by 0x8062D5B: main (nginx.c:385)
==26174== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26174==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 4: content_by_lua ==26174==
==26174== Process terminating with default action of signal 11 (SIGSEGV)
==26174== Access not within mapped region at address 0x0
==26174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26174== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26174== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26174== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26174== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26174== by 0x8062D5B: main (nginx.c:385)
==26174== If you believe this happened as a result of a stack
==26174== overflow in your program's main thread (unlikely but
==26174== possible), you can try to increase the size of the
==26174== main thread stack using the --main-stacksize= flag.
==26174== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 4: content_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 4: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 4: content_by_lua - grep_error_log_out (req 1) got: '[warn] 26174#0: *37 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
content_by_lua(nginx.conf:29):3: in main chunk,
'
expected: 'old foo: 1
'
158-global-var.t TEST 1: init_by_lua ==26186== Invalid read of size 4
==26186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26186== by 0x8062D5B: main (nginx.c:385)
==26186== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26186==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 1: init_by_lua ==26186==
==26186== Process terminating with default action of signal 11 (SIGSEGV)
==26186== Access not within mapped region at address 0x0
==26186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26186== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26186== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26186== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26186== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26186== by 0x8062D5B: main (nginx.c:385)
==26186== If you believe this happened as a result of a stack
==26186== overflow in your program's main thread (unlikely but
==26186== possible), you can try to increase the size of the
==26186== main thread stack using the --main-stacksize= flag.
==26186== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 1: init_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 1: init_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 1: init_by_lua ==26207== Invalid read of size 4
==26207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26207== by 0x8062D5B: main (nginx.c:385)
==26207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 1: init_by_lua ==26207==
==26207== Process terminating with default action of signal 11 (SIGSEGV)
==26207== Access not within mapped region at address 0x0
==26207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26207== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26207== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26207== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26207== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26207== by 0x8062D5B: main (nginx.c:385)
==26207== If you believe this happened as a result of a stack
==26207== overflow in your program's main thread (unlikely but
==26207== possible), you can try to increase the size of the
==26207== main thread stack using the --main-stacksize= flag.
==26207== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 1: init_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 1: init_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 1: init_by_lua - grep_error_log_out (req 1) got: 'old foo: 1
'
expected: 'old foo: 2
'
158-global-var.t TEST 2: init_worker_by_lua ==26219== Invalid read of size 4
==26219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26219== by 0x8062D5B: main (nginx.c:385)
==26219== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26219==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 2: init_worker_by_lua ==26219==
==26219== Process terminating with default action of signal 11 (SIGSEGV)
==26219== Access not within mapped region at address 0x0
==26219== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26219== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26219== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26219== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26219== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26219== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26219== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26219== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26219== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26219== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26219== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26219== by 0x8062D5B: main (nginx.c:385)
==26219== If you believe this happened as a result of a stack
==26219== overflow in your program's main thread (unlikely but
==26219== possible), you can try to increase the size of the
==26219== main thread stack using the --main-stacksize= flag.
==26219== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 2: init_worker_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 2: init_worker_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 2: init_worker_by_lua ==26240== Invalid read of size 4
==26240== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26240== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26240== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26240== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26240== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26240== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26240== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26240== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26240== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26240== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26240== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26240== by 0x8062D5B: main (nginx.c:385)
==26240== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26240==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 2: init_worker_by_lua ==26240==
==26240== Process terminating with default action of signal 11 (SIGSEGV)
==26240== Access not within mapped region at address 0x0
==26240== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26240== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26240== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26240== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26240== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26240== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26240== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26240== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26240== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26240== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26240== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26240== by 0x8062D5B: main (nginx.c:385)
==26240== If you believe this happened as a result of a stack
==26240== overflow in your program's main thread (unlikely but
==26240== possible), you can try to increase the size of the
==26240== main thread stack using the --main-stacksize= flag.
==26240== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 2: init_worker_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 2: init_worker_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 2: init_worker_by_lua - grep_error_log_out (req 1) got: 'old foo: 1
'
expected: 'old foo: 2
'
158-global-var.t TEST 7: uthread ==26252== Invalid read of size 4
==26252== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26252== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26252== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26252== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26252== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26252== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26252== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26252== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26252== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26252== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26252== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26252== by 0x8062D5B: main (nginx.c:385)
==26252== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26252==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 7: uthread ==26252==
==26252== Process terminating with default action of signal 11 (SIGSEGV)
==26252== Access not within mapped region at address 0x0
==26252== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26252== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26252== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26252== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26252== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26252== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26252== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26252== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26252== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26252== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26252== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26252== by 0x8062D5B: main (nginx.c:385)
==26252== If you believe this happened as a result of a stack
==26252== overflow in your program's main thread (unlikely but
==26252== possible), you can try to increase the size of the
==26252== main thread stack using the --main-stacksize= flag.
==26252== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 7: uthread - status code ok got: ''
expected: '200'
158-global-var.t TEST 7: uthread - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 7: uthread ==26273== Invalid read of size 4
==26273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26273== by 0x8062D5B: main (nginx.c:385)
==26273== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26273==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 7: uthread ==26273==
==26273== Process terminating with default action of signal 11 (SIGSEGV)
==26273== Access not within mapped region at address 0x0
==26273== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26273== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26273== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26273== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26273== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26273== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26273== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26273== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26273== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26273== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26273== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26273== by 0x8062D5B: main (nginx.c:385)
==26273== If you believe this happened as a result of a stack
==26273== overflow in your program's main thread (unlikely but
==26273== possible), you can try to increase the size of the
==26273== main thread stack using the --main-stacksize= flag.
==26273== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 7: uthread - status code ok got: ''
expected: '200'
158-global-var.t TEST 7: uthread - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 7: uthread - grep_error_log_out (req 1) got: 'writing a global Lua variable ('foo')
'
expected: 'old foo: 1
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request ==26285== Invalid read of size 4
==26285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26285== by 0x8062D5B: main (nginx.c:385)
==26285== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26285==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 9: warn messages for polluting _G table when handling request ==26285==
==26285== Process terminating with default action of signal 11 (SIGSEGV)
==26285== Access not within mapped region at address 0x0
==26285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26285== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26285== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26285== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26285== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26285== by 0x8062D5B: main (nginx.c:385)
==26285== If you believe this happened as a result of a stack
==26285== overflow in your program's main thread (unlikely but
==26285== possible), you can try to increase the size of the
==26285== main thread stack using the --main-stacksize= flag.
==26285== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 9: warn messages for polluting _G table when handling request - status code ok got: ''
expected: '200'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request ==26306== Invalid read of size 4
==26306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26306== by 0x8062D5B: main (nginx.c:385)
==26306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 9: warn messages for polluting _G table when handling request ==26306==
==26306== Process terminating with default action of signal 11 (SIGSEGV)
==26306== Access not within mapped region at address 0x0
==26306== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26306== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26306== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26306== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26306== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26306== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26306== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26306== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26306== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26306== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26306== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26306== by 0x8062D5B: main (nginx.c:385)
==26306== If you believe this happened as a result of a stack
==26306== overflow in your program's main thread (unlikely but
==26306== possible), you can try to increase the size of the
==26306== main thread stack using the --main-stacksize= flag.
==26306== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 9: warn messages for polluting _G table when handling request - status code ok got: ''
expected: '200'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '0
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - grep_error_log_out (req 1) got: 'writing a global Lua variable ('foo')
'
expected: 'writing a global Lua variable ('1')
'
158-global-var.t TEST 10: don't show warn messages in init/init_worker ==26318== Invalid read of size 4
==26318== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26318== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26318== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26318== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26318== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26318== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26318== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26318== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26318== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26318== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26318== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26318== by 0x8062D5B: main (nginx.c:385)
==26318== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26318==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 10: don't show warn messages in init/init_worker ==26318==
==26318== Process terminating with default action of signal 11 (SIGSEGV)
==26318== Access not within mapped region at address 0x0
==26318== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26318== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26318== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26318== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26318== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26318== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26318== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26318== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26318== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26318== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26318== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26318== by 0x8062D5B: main (nginx.c:385)
==26318== If you believe this happened as a result of a stack
==26318== overflow in your program's main thread (unlikely but
==26318== possible), you can try to increase the size of the
==26318== main thread stack using the --main-stacksize= flag.
==26318== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 10: don't show warn messages in init/init_worker - status code ok got: ''
expected: '200'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1
-2
'
158-global-var.t TEST 10: don't show warn messages in init/init_worker ==26339== Invalid read of size 4
==26339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26339== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26339== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26339== by 0x8062D5B: main (nginx.c:385)
==26339== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26339==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 10: don't show warn messages in init/init_worker ==26339==
==26339== Process terminating with default action of signal 11 (SIGSEGV)
==26339== Access not within mapped region at address 0x0
==26339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26339== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26339== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26339== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26339== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26339== by 0x8062D5B: main (nginx.c:385)
==26339== If you believe this happened as a result of a stack
==26339== overflow in your program's main thread (unlikely but
==26339== possible), you can try to increase the size of the
==26339== main thread stack using the --main-stacksize= flag.
==26339== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 10: don't show warn messages in init/init_worker - status code ok got: ''
expected: '200'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1
-2
'
158-global-var.t TEST 6: timer ==26351== Invalid read of size 4
==26351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26351== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26351== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26351== by 0x8062D5B: main (nginx.c:385)
==26351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 6: timer ==26351==
==26351== Process terminating with default action of signal 11 (SIGSEGV)
==26351== Access not within mapped region at address 0x0
==26351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26351== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26351== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26351== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26351== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26351== by 0x8062D5B: main (nginx.c:385)
==26351== If you believe this happened as a result of a stack
==26351== overflow in your program's main thread (unlikely but
==26351== possible), you can try to increase the size of the
==26351== main thread stack using the --main-stacksize= flag.
==26351== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 6: timer - status code ok got: ''
expected: '200'
158-global-var.t TEST 6: timer - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 6: timer ==26372== Invalid read of size 4
==26372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26372== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26372== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26372== by 0x8062D5B: main (nginx.c:385)
==26372== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26372==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 6: timer ==26372==
==26372== Process terminating with default action of signal 11 (SIGSEGV)
==26372== Access not within mapped region at address 0x0
==26372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26372== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26372== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26372== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26372== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26372== by 0x8062D5B: main (nginx.c:385)
==26372== If you believe this happened as a result of a stack
==26372== overflow in your program's main thread (unlikely but
==26372== possible), you can try to increase the size of the
==26372== main thread stack using the --main-stacksize= flag.
==26372== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 6: timer - status code ok got: ''
expected: '200'
158-global-var.t TEST 6: timer - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 6: timer - grep_error_log_out (req 1) got: '[warn] 26372#0: *231 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
content_by_lua(nginx.conf:37):4: in
'
expected: 'old foo: 1
'
158-global-var.t TEST 5: log_by_lua ==26384== Invalid read of size 4
==26384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26384== by 0x8062D5B: main (nginx.c:385)
==26384== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26384==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 5: log_by_lua ==26384==
==26384== Process terminating with default action of signal 11 (SIGSEGV)
==26384== Access not within mapped region at address 0x0
==26384== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26384== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26384== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26384== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26384== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26384== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26384== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26384== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26384== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26384== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26384== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26384== by 0x8062D5B: main (nginx.c:385)
==26384== If you believe this happened as a result of a stack
==26384== overflow in your program's main thread (unlikely but
==26384== possible), you can try to increase the size of the
==26384== main thread stack using the --main-stacksize= flag.
==26384== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 5: log_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 5: log_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:nil|1)\n\z)'
158-global-var.t TEST 5: log_by_lua ==26405== Invalid read of size 4
==26405== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26405== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26405== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26405== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26405== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26405== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26405== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26405== by 0x8062D5B: main (nginx.c:385)
==26405== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26405==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 5: log_by_lua ==26405==
==26405== Process terminating with default action of signal 11 (SIGSEGV)
==26405== Access not within mapped region at address 0x0
==26405== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26405== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26405== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26405== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26405== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26405== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26405== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26405== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26405== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26405== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26405== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26405== by 0x8062D5B: main (nginx.c:385)
==26405== If you believe this happened as a result of a stack
==26405== overflow in your program's main thread (unlikely but
==26405== possible), you can try to increase the size of the
==26405== main thread stack using the --main-stacksize= flag.
==26405== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 5: log_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 5: log_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:nil|1)\n\z)'
158-global-var.t TEST 5: log_by_lua - grep_error_log_out (req 1) got: '[warn] 26405#0: *262 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
log_by_lua(nginx.conf:31):3: in main chunk
'
expected: 'old foo: 1
'
158-global-var.t TEST 8: balancer_by_lua ==26417== Invalid read of size 4
==26417== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26417== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26417== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26417== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26417== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26417== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26417== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26417== by 0x8062D5B: main (nginx.c:385)
==26417== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26417==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 8: balancer_by_lua ==26417==
==26417== Process terminating with default action of signal 11 (SIGSEGV)
==26417== Access not within mapped region at address 0x0
==26417== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26417== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26417== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26417== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26417== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26417== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26417== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26417== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26417== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26417== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26417== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26417== by 0x8062D5B: main (nginx.c:385)
==26417== If you believe this happened as a result of a stack
==26417== overflow in your program's main thread (unlikely but
==26417== possible), you can try to increase the size of the
==26417== main thread stack using the --main-stacksize= flag.
==26417== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 8: balancer_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 8: balancer_by_lua ==26438== Invalid read of size 4
==26438== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26438== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26438== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26438== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26438== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26438== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26438== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26438== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26438== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26438== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26438== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26438== by 0x8062D5B: main (nginx.c:385)
==26438== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26438==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
158-global-var.t TEST 8: balancer_by_lua ==26438==
==26438== Process terminating with default action of signal 11 (SIGSEGV)
==26438== Access not within mapped region at address 0x0
==26438== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26438== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26438== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26438== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26438== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26438== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26438== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26438== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26438== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26438== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26438== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26438== by 0x8062D5B: main (nginx.c:385)
==26438== If you believe this happened as a result of a stack
==26438== overflow in your program's main thread (unlikely but
==26438== possible), you can try to increase the size of the
==26438== main thread stack using the --main-stacksize= flag.
==26438== The main thread stack size used in this run was 8388608.

158-global-var.t TEST 8: balancer_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 8: balancer_by_lua - grep_error_log_out (req 1) got: 'writing a global Lua variable ('foo')
'
expected: 'old foo: 1
'
159-sa-restart.t TEST 4: lua_sa_restart on (default) - SA_RESTART is effective in content_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==26447== Invalid read of size 4
==26447== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26447== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26447== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26447== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26447== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26447== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26447== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26447== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26447== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26447== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26447== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26447== by 0x8062D5B: main (nginx.c:385)
==26447== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26447==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
159-sa-restart.t TEST 4: lua_sa_restart on (default) - SA_RESTART is effective in content_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==26447==
==26447== Process terminating with default action of signal 11 (SIGSEGV)
==26447== Access not within mapped region at address 0x0
==26447== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26447== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26447== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26447== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26447== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26447== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26447== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26447== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26447== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26447== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26447== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26447== by 0x8062D5B: main (nginx.c:385)
==26447== If you believe this happened as a result of a stack
==26447== overflow in your program's main thread (unlikely but
==26447== possible), you can try to increase the size of the
==26447== main thread stack using the --main-stacksize= flag.
==26447== The main thread stack size used in this run was 8388608.

159-sa-restart.t TEST 4: lua_sa_restart on (default) - SA_RESTART is effective in content_by_lua* - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 6: lua_sa_restart on (default) - SA_RESTART is effective in timer phase ==26465== Invalid read of size 4
==26465== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26465== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26465== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26465== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26465== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26465== by 0x8062D5B: main (nginx.c:385)
==26465== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26465==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
159-sa-restart.t TEST 6: lua_sa_restart on (default) - SA_RESTART is effective in timer phase ==26465==
==26465== Process terminating with default action of signal 11 (SIGSEGV)
==26465== Access not within mapped region at address 0x0
==26465== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26465== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26465== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26465== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26465== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26465== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26465== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26465== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26465== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26465== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26465== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26465== by 0x8062D5B: main (nginx.c:385)
==26465== If you believe this happened as a result of a stack
==26465== overflow in your program's main thread (unlikely but
==26465== possible), you can try to increase the size of the
==26465== main thread stack using the --main-stacksize= flag.
==26465== The main thread stack size used in this run was 8388608.

159-sa-restart.t TEST 6: lua_sa_restart on (default) - SA_RESTART is effective in timer phase - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 3: lua_sa_restart on (default) - sets SA_RESTART if no init_worker_by_lua* phase is defined ==26503== Invalid read of size 4
==26503== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26503== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26503== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26503== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26503== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26503== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26503== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26503== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26503== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26503== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26503== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26503== by 0x8062D5B: main (nginx.c:385)
==26503== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26503==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
159-sa-restart.t TEST 3: lua_sa_restart on (default) - sets SA_RESTART if no init_worker_by_lua* phase is defined ==26503==
==26503== Process terminating with default action of signal 11 (SIGSEGV)
==26503== Access not within mapped region at address 0x0
==26503== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26503== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26503== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26503== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26503== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26503== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26503== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26503== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26503== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26503== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26503== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26503== by 0x8062D5B: main (nginx.c:385)
==26503== If you believe this happened as a result of a stack
==26503== overflow in your program's main thread (unlikely but
==26503== possible), you can try to increase the size of the
==26503== main thread stack using the --main-stacksize= flag.
==26503== The main thread stack size used in this run was 8388608.

159-sa-restart.t TEST 3: lua_sa_restart on (default) - sets SA_RESTART if no init_worker_by_lua* phase is defined - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 2: lua_sa_restart off - does not set SA_RESTART ==26541== Invalid read of size 4
==26541== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26541== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26541== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26541== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26541== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26541== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26541== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26541== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26541== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26541== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26541== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26541== by 0x8062D5B: main (nginx.c:385)
==26541== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26541==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
159-sa-restart.t TEST 2: lua_sa_restart off - does not set SA_RESTART ==26541==
==26541== Process terminating with default action of signal 11 (SIGSEGV)
==26541== Access not within mapped region at address 0x0
==26541== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26541== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26541== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26541== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26541== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26541== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26541== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26541== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26541== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26541== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26541== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26541== by 0x8062D5B: main (nginx.c:385)
==26541== If you believe this happened as a result of a stack
==26541== overflow in your program's main thread (unlikely but
==26541== possible), you can try to increase the size of the
==26541== main thread stack using the --main-stacksize= flag.
==26541== The main thread stack size used in this run was 8388608.

159-sa-restart.t TEST 2: lua_sa_restart off - does not set SA_RESTART - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 5: lua_sa_restart on (default) - SA_RESTART is effective in log_by_lua* ==26576== Invalid read of size 4
==26576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26576== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26576== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26576== by 0x8062D5B: main (nginx.c:385)
==26576== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26576==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
159-sa-restart.t TEST 5: lua_sa_restart on (default) - SA_RESTART is effective in log_by_lua* ==26576==
==26576== Process terminating with default action of signal 11 (SIGSEGV)
==26576== Access not within mapped region at address 0x0
==26576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26576== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26576== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26576== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26576== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26576== by 0x8062D5B: main (nginx.c:385)
==26576== If you believe this happened as a result of a stack
==26576== overflow in your program's main thread (unlikely but
==26576== possible), you can try to increase the size of the
==26576== main thread stack using the --main-stacksize= flag.
==26576== The main thread stack size used in this run was 8388608.

159-sa-restart.t TEST 5: lua_sa_restart on (default) - SA_RESTART is effective in log_by_lua* - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 1: lua_sa_restart default - sets SA_RESTART in init_worker_by_lua* ==26614== Invalid read of size 4
==26614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26614== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26614== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26614== by 0x8062D5B: main (nginx.c:385)
==26614== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26614==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
159-sa-restart.t TEST 1: lua_sa_restart default - sets SA_RESTART in init_worker_by_lua* ==26614==
==26614== Process terminating with default action of signal 11 (SIGSEGV)
==26614== Access not within mapped region at address 0x0
==26614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26614== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26614== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26614== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26614== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26614== by 0x8062D5B: main (nginx.c:385)
==26614== If you believe this happened as a result of a stack
==26614== overflow in your program's main thread (unlikely but
==26614== possible), you can try to increase the size of the
==26614== main thread stack using the --main-stacksize= flag.
==26614== The main thread stack size used in this run was 8388608.

159-sa-restart.t TEST 1: lua_sa_restart default - sets SA_RESTART in init_worker_by_lua* - status code ok got: ''
expected: '200'
160-disable-init-by-lua.t TEST 1: ensure init_by_lua* is not run in signaller process - pattern "failed (2: No such file or directory)" should match a line in error.log (req 0)
160-disable-init-by-lua.t TEST 1: ensure init_by_lua* is not run in signaller process - pattern "failed (2: No such file or directory)" should match a line in error.log (req 1)
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - Can't connect to 127.0.0.1:1984: Connection refused ==26746== Invalid read of size 4
==26746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26746== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26746== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26746== by 0x8062D5B: main (nginx.c:385)
==26746== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26746==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - Can't connect to 127.0.0.1:1984: Connection refused ==26746==
==26746== Process terminating with default action of signal 11 (SIGSEGV)
==26746== Access not within mapped region at address 0x0
==26746== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26746== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26746== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26746== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26746== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26746== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26746== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26746== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26746== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26746== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26746== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26746== by 0x8062D5B: main (nginx.c:385)
==26746== If you believe this happened as a result of a stack
==26746== overflow in your program's main thread (unlikely but
==26746== possible), you can try to increase the size of the
==26746== main thread stack using the --main-stacksize= flag.
==26746== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - Can't connect to 127.0.0.1:1984: Connection refused ==26747== Invalid read of size 4
==26747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26747== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26747== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26747== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26747== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26747== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26747== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26747== by 0x8062D5B: main (nginx.c:385)
==26747== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26747==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - Can't connect to 127.0.0.1:1984: Connection refused ==26747==
==26747== Process terminating with default action of signal 11 (SIGSEGV)
==26747== Access not within mapped region at address 0x0
==26747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26747== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26747== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26747== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26747== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26747== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26747== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26747== by 0x8062D5B: main (nginx.c:385)
==26747== If you believe this happened as a result of a stack
==26747== overflow in your program's main thread (unlikely but
==26747== possible), you can try to increase the size of the
==26747== main thread stack using the --main-stacksize= flag.
==26747== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive ==26758== Invalid read of size 4
==26758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26758== by 0x8062D5B: main (nginx.c:385)
==26758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive ==26758==
==26758== Process terminating with default action of signal 11 (SIGSEGV)
==26758== Access not within mapped region at address 0x0
==26758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26758== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26758== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26758== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26758== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26758== by 0x8062D5B: main (nginx.c:385)
==26758== If you believe this happened as a result of a stack
==26758== overflow in your program's main thread (unlikely but
==26758== possible), you can try to increase the size of the
==26758== main thread stack using the --main-stacksize= flag.
==26758== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-resty.core loaded: true
-loaded from html dir
'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive ==26780== Invalid read of size 4
==26780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26780== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26780== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26780== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26780== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26780== by 0x8062D5B: main (nginx.c:385)
==26780== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26780==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive ==26780==
==26780== Process terminating with default action of signal 11 (SIGSEGV)
==26780== Access not within mapped region at address 0x0
==26780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26780== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26780== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26780== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26780== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26780== by 0x8062D5B: main (nginx.c:385)
==26780== If you believe this happened as a result of a stack
==26780== overflow in your program's main thread (unlikely but
==26780== possible), you can try to increase the size of the
==26780== main thread stack using the --main-stacksize= flag.
==26780== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-resty.core loaded: true
-loaded from html dir
'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM ==26792== Invalid read of size 4
==26792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26792== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26792== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26792== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26792== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26792== by 0x8062D5B: main (nginx.c:385)
==26792== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26792==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM ==26792==
==26792== Process terminating with default action of signal 11 (SIGSEGV)
==26792== Access not within mapped region at address 0x0
==26792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26792== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26792== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26792== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26792== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26792== by 0x8062D5B: main (nginx.c:385)
==26792== If you believe this happened as a result of a stack
==26792== overflow in your program's main thread (unlikely but
==26792== possible), you can try to increase the size of the
==26792== main thread stack using the --main-stacksize= flag.
==26792== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM ==26814== Invalid read of size 4
==26814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26814== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26814== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26814== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26814== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26814== by 0x8062D5B: main (nginx.c:385)
==26814== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26814==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM ==26814==
==26814== Process terminating with default action of signal 11 (SIGSEGV)
==26814== Access not within mapped region at address 0x0
==26814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26814== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26814== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26814== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26814== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26814== by 0x8062D5B: main (nginx.c:385)
==26814== If you believe this happened as a result of a stack
==26814== overflow in your program's main thread (unlikely but
==26814== possible), you can try to increase the size of the
==26814== main thread stack using the --main-stacksize= flag.
==26814== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - Can't connect to 127.0.0.1:1984: Connection refused ==26823== Invalid read of size 4
==26823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26823== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26823== by 0x8062D5B: main (nginx.c:385)
==26823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - Can't connect to 127.0.0.1:1984: Connection refused ==26823==
==26823== Process terminating with default action of signal 11 (SIGSEGV)
==26823== Access not within mapped region at address 0x0
==26823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26823== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26823== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26823== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26823== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==26823== by 0x8062D5B: main (nginx.c:385)
==26823== If you believe this happened as a result of a stack
==26823== overflow in your program's main thread (unlikely but
==26823== possible), you can try to increase the size of the
==26823== main thread stack using the --main-stacksize= flag.
==26823== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - Can't connect to 127.0.0.1:1984: Connection refused ==26824== Invalid read of size 4
==26824== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26824== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26824== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26824== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26824== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26824== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26824== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26824== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26824== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26824== by 0x8062D5B: main (nginx.c:385)
==26824== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26824==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - Can't connect to 127.0.0.1:1984: Connection refused ==26824==
==26824== Process terminating with default action of signal 11 (SIGSEGV)
==26824== Access not within mapped region at address 0x0
==26824== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26824== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26824== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26824== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26824== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26824== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26824== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26824== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26824== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26824== by 0x8062D5B: main (nginx.c:385)
==26824== If you believe this happened as a result of a stack
==26824== overflow in your program's main thread (unlikely but
==26824== possible), you can try to increase the size of the
==26824== main thread stack using the --main-stacksize= flag.
==26824== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' ==26836== Invalid read of size 4
==26836== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26836== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26836== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26836== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26836== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26836== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26836== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26836== by 0x8062D5B: main (nginx.c:385)
==26836== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26836==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' ==26836==
==26836== Process terminating with default action of signal 11 (SIGSEGV)
==26836== Access not within mapped region at address 0x0
==26836== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26836== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26836== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26836== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26836== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26836== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26836== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26836== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26836== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26836== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26836== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26836== by 0x8062D5B: main (nginx.c:385)
==26836== If you believe this happened as a result of a stack
==26836== overflow in your program's main thread (unlikely but
==26836== possible), you can try to increase the size of the
==26836== main thread stack using the --main-stacksize= flag.
==26836== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' ==26857== Invalid read of size 4
==26857== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26857== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26857== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26857== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26857== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26857== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26857== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26857== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26857== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26857== by 0x8062D5B: main (nginx.c:385)
==26857== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26857==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' ==26857==
==26857== Process terminating with default action of signal 11 (SIGSEGV)
==26857== Access not within mapped region at address 0x0
==26857== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26857== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26857== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26857== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26857== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26857== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26857== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26857== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26857== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26857== by 0x8062D5B: main (nginx.c:385)
==26857== If you believe this happened as a result of a stack
==26857== overflow in your program's main thread (unlikely but
==26857== possible), you can try to increase the size of the
==26857== main thread stack using the --main-stacksize= flag.
==26857== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' ==26869== Invalid read of size 4
==26869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26869== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26869== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26869== by 0x8062D5B: main (nginx.c:385)
==26869== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26869==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' ==26869==
==26869== Process terminating with default action of signal 11 (SIGSEGV)
==26869== Access not within mapped region at address 0x0
==26869== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26869== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26869== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26869== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26869== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26869== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26869== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26869== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26869== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26869== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26869== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26869== by 0x8062D5B: main (nginx.c:385)
==26869== If you believe this happened as a result of a stack
==26869== overflow in your program's main thread (unlikely but
==26869== possible), you can try to increase the size of the
==26869== main thread stack using the --main-stacksize= flag.
==26869== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' ==26890== Invalid read of size 4
==26890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26890== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26890== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26890== by 0x8062D5B: main (nginx.c:385)
==26890== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26890==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' ==26890==
==26890== Process terminating with default action of signal 11 (SIGSEGV)
==26890== Access not within mapped region at address 0x0
==26890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26890== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26890== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26890== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26890== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26890== by 0x8062D5B: main (nginx.c:385)
==26890== If you believe this happened as a result of a stack
==26890== overflow in your program's main thread (unlikely but
==26890== possible), you can try to increase the size of the
==26890== main thread stack using the --main-stacksize= flag.
==26890== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) ==26902== Invalid read of size 4
==26902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26902== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26902== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26902== by 0x8062D5B: main (nginx.c:385)
==26902== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26902==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) ==26902==
==26902== Process terminating with default action of signal 11 (SIGSEGV)
==26902== Access not within mapped region at address 0x0
==26902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26902== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26902== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26902== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==26902== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==26902== by 0x8062D5B: main (nginx.c:385)
==26902== If you believe this happened as a result of a stack
==26902== overflow in your program's main thread (unlikely but
==26902== possible), you can try to increase the size of the
==26902== main thread stack using the --main-stacksize= flag.
==26902== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) ==26923== Invalid read of size 4
==26923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26923== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26923== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26923== by 0x8062D5B: main (nginx.c:385)
==26923== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26923==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_reap_children
fun:ngx_master_process_cycle
fun:main
}
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) ==26923==
==26923== Process terminating with default action of signal 11 (SIGSEGV)
==26923== Access not within mapped region at address 0x0
==26923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==26923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==26923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==26923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==26923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==26923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==26923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==26923== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==26923== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==26923== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==26923== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==26923== by 0x8062D5B: main (nginx.c:385)
==26923== If you believe this happened as a result of a stack
==26923== overflow in your program's main thread (unlikely but
==26923== possible), you can try to increase the size of the
==26923== main thread stack using the --main-stacksize= flag.
==26923== The main thread stack size used in this run was 8388608.

161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) - status code ok got: ''
expected: '200'

Expected Failures

File Name Details
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - pattern "stream lua decrementing the reference count for Lua VM: 1" should match a line in error.log (req 0)
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - pattern "stream lua close the global Lua VM" should match a line in error.log (req 0)
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - pattern "stream lua decrementing the reference count for Lua VM: 1" should match a line in error.log (req 1)
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - pattern "stream lua close the global Lua VM" should match a line in error.log (req 1)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 0)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 1)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 1)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua finalize fake request" should match a line in error.log (req 0)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua finalize fake request" should match a line in error.log (req 1)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua ngx.timer expired" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua finalize fake request" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua ngx.timer expired" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua finalize fake request" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 1)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 0)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua finalize fake request" should match a line in error.log (req 0)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 0)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 1)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua finalize fake request" should match a line in error.log (req 1)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive max idle timeout" should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive max idle timeout" should match a line in error.log (req 1)
043-shdict.t TEST 86: check the type of the shdict object - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'type: table
'
043-shdict.t TEST 41: flush_expires - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
'
043-shdict.t TEST 47: list all keys in a shdict with expires - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
'
043-shdict.t TEST 16: bad value type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad value type
'
043-shdict.t TEST 36: incr key (incr by negative numbers) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 31.86 nil
-foo = 31.86
'
043-shdict.t TEST 72: set & get_stale boolean values (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: false, stale: false
'
043-shdict.t TEST 51: list all keys in a shdict with all keys expired - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 37: incr key (original value is not number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: nil not a number
-foo = true
'
043-shdict.t TEST 4: number keys, string values - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-truenilfalse
-truenilfalse
-truenilfalse
-dog
-dog
-bird string
'
043-shdict.t TEST 63: get a too-long key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: key too long
'
043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'res = nil, flags = nil
'
043-shdict.t TEST 33: replace key (key expired) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: nil not found
-foo = nil
'
043-shdict.t TEST 64: set & get large values - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get ok: 10240
'
043-shdict.t TEST 20: set nil at first - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-hello, world
'
043-shdict.t TEST 18: delete at first - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-hello, world
'
043-shdict.t TEST 70: set & get_stale large values - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: 10240, stale: false
'
043-shdict.t TEST 17: delete after setting values - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-nil
-hello, world
'
043-shdict.t TEST 12: get non-existent keys - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-nil
'
043-shdict.t TEST 55: safe_add - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:false no memory
abort at (353|705)
cur value: nil
1st value: hello hello hello hello hello hello hello hello hello hello1
2nd value: hello hello hello hello hello hello hello hello hello hello2
)'
043-shdict.t TEST 3: string key, boolean value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true boolean
-false boolean
'
043-shdict.t TEST 19: set nil after setting values - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-nil
-hello, world
'
043-shdict.t TEST 26: add key (key expired and value size unmatched) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: true nil false
-foo = hello
'
043-shdict.t TEST 57: set nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 1: string key, int value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
043-shdict.t TEST 74: incr nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
'
043-shdict.t TEST 56: get_stale: expired entries can still be fetched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32, nil, true
-33, nil, false
'
043-shdict.t TEST 77: incr too long key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: key too long
'
043-shdict.t TEST 67: get_stale number key - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale: hello
'
043-shdict.t TEST 23: add key (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: false exists false
-foo = 32
'
043-shdict.t TEST 10: forcibly override other valid entries and test LRU - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:true nil true
abort at (353|705)
cur value: hello hello hello hello hello hello hello hello hello hello\1
1st value: hello hello hello hello hello hello hello hello hello hello1
2nd value: nil
)'
043-shdict.t TEST 21: fail to allocate memory - response_body_like - response is expected () ''
doesn't match '(?^s:^true nil true\nabort at (?:139|140|141)$
)'
043-shdict.t TEST 29: replace key (key expired) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 2: string key, floating-point value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-3.14159 number
-3.96 number
'
043-shdict.t TEST 54: safe_set - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:false no memory
abort at (353|705)
cur value: nil
1st value: hello hello hello hello hello hello hello hello hello hello1
2nd value: hello hello hello hello hello hello hello hello hello hello2
)'
043-shdict.t TEST 87: dogs, cat mixing - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32 number
-10502 number
-nil
-nil
'
043-shdict.t TEST 68: get_stale a too-long key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: key too long
'
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2048
'
043-shdict.t TEST 30: replace key (key expired and value size unmatched) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 76: incr empty string keys - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 79: incr a number-like string key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-set ok
-incr ok
-get ok: 33, flags: nil
'
043-shdict.t TEST 9: forcibly override other valid entries - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:true nil true
abort at (353|705)
cur value: hello hello hello hello hello hello hello hello hello hello\1
1st value: nil
2nd value: hello hello hello hello hello hello hello hello hello hello2
)'
043-shdict.t TEST 49: list keys in an empty shdict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 35: incr key (incr by floating point number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 32.14 nil
-foo = 32.14
'
043-shdict.t TEST 71: set & get_stale boolean values (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: true, stale: false
'
043-shdict.t TEST 38: get and set with flags - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32 number
-199 number
-10502 number
-nil nil
'
043-shdict.t TEST 24: add key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: true nil false
-foo = 10502
'
043-shdict.t TEST 45: list all keys in a shdict - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-2
-bah
-bar
'
043-shdict.t TEST 66: get_stale empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 6: expired entries (can be auto-removed by get) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'nil
'
043-shdict.t TEST 28: replace key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 44: flush_expires a dict without expired items - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 15: set too large key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true nil
-hello
-not ok: key too long
'
043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'nil
'
043-shdict.t TEST 34: incr key (incr by 0) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 32 nil
-foo = 32
'
043-shdict.t TEST 59: set empty string keys - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 25: add key (key expired) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: true nil false
-foo = 10502
'
043-shdict.t TEST 62: get empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 81: replace key with exptime - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-get foo: 32
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 32: replace key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: nil not found
-foo = nil
'
043-shdict.t TEST 73: set & get_stale with a flag - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: false, flags: 325, stale: false
'
043-shdict.t TEST 40: flush_all - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32 number
-10502 number
-nil nil
-nil nil
'
043-shdict.t TEST 46: list keys in a shdict with limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
'
043-shdict.t TEST 78: incr number key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-set ok
-incr ok
-get ok: 33, flags: nil
'
043-shdict.t TEST 27: incr key (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-replace: true nil false
-foo = 10502
-replace: true nil false
-foo = hello
'
043-shdict.t TEST 42: flush_expires with number - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '42
'
043-shdict.t TEST 50: list keys in an empty shdict with a limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 61: get nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 31: incr key (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 10534 nil
-foo = 10534
'
043-shdict.t TEST 43: flush_expires an empty dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 80: add nil values - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: attempt to add or replace nil values
'
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1024
'
043-shdict.t TEST 8: not yet expired entries - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
043-shdict.t TEST 11: dogs and cats dicts - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32
-hello, world
-56
-hello, world
'
043-shdict.t TEST 5: different-size values set to the same key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello
-hello, world
-hello
'
043-shdict.t TEST 65: get_stale nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 69: get_stale a non-existent key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'get ok: nil
'
091-coroutine.t nginx: [error] init_by_lua error: init_by_lua:7: init_by_lua:4: something went wrong
106-timer.t TEST 8: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer)" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "timer prematurely expired: false" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "timer user args: 1 hello true" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer)" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "timer prematurely expired: false" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "timer user args: 1 hello true" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-9]|8[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-9]|8[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 24: lua_max_running_timers (just not enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 24: lua_max_running_timers (just not enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 2: separated global env - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 2: separated global env - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 2: separated global env - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 2: separated global env - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 2: separated global env - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 2: separated global env - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 14: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 14: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 14: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
106-timer.t TEST 14: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 14: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 14: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "timer prematurely expired: false" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "timer prematurely expired: false" should match a line in error.log (req 1)
106-timer.t TEST 20: lua_max_pending_timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 20: lua_max_pending_timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 20: lua_max_pending_timers - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 20: lua_max_pending_timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 19: multiple parallel timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 19: multiple parallel timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 19: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 19: multiple parallel timers - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 19: multiple parallel timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 19: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "cnt = 0" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "cnt = 1" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "cnt = 2" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "cnt = 0" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "cnt = 1" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "cnt = 2" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 1)
106-timer.t TEST 15: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 15: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 15: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
106-timer.t TEST 15: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 15: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 15: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 1)
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 0" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 2" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 0" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 2" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 1)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "failed to register a new timer after reload: process exiting, context: ngx.timer" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "failed to register a new timer after reload: process exiting, context: ngx.timer" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: registered a new timer after reload" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: timer prematurely expired: false" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: registered a new timer after reload" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: exiting=true" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: timer prematurely expired: false" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: exiting=true" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 1!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 2!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 3!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 4!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 5!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 6!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 7!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 8!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 9!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 10!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 1!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 2!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 3!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 4!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 5!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 6!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 7!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 8!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 9!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 10!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "in callback: hello, 1" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "in callback: hello, 1" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
126-shdict-frag.t TEST 10: fuzz testing - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-successfully set bar.
-failed to safe set baz: no memory
-found bar: 4000
-delete bar
-failed to safe set baz: no memory
'
126-shdict-frag.t TEST 4: merge one single-page block backward, but no more - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-successfully safe set blah
-found foo: 4000
-found blah: 8100
'
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-successfully set bar.
-failed to safe set baz: no memory
-found bar: 4000
-delete bar
-successfully safe set baz
'
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-successfully set foo.
-successfully set bar.
-found foo: 4000
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
-successfully set foo with force.
-successfully set bar.
-found foo: 4000
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
'
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-successfully set foo.
-successfully set bar.
-found foo: 8100
-failed to safe set baz: no memory
-found bar: 8101
-successfully safe set baz
-foo not found
-bar not found
-found baz: 16300
'
126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
-successfully set foo with force.
-successfully set bar.
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
'
126-shdict-frag.t TEST 5: merge one single-page block forward, but no more - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-successfully safe set blah
-found baz: 4002
-found blah: 8100
'
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-successfully set bar.
-failed to safe set baz: no memory
-found bar: 4000
-delete bar
-failed to safe set baz: no memory
'
126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,18 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-failed to safe set blah: no memory
-successfully safe set blah
-successfully set foo with force.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-failed to safe set blah: no memory
-successfully safe set blah
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "lua ssl certificate verify error: (20: unable to get local issuer certificate)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "lua ssl certificate verify error: (20: unable to get local issuer certificate)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "(?^:lua ssl certificate verify error: \((22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)\))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "(?^:lua ssl certificate verify error: \((22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)\))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 14: default cipher - pattern "(?^:SSL: TLSv1\.2, cipher: "(?:ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256)|ECDHE-(?:RSA|ECDSA)-CHACHA20-POLY1305) TLSv1\.2)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 14: default cipher - pattern "(?^:SSL: TLSv1\.2, cipher: "(?:ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256)|ECDHE-(?:RSA|ECDSA)-CHACHA20-POLY1305) TLSv1\.2)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "(?^:SSL: TLSv\d(?:\.\d)?, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "(?^:SSL: TLSv\d(?:\.\d)?, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "SSL reused session" should match a line in error.log (req 0)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "lua ssl free session" should match a line in error.log (req 0)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "SSL reused session" should match a line in error.log (req 1)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "lua ssl free session" should match a line in error.log (req 1)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "(?^:SSL: TLSv1, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "(?^:SSL: TLSv1, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]=]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] "http" directive is not allowed here in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:28
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]==]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1\d)\d+,)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1\d)\d+,)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1\d)\d+,)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 0) @@ -1,3 +1 @@
uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:14:04 [error] 25284\#0: send() failed (111: Connection refused)" (req 0) 2020/10/27 05:14:04 [debug] 25284\#0: close listening unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock \#12
2020/10/27 05:14:04 [debug] 25284\#0: epoll del event: fd:8 op:2 ev:00000000
2020/10/27 05:14:04 [debug] 25284\#0: close listening 0.0.0.0:1985 \#8
2020/10/27 05:14:04 [debug] 25284\#0: epoll del event: fd:9 op:2 ev:00000000
2020/10/27 05:14:04 [debug] 25284\#0: close listening 0.0.0.0:1984 \#9
2020/10/27 05:14:04 [notice] 25284\#0: exiting
2020/10/27 05:14:04 [debug] 25284\#0: flush files
2020/10/27 05:14:03 [debug] 25295\#0: malloc: 053DB8D8:7424
2020/10/27 05:14:03 [debug] 25295\#0: malloc: 05404B00:3328
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 1) @@ -1,3 +1 @@
uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 2) @@ -1,3 +1 @@
uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 0) 'reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 1) 'reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 2) 'reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
161-load-resty-core.t nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:

Warnings

Go back to the index page.